<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic esriPopup on close stop video play ? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esripopup-on-close-stop-video-play/m-p/318968#M29393</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have MEDIA column in my attribute table contains video URLs (YouTube iframe &amp;amp; HTML5 video tag).&lt;/P&gt;&lt;P&gt;By Clicking on feature on map popup display and play the video.&lt;/P&gt;&lt;P&gt;I would like to stop video play when I click on close&amp;nbsp;button of esriPopup window (InfoWindow).&lt;/P&gt;&lt;P&gt;I know the hide event of infoWindow, but How do I stop play video on close of the InfoWindow&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;app.map.infoWindow.on('hide', function () {&lt;BR /&gt;var info = app.map.infoWindow.features[0].attributes.MEDIA;&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to stop video on close event of infoWindow ? Any idea please ?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 May 2018 12:15:11 GMT</pubDate>
    <dc:creator>MayurDodiya</dc:creator>
    <dc:date>2018-05-01T12:15:11Z</dc:date>
    <item>
      <title>esriPopup on close stop video play ?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esripopup-on-close-stop-video-play/m-p/318968#M29393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have MEDIA column in my attribute table contains video URLs (YouTube iframe &amp;amp; HTML5 video tag).&lt;/P&gt;&lt;P&gt;By Clicking on feature on map popup display and play the video.&lt;/P&gt;&lt;P&gt;I would like to stop video play when I click on close&amp;nbsp;button of esriPopup window (InfoWindow).&lt;/P&gt;&lt;P&gt;I know the hide event of infoWindow, but How do I stop play video on close of the InfoWindow&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;app.map.infoWindow.on('hide', function () {&lt;BR /&gt;var info = app.map.infoWindow.features[0].attributes.MEDIA;&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to stop video on close event of infoWindow ? Any idea please ?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 May 2018 12:15:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esripopup-on-close-stop-video-play/m-p/318968#M29393</guid>
      <dc:creator>MayurDodiya</dc:creator>
      <dc:date>2018-05-01T12:15:11Z</dc:date>
    </item>
    <item>
      <title>Re: esriPopup on close stop video play ?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esripopup-on-close-stop-video-play/m-p/318969#M29394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mayur,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I would go with setting the popups content to null.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;app&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;map&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;infoWindow&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;on&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'hide'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;function&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp; app&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;map&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;infoWindow&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;setContent&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;null&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;H4 class="" style="color: #4d4d4d; background-color: #ffffff; font-weight: 500; font-size: 1.0625em; margin: 0.2em 0px 0.4em;" id="toc-hId-1281353984"&gt;&lt;/H4&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 15:09:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esripopup-on-close-stop-video-play/m-p/318969#M29394</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-11T15:09:36Z</dc:date>
    </item>
    <item>
      <title>Re: esriPopup on close stop video play ?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esripopup-on-close-stop-video-play/m-p/318970#M29395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;Yes it working.&lt;/P&gt;&lt;P&gt;Thank you so much.&lt;/P&gt;&lt;P&gt;I have another question, I created app using Web App Builder.&lt;/P&gt;&lt;P&gt;I download and hosted on my server. Now, I want to apply same popup hide event in Web App Builder application.&lt;/P&gt;&lt;P&gt;Do you have any idea where should I add code ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 May 2018 11:44:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esripopup-on-close-stop-video-play/m-p/318970#M29395</guid>
      <dc:creator>MayurDodiya</dc:creator>
      <dc:date>2018-05-03T11:44:49Z</dc:date>
    </item>
    <item>
      <title>Re: esriPopup on close stop video play ?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esripopup-on-close-stop-video-play/m-p/318971#M29396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mayur,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;At the end of the resetInfoWindow function&amp;nbsp;in the jimu.js/MapManager.js file would be fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't forget to mark this question as answered by clicking on the "Mark Correct" link on the reply that answered your question.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 May 2018 12:48:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esripopup-on-close-stop-video-play/m-p/318971#M29396</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-05-03T12:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: esriPopup on close stop video play ?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esripopup-on-close-stop-video-play/m-p/318972#M29397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;There is no MapManager.js file in jimu.js, but I copied the same code in jimu.js/main.js at the end in resetInfoWindow function&lt;/P&gt;&lt;P&gt;this.map.infoWindow.on('hide', function () {&lt;BR /&gt; this.map.infoWindow.setContent(null);&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;This worked for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the code working in Story Map to make esriPopup draggable and I want to add same for WAB application(Hosted on my server),&amp;nbsp;so where should I copy the code in WAB application&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;var handle = query(".title", app.map.infoWindow.domNode)[0];&amp;nbsp;&lt;BR /&gt; var dnd = new Moveable(app.map.infoWindow.domNode, {&lt;BR /&gt; handle: handle&lt;BR /&gt; });&lt;BR /&gt; // when the infoWindow is moved, hide the arrow:&lt;BR /&gt; on(dnd, 'FirstMove', function () {&lt;BR /&gt; // hide pointer and outerpointer (used depending on where the pointer is shown)&lt;BR /&gt; var arrowNode = query(".outerPointer", app.map.infoWindow.domNode)[0];&lt;BR /&gt; domClass.add(arrowNode, "hidden");&lt;/P&gt;&lt;P&gt;var arrowNode = query(".pointer", app.map.infoWindow.domNode)[0];&lt;BR /&gt; domClass.add(arrowNode, "hidden");&lt;BR /&gt; }.bind(this));&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Please any idea where and what code should I add in WAB ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2018 10:27:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esripopup-on-close-stop-video-play/m-p/318972#M29397</guid>
      <dc:creator>MayurDodiya</dc:creator>
      <dc:date>2018-05-08T10:27:44Z</dc:date>
    </item>
    <item>
      <title>Re: esriPopup on close stop video play ?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esripopup-on-close-stop-video-play/m-p/318973#M29398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mayur, Since your original question is answered you should&amp;nbsp;mark this question as answered by clicking on the "Mark Correct" link on the reply that answered your question.&lt;/P&gt;&lt;P&gt;I will address you second question in the new thread you opened.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2018 12:40:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esripopup-on-close-stop-video-play/m-p/318973#M29398</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-05-08T12:40:26Z</dc:date>
    </item>
    <item>
      <title>Re: esriPopup on close stop video play ?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esripopup-on-close-stop-video-play/m-p/318974#M29399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;I am sorry for the confusion.You are right, I created app using WAB developer edition and after I downloaded, I see MapManager.js file and resetInfoWindow function.I copied the same code and its working fine.&lt;/P&gt;&lt;P&gt;Thank you so much.!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2018 10:32:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esripopup-on-close-stop-video-play/m-p/318974#M29399</guid>
      <dc:creator>MayurDodiya</dc:creator>
      <dc:date>2018-05-09T10:32:52Z</dc:date>
    </item>
  </channel>
</rss>

