4 Replies Latest reply on Feb 24, 2010 10:22 AM by Randy Troppmann

    MediaPlayer.bufferTime sprint 9

    Randy Troppmann

      Setting the MediaPlayer.bufferTime has no effect. Using a MediaPlayerSprite I am setting the buffer time like this:

       

         media.mediaPlayer.bufferTime = 2;

       

      The BufferEvent.BUFFERING_CHANGE hits this method

       

      protected function handleBufferingChange(evt:BufferEvent):void{
         trace("buffering: " + [evt.buffering, mediaPlayerView.media.mediaPlayer.bufferTime, mediaPlayerView.media.mediaPlayer.bufferLength]);
      }
      

       

      and traces this:

       

      buffering: true,0,0.001

       

       

      - Randy Troppmann

        • 1. Re: MediaPlayer.bufferTime sprint 9
          bringrags Level 4

          What type of media are you playing?  Progressive/streaming/MBR, video/audio?  There's a bug in sprint 9 where the bufferTime may get overwritten when playing MBR video with automatic switching enabled (and which is fixed in the public trunk), but I'm not sure if that's your issue.

          • 2. Re: MediaPlayer.bufferTime sprint 9
            Randy Troppmann Level 2

            It's a live stream coming from Adobe Media Encoder via Flash Media

            Server. I will grab the latest from the trunk to see if is still a

            problem.

             

            - Randy

            • 3. Re: MediaPlayer.bufferTime sprint 9
              Randy Troppmann Level 2

              Oh, also ... it is video.

              • 4. Re: MediaPlayer.bufferTime sprint 9
                Randy Troppmann Level 2

                Just now I updated to the latest source in the public trunk. I had to make one change

                 

                media.mediaElement = new VideoElement(new URLResource(new URL(value)), new NetLoader());

                - to -

                media.mediaElement = new VideoElement(new URLResource(value), new NetLoader());

                 

                But now I get a runtime error. My player is broken now, so any quick advice would be appreciated. Here is the error:

                 

                VerifyError: Error #1014: Class org.osmf.net::PortProtocol could not be found.
                
                     at global$init()
                     at org.osmf.net::NetLoader()[/Users/randy/Documents/NAIT-projects/D3 video player OSMF/D3 MediaPlayer OSMF/src/org/osmf/net/NetLoader.as:81]
                     at ca.nait.d3.media.player.view::MediaPlayerView/set mediaSourceURL()[/Users/randy/Documents/NAIT-projects/D3 video player OSMF/D3 MediaPlayer OSMF/src/ca/nait/d3/media/player/view/MediaPlayerView.as:63]
                     at ca.nait.d3.media.player.view.mediator::MediaPlayerViewMediator/onNewVideoSource()[/Users/randy/Documents/NAIT-projects/D3 video player OSMF/D3 MediaPlayer OSMF/src/ca/nait/d3/media/player/view/mediator/MediaPlayerViewMediator.as:105]
                     at org.robotlegs.base::EventMap/routeEventToListener()[/Users/shaun/Documents/Development/Workspaces/GanymedeFB4/robotlegs-framework/src/org/robotlegs/base/EventMap.as:166]
                     at ()[/Users/shaun/Documents/Development/Workspaces/GanymedeFB4/robotlegs-framework/src/org/robotlegs/base/EventMap.as:91]
                     at flash.events::EventDispatcher/dispatchEventFunction()
                     at flash.events::EventDispatcher/dispatchEvent()
                     at org.robotlegs.mvcs::Actor/dispatch()[/Users/shaun/Documents/Development/Workspaces/GanymedeFB4/robotlegs-framework/src/org/robotlegs/mvcs/Actor.as:98]
                     at ca.nait.d3.media.player.model::PlayerModel/set videoSource()[/Users/randy/Documents/NAIT-projects/D3 video player OSMF/D3 MediaPlayer OSMF/src/ca/nait/d3/media/player/model/PlayerModel.as:602]
                     at ca.nait.d3.media.player.model::PlayerModel/set flashVarsVO()[/Users/randy/Documents/NAIT-projects/D3 video player OSMF/D3 MediaPlayer OSMF/src/ca/nait/d3/media/player/model/PlayerModel.as:202]
                     at ca.nait.d3.media.player.remote.services::FlashVarsService/parseFlashVars()[/Users/randy/Documents/NAIT-projects/D3 video player OSMF/D3 MediaPlayer OSMF/src/ca/nait/d3/media/player/remote/services/FlashVarsService.as:105]
                     at ca.nait.d3.media.player.remote.services::FlashVarsService/getFlashVars()[/Users/randy/Documents/NAIT-projects/D3 video player OSMF/D3 MediaPlayer OSMF/src/ca/nait/d3/media/player/remote/services/FlashVarsService.as:19]
                     at ca.nait.d3.media.player.controller::MainReadyCommand/execute()[/Users/randy/Documents/NAIT-projects/D3 video player OSMF/D3 MediaPlayer OSMF/src/ca/nait/d3/media/player/controller/MainReadyCommand.as:18]
                     at org.robotlegs.base::CommandMap/routeEventToCommand()[/Users/shaun/Documents/Development/Workspaces/GanymedeFB4/robotlegs-framework/src/org/robotlegs/base/CommandMap.as:157]
                     at ()[/Users/shaun/Documents/Development/Workspaces/GanymedeFB4/robotlegs-framework/src/org/robotlegs/base/CommandMap.as:104]
                     at flash.events::EventDispatcher/dispatchEventFunction()
                     at flash.events::EventDispatcher/dispatchEvent()
                     at org.robotlegs.mvcs::Mediator/dispatch()[/Users/shaun/Documents/Development/Workspaces/GanymedeFB4/robotlegs-framework/src/org/robotlegs/mvcs/Mediator.as:88]
                     at ca.nait.d3.media.player::D3MediaPlayerOSMFMediator/handleAddedToStage()[/Users/randy/Documents/NAIT-projects/D3 video player OSMF/D3 MediaPlayer OSMF/src/ca/nait/d3/media/player/D3MediaPlayerOSMFMediator.as:51]