0 Replies Latest reply on Dec 8, 2009 11:52 PM by rfrishbe

    [svn:fx-trunk] 12693: VideoPlayer/VideoDisplay fixes:

    rfrishbe Level 3

      Revision: 12693

      Revision: 12693

      Author:   rfrishbe@adobe.com

      Date:     2009-12-08 23:52:53 -0800 (Tue, 08 Dec 2009)

      Log Message:

      ***********

      VideoPlayer/VideoDisplay fixes:

       

      When the source is null, the bindings on some of the properties (specifically currentTime, duration, bytesLoaded, and bytesTotal) should fire.  In VideoPlayer, if you look at videoDisplay_mediaPlayerStateChangeHandler(), we are already doing the correct thing in there to make sure our VideoPlayer object looks correct.  However, if someone just binds to these values, they should also update.  To fix this, I added [Bindable("mediaPlayerStateChange")] on these properties.

       

      Also, I noticed when setting the source to null, our size doesn?\226?\128?\153t invalidate.  So I cleaned up some logic around there.

       

      Lastly, Flash Builder wants to make sure that resetting thumbnailSource or setting it to null is possible.  I cleaned up the logic to allow for the null case.

       

      QE notes: -

      Doc notes: -

      Bugs: SDK-24619

      Reviewer: Kevin

      Tests run: checkintests

      Is noteworthy for integration: No

       

      Ticket Links:

      ***********

          http://bugs.adobe.com/jira/browse/SDK-24619

       

      Modified Paths:

      **************

          flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VideoDisplay.as

          flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VideoPlayer.as