HELLO!

I had a following problem, not work automatically switching Stream. All played fine stream if run each separately, but if you run across DynamicStreamingResource is triggered only the first in the list of stream. With all the AC3 all right since the test code that I commented out works perfectly and stream switches. Maybe I forgot to specify in Application.xml on the server side?

package
{
	import flash.display.Sprite;
	import flash.display.StageAlign;
	import flash.display.StageScaleMode;
	import flash.net.NetConnection;
	
	import org.osmf.events.*;
	import org.osmf.elements.VideoElement;
	import org.osmf.media.MediaPlayerSprite;
	import org.osmf.net.DynamicStreamingItem;
	import org.osmf.net.DynamicStreamingResource;
	import org.osmf.net.rtmpstreaming.RTMPDynamicStreamingNetLoader;
	
	import org.osmf.net.StreamType;
	import org.osmf.net.StreamingURLResource;	
	
	import org.osmf.layout.LayoutMetadata;
	import org.osmf.media.MediaElement; 
	
	public class RTMPDynamicStreamingNetLoaderExample extends Sprite
	{   
		private var mediaPlayerSprite:MediaPlayerSprite = new MediaPlayerSprite();
		private var netLoader:RTMPDynamicStreamingNetLoader = new RTMPDynamicStreamingNetLoader();
		private var videoElement:VideoElement = new VideoElement(null, netLoader);
		
		public function RTMPDynamicStreamingNetLoaderExample()
		{   		
			
			super();
			
			stage.scaleMode = StageScaleMode.NO_SCALE;
			stage.align = StageAlign.TOP_LEFT;
			
			
			var dynResource:DynamicStreamingResource = new DynamicStreamingResource("rtmp://myserver:port/stream");
			
			dynResource.streamItems = Vector.<DynamicStreamingItem>([
			
			          new DynamicStreamingItem("mp4:name_160p", 195,  284,  160)
					, new DynamicStreamingItem("mp4:name_240p", 340,  428,  240)
					, new DynamicStreamingItem("mp4:name_360p", 500,  640,  360)
					, new DynamicStreamingItem("mp4:name_480p", 750,  854,  480)
					, new DynamicStreamingItem("mp4:name_720p", 1000, 1280, 720)
				
			    ]);
			
			
			/*
			var dynResource:DynamicStreamingResource = new DynamicStreamingResource("rtmp://cp67126.edgefcs.net/ondemand");
			dynResource.streamItems = Vector.<DynamicStreamingItem>(
				[ 	new DynamicStreamingItem("mp4:mediapm/ovp/content/demo/video/elephants_dream/elephants_dream_768x428_24.0fps_408kbps.mp4", 408, 768, 428)
					, new DynamicStreamingItem("mp4:mediapm/ovp/content/demo/video/elephants_dream/elephants_dream_768x428_24.0fps_608kbps.mp4", 608, 768, 428)
					, new DynamicStreamingItem("mp4:mediapm/ovp/content/demo/video/elephants_dream/elephants_dream_1024x522_24.0fps_908kbps.mp4", 908, 1024, 522)
					, new DynamicStreamingItem("mp4:mediapm/ovp/content/demo/video/elephants_dream/elephants_dream_1024x522_24.0fps_1308kbps.mp4", 1308, 1024, 522)
					, new DynamicStreamingItem("mp4:mediapm/ovp/content/demo/video/elephants_dream/elephants_dream_1280x720_24.0fps_1708kbps.mp4", 1708, 1280, 720)
				]);
			*/
			
			
			videoElement.resource = dynResource;
			
			addChild(mediaPlayerSprite);
			
			mediaPlayerSprite.media = videoElement;	
			
			mediaPlayerSprite.mediaPlayer.autoPlay = true; 
	
			
			mediaPlayerSprite.mediaPlayer.addEventListener(MediaPlayerStateChangeEvent.MEDIA_PLAYER_STATE_CHANGE, _onMediaPlayerStateChange, false, 0, true);


			
			var videoLayoutMetadata:LayoutMetadata = new LayoutMetadata();
			videoLayoutMetadata.index = 100;
			videoElement.addMetadata(LayoutMetadata.LAYOUT_NAMESPACE, videoLayoutMetadata);			
			
			
		}
		


function _onMediaPlayerStateChange(evt:MediaPlayerStateChangeEvent):void {
    trace ( "_onMediaPlayerStateChange () , evt.state : " + evt.state );

}	
		
	}
	
}
Thank you.