1 Reply Latest reply on Sep 16, 2013 12:38 PM by the Masked Mushroom

    can i get embedded timecode on osmf MediaPlayerSprite?

    jkarpago Level 1

      Hi:

       

      I need to get the timecode I send to the server with FMLE. In NetStream I use this code:

       

      nStream.client = {onMetaData:onMetaData, onFI :onFi};

       

      and got the timecode perfectly on the callback, but I cannot find a way to do this with OSMF. I create the video like this:

       

      player = new MediaPlayerSprite();

      player.resource =  new URLResource("http://myserver:1935/dvr/live/manifest.f4m?DVR");;

      player.mediaPlayer.autoPlay = true;

      player.mediaContainer.width = 640;

      player.mediaContainer.height = 360;

      player.mediaPlayer.addEventListener( TimeEvent.CURRENT_TIME_CHANGE, _onProgress );

      player.mediaPlayer.addEventListener ( MediaPlayerStateChangeEvent.MEDIA_PLAYER_STATE_CHANGE , _onMediaPlayerStateChange , false , 0 , true ) ;

      player.mediaPlayer.addEventListener ( MediaErrorEvent.MEDIA_ERROR , _onMediaError , false , 0 , true ) ;

      player_ts.addChild(player);

       

      Is there any way to get the timecodes for this code?

      Thanks so much.