AnsweredAssumed Answered

esriPopup on close stop video play ?

Question asked by Mayur_Dodiya on May 1, 2018
Latest reply on May 9, 2018 by Mayur_Dodiya

Hi,

I have MEDIA column in my attribute table contains video URLs (YouTube iframe & HTML5 video tag).

By Clicking on feature on map popup display and play the video.

I would like to stop video play when I click on close button of esriPopup window (InfoWindow).

I know the hide event of infoWindow, but How do I stop play video on close of the InfoWindow

 

app.map.infoWindow.on('hide', function () {
var info = app.map.infoWindow.features[0].attributes.MEDIA;
});

 

Is there a way to stop video on close event of infoWindow ? Any idea please ?

Thanks,

Outcomes