0 Replies Latest reply on Jun 7, 2013 7:19 AM by archemedia

    Stop html video

    archemedia Level 4



      In a desktop air application, I managed to play YouTube and Vimeo video's.

      I use mx:HTML to load a html page which contain a YouTube or Vimeo player.


      My problem is, how can I stop the playback of these video's?


      Suppose my object is like:


      <mx:HTML id="webView"/>


      somewhere I write:


      webView.location = "myVideoPlayerUrl";


      now my video starts to play.


      When I try webView.location = ""; of webView.location = null; nothing happens, that is, I can still hear the video playing!

      Even removing webView form the displayList does nothing.


      Any ideas?