2 Replies Latest reply on Oct 1, 2010 3:18 AM by ven`

    Reset/stop buffering video/destroy it

    ven` Level 1

      I have a flash-page where the user can play a movie. However, as a part of the navigation, the video hides when a user does other operations. When this happends I would like to rewind the movie and stop buffering (so bandwidth is ready for other operations). Do I need to reload the mediaplayer?

       

      Also, how do I remove and destroy the mediaplayer, making it read for GC?

       

      It is created like this, from Lee Brimelows tutorial:

       

      _osmf = new MediaPlayerSprite();

       

      _osmf.mediaPlayer.autoPlay = true;

      addChild(_osmf);

      _osmf.resource = new URLResource(_url);