1 Reply Latest reply on Jun 15, 2011 1:02 AM by Silviu Vergoti

    Dynamic stream never switches

    johnnicholas

      I have a custom player that uses Dynamic stream switching. I'm seeing a weird problem where it never seems to switch. I turned on "-define=CONFIG::LOGGING,true" and here is what I see.

       

      Tue Jun 14 2011 03:51:05 PM [DEBUG] [org.osmf.layout.LayoutRendererBase] ON EXIT FRAME: BEGIN

      Tue Jun 14 2011 03:51:05 PM [DEBUG] [org.osmf.layout.LayoutRendererBase] VALIDATING LAYOUT

      Tue Jun 14 2011 03:51:05 PM [DEBUG] [org.osmf.layout.LayoutRenderer] calculated container size (640, 360) (bounds: null)

      Tue Jun 14 2011 03:51:05 PM [DEBUG] [org.osmf.layout.LayoutRenderer] dimensions: (x=0, y=0, w=640, h=360) available: (640, 360), media: (640,360)

      Tue Jun 14 2011 03:51:05 PM [DEBUG] [org.osmf.layout.LayoutRendererBase] LAYOUT VALIDATED

      Tue Jun 14 2011 03:51:05 PM [DEBUG] [org.osmf.layout.LayoutRendererBase] ON EXIT FRAME: END

      Tue Jun 14 2011 03:51:09 PM [DEBUG] [org.osmf.net.rtmpstreaming.SufficientBandwidthRule] Move up since avg dropped FPS 0 < 2 and bufferLength > 0.1

      Tue Jun 14 2011 03:51:09 PM [DEBUG] [org.osmf.net.rtmpstreaming.SufficientBandwidthRule] getNewIndex() - about to return: 3, detail=null

      Tue Jun 14 2011 03:51:09 PM [DEBUG] [org.osmf.net.NetStreamSwitchManager] 15:51:09 GMT-0500>>> NetStreamSwitchManager.checkRules() - Calling for switch to 3 at 2500 kbps

      Tue Jun 14 2011 03:51:09 PM [DEBUG] [org.osmf.net.NetStreamSwitchManager] 15:51:09 GMT-0500>>> NetStreamSwitchManager.executeSwitch() - Switching to index 3 at 2500 kbps

       

      So the video starts with stream 0, after a few seconds the buffer is full and no frames have been dropped so it approves the switch up to stream 3. That switch never happens. It played to the rest of a 8 minute video without any other log messages