"nsLive10_all.as" By nanyobis (https://pastebin.com/u/nanyobis) URL: https://pastebin.com/548sM0yY Created on: Tuesday 6th of August 2013 02:36:55 AM CDT Retrieved on: Saturday 31 of October 2020 06:19:39 AM UTC package { import flash.accessibility.Accessibility; import flash.display.Sprite; import flash.events.*; import flash.net.NetConnection; import flash.net.NetStream; import flash.media.Video; public class nsLive10_all extends Sprite { private var nc:NetConnection; private var ns:NetStream; private var video:Video; public function nsLive10_all() { video = new Video(); addChild(video); nc = new NetConnection(); nc.objectEncoding = 0; nc.client=this; nc.addEventListener(NetStatusEvent.NET_STATUS, onNetStatus); nc.addEventListener(AsyncErrorEvent.ASYNC_ERROR, onError); nc.connect('rtmp://live.7cast.net/live'); } private function startStreaming() { ns = new NetStream(nc); ns.client = this; ns.addEventListener(NetStatusEvent.NET_STATUS, onNetStatus); ns.addEventListener(AsyncErrorEvent.ASYNC_ERROR, onError); ns.play("28ersrh937obs02"); ns.play("z7rglh8c8xamn79"); video.attachNetStream(ns); } private function onNetStatus(event:NetStatusEvent):void { switch(event.info.code) { case 'NetConnection.Connect.Success': trace('NetConnection.Connect.Success'); startStreaming(); break; default: trace(event.info.code); } } private function onError(event:AsyncErrorEvent):void { trace(event); } public function onMetaData(data) { for(var i in data){ trace(i + " = " + data[i])} video.width = stage.stageWidth; video.height = stage.stageHeight; } public function onBWDone () { trace("on Bandwidth Done "); } } } output NetConnection.Connect.Success NetStream.Play.StreamNotFound note the output is when the 1st "ns.play" is being live streamed. it does not work. if the 2nd "ns.play" is being live streamed it does work. how do you make it so 1 player can store multiple possible live stream sources, and only play from the 1 live stream source being lived streamed? i don't know what i'm doing. please help, anyone. contact nanyobis@yahoo.com