I'm currently using the PopupTemplate class from esri. As I noticed we can load an image and view it in the PopupTemplate. My question is can we load a video of type mp4?? Or a voice of type mp3 to the PopupTemplate??
Or is the media type restriced only to mediaInfos of type image ??
Solved! Go to Solution.
Mohammed,
I don't think those are supported media info types but you can add a video to a popup as seen here:
Mohammed,
I don't think those are supported media info types but you can add a video to a popup as seen here:
Thank you for your answer and for your reference, but I'm sorry to let you down. The provided link didn't have what I wanted. Loading the video into my PopupTemplate didn't work out. I think they're using an old API version since I'm using latest (4.10)
Mohamad,
Converting that example to 4.10 is not very hard. Did you try?
Robert, after implementing some instructions used in the link you sent yesterday. Things worked fine.
Thank you for your response. Appreciate it.
Here is the sample code in 4.10 in case anyone wanted it in future: