0 Replies Latest reply on Feb 27, 2013 6:19 AM by ymichel

    VideoSurface issue

    ymichel

      Hi,

       

      To monitor the StageVideo, I've created a listener on the VideoSurfaceEvent.RENDER_CHANGE (MediaContainer) event and I've worked with the event.target.info. When I dump the renderStatus, stageVideoInUseCount and stageVideoCount the values are always the same : null, 0, 0. Below my code :

       

                  var mediaElement : MediaElement = new DefaultMediaFactory().createMediaElement(new URLResource(STREAM));
                  var mediaPlayer : MediaPlayer = new MediaPlayer(mediaElement);
                  var mediaContainer : MediaContainer = new MediaContainer();
                  mediaContainer.addMediaElement(mediaElement);
                  addChild(mediaContainer);
      
      
                  mediaContainer.addEventListener(VideoSurfaceEvent.RENDER_CHANGE, function(event : VideoSurfaceEvent) : void
                  {   
                      trace('### stageVideoInUse ' + event.target.info.stageVideoInUse);
                      trace('### stageVideoRenderStatus ' + event.target.info.renderStatus);
                      trace('### stageVideoInUseCount ' + event.target.info.stageVideoInUseCount);
                      trace('### stageVideoCount ' + event.target.info.stageVideoCount);
                  }); 
      

       

      Is it a bug or I've made a mistake ?

       

      Thanks for your help.