      */
     private function videoPlayer_mediaSizeChangeHandler(event:DisplayObjectEvent):void
     {
+        //trace("videoPlayer_mediaSizeChangeHandler");
         invalidateSize();
         
         // if we're loading up the video, then let's finish the load in here
         if (inLoadingState2)
         {
+            //trace("videoPlayer_mediaSizeChangeHandler: inLoadingState2");
+
             if (videoPlayer.canSeek && videoPlayer.canSeekTo(0))
             {
+                //trace("videoPlayer_mediaSizeChangeHandler: canSeek to first frame");
                 inLoadingState3 = true;
                 
                 // Don't call pause and seek inside this handler because OSMF is 

        videoPlayer.addEventListener(MediaPlayerStateChangeEvent.MEDIA_PLAYER_STATE_CHANGE, videoPlayer_mediaPlayerStateChangeHandler);
        videoPlayer.addEventListener(TimeEvent.CURRENT_TIME_CHANGE, dispatchEvent);
        videoPlayer.addEventListener(LoadEvent.BYTES_LOADED_CHANGE, dispatchEvent);
        videoPlayer.addEventListener(TimeEvent.DURATION_CHANGE, dispatchEvent);
        videoPlayer.addEventListener(TimeEvent.COMPLETE, dispatchEvent);
        
        addChild(videoContainer);

    private function videoPlayer_mediaPlayerStateChangeHandlerForLoading(event:MediaPlayerStateChangeEvent):void
    {
        // only come in here when we want to load the video without playing it.
        //trace("videoPlayer_mediaPlayerStateChangeHandlerForLoading: mediaPlayerState = " + event.state);
        
        // wait until we are ready so that we can set mute, play, pause, and seek
        if (event.state == MediaPlayerState.READY)
