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
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
North America
Europe, Middle East and Africa
Asia Pacific