Select to view content in your preferred language

(New) Map Viewer- Embed Video in Popup

7452
15
05-30-2023 01:20 PM
Amanda__Huber
MVP Regular Contributor

Hello, 

It appears that the old way to embed video content using iframes into popups has broken due to an AGOL update.
I have been unable to find current Esri documentation ways to display videos in popups. Can someone please point us in the right direction? 

 

Thank you, 

Amanda Huber

15 Replies
BrettGovernanti1
Regular Contributor

Yes, I believe that would work but I haven't configured it yet on mine. Add a column to store URL's in the point feature, e.g. "VideoURL". Create the popup with the code above but use the new field name in curly braces as a placeholder/reference instead of the hardcoded URL, like  '{VideoURL}'. When the point is clicked the placeholder in the popup should be replaced by the actual URL in the table for each point. Hopefully the videos play!

0 Kudos
BrettGovernanti1
Regular Contributor

I think I messed up my first example with an extra source tag. The hardcoded version should be:

<video controls="" width="100%">
    <source src="https:// videosinpopups/vids/projects/notareallink/sharevideo.mp4" type="video/mp4">
    Your browser does not support the video tag.
</video>

After adding the URL column and links, the Dynamic would be:

<video controls="" width="100%">
    <source src="{VideoURL}" type="video/mp4">
    Your browser does not support the video tag.
</video>

0 Kudos
JeffPeters1
New Contributor

I figured it out! I put the <video> tag with all the needed info into a text field, added that field as text in popup configuration and it displays different videos in each popup. The only issue I found is AGOL would not let me paste the <video> tag into the table, I had to do it in ArcPro. Also make sure your text field that stores the URL is long enough or the html will get truncated, and the video won't work.

EMM03
by
New Contributor

Thanks for this! 

This works great on my ArcGIS Pro desktop, but when I add this layer to ArcGIS online, the video no longer works in the pop-up (it's just a black screen). This is the code that I put into the text field of a table (which works perfectly on my desktop pop up). Any thoughts on what I'm doing wrong?

<video controls="" width="100%">
<source src="E:\MPN\Bayview.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>

 

 

0 Kudos
BrettGovernanti1
Regular Contributor

Excellent! Thanks for testing and posting your findings!

0 Kudos
DougBrowning
MVP Esteemed Contributor

Anyway to play an attachment that is a mov file right in the popup?

0 Kudos