Skip navigation
SteveRicketts
Currently Being Moderated

OSMF tries all protocols, won't connect for a long time, then plays

Dec 7, 2011 10:04 AM

I'm trying to play to an .flv video recorded with Red5 using the OSMF sprite.  It take a long time (35 secs) to start playing.  Odd thing is that it immediately tries :443 and :80, then goes back to :1935.  Can anyone tell me what's happening and how to fix it?  Here's the output from the sprite.

 

 

MediaPlayerStateChange:loading

Wed Dec 7 2011 12:56:36 PM [INFO] [org.osmf.net.NetNegotiator] Attempting connection to rtmp://208.109.124.188:1935/eTutor

Wed Dec 7 2011 12:56:36 PM [DEBUG] [org.osmf.layout.LayoutRendererBase] ON EXIT FRAME: BEGIN

Wed Dec 7 2011 12:56:36 PM [DEBUG] [org.osmf.layout.LayoutRendererBase] VALIDATING LAYOUT

Wed Dec 7 2011 12:56:36 PM [DEBUG] [org.osmf.layout.LayoutRendererBase] LAYOUT VALIDATED

Wed Dec 7 2011 12:56:36 PM [DEBUG] [org.osmf.layout.LayoutRendererBase] ON EXIT FRAME: END

Wed Dec 7 2011 12:56:36 PM [INFO] [org.osmf.net.NetNegotiator] Attempting connection to rtmp://208.109.124.188:443/eTutor

Wed Dec 7 2011 12:56:36 PM [INFO] [org.osmf.net.NetNegotiator] Attempting connection to rtmp://208.109.124.188:80/eTutor

Wed Dec 7 2011 12:56:36 PM [INFO] [org.osmf.net.NetNegotiator] FMS Version unknown

Wed Dec 7 2011 12:56:36 PM [INFO] [org.osmf.net.NetConnectionFactory] NetConnection established with: rtmp://server:1935/eTutor

Wed Dec 7 2011 12:56:36 PM [DEBUG] [org.osmf.elements.LightweightVideoElement] No DRM Contenta data available upfront. Play the content and listen for any DRM-related events.

MediaPlayerStateChange:ready

Wed Dec 7 2011 12:56:37 PM [DEBUG] [org.osmf.layout.LayoutRendererBase] ON EXIT FRAME: BEGIN

Wed Dec 7 2011 12:56:37 PM [DEBUG] [org.osmf.layout.LayoutRendererBase] VALIDATING LAYOUT

Wed Dec 7 2011 12:56:37 PM [INFO] [org.osmf.media.videoClasses.VideoSurface] switchRenderer. currentVideoRenderer = null; the new renderer = [object Video]

Wed Dec 7 2011 12:56:37 PM [DEBUG] [org.osmf.layout.LayoutRendererBase] LAYOUT VALIDATED

Wed Dec 7 2011 12:56:37 PM [DEBUG] [org.osmf.layout.LayoutRendererBase] ON EXIT FRAME: END

PlayStateChange:PlayStateChange:playing PlayHead:0 Adjust:0

Wed Dec 7 2011 12:56:37 PM [INFO] [org.osmf.net.NetStreamLoadTrait] NetStream.Play.Reset

Wed Dec 7 2011 12:56:37 PM [INFO] [org.osmf.net.NetLoader] Stream reconnect: onNetStatus: NetStream.Play.Reset

Wed Dec 7 2011 12:56:37 PM [INFO] [org.osmf.net.NetStreamLoadTrait] NetStream.Play.Start

Wed Dec 7 2011 12:56:37 PM [INFO] [org.osmf.net.NetLoader] Stream reconnect: onNetStatus: NetStream.Play.Start

MediaPlayerStateChange:buffering

Wed Dec 7 2011 12:56:37 PM [DEBUG] [org.osmf.layout.LayoutRendererBase] ON EXIT FRAME: BEGIN

Wed Dec 7 2011 12:56:37 PM [DEBUG] [org.osmf.layout.LayoutRendererBase] VALIDATING LAYOUT

Wed Dec 7 2011 12:56:37 PM [DEBUG] [org.osmf.layout.LayoutRendererBase] LAYOUT VALIDATED

Wed Dec 7 2011 12:56:37 PM [DEBUG] [org.osmf.layout.LayoutRendererBase] ON EXIT FRAME: END

 

<<  After about 35 seconds it finally plays >>

 

Wed Dec 7 2011 12:57:11 PM [INFO] [org.osmf.net.NetStreamLoadTrait] NetStream.Play.Stop

Wed Dec 7 2011 12:57:11 PM [INFO] [org.osmf.net.NetLoader] Stream reconnect: onNetStatus: NetStream.Play.Stop

Wed Dec 7 2011 12:57:11 PM [INFO] [org.osmf.net.NetStreamLoadTrait] NetStream.Buffer.Flush

Wed Dec 7 2011 12:57:11 PM [INFO] [org.osmf.net.NetLoader] Stream reconnect: onNetStatus: NetStream.Buffer.Flush

MediaPlayerStateChange:playing

 
Replies
  • Currently Being Moderated
    Dec 8, 2011 7:07 PM   in reply to SteveRicketts

    I was also wondering if there was a way to disable NetConnection "port negotiation" (or whatever that feature is called) as well.

     

    When I've written custom players in the past we exclusively used port 1935 (the standard) and never got any complaints about playback issues, so personally I would rather have the player fire up quicker!

     

    Cheers,

    mark

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points