Hi How to solve this issue. When first user logs in and start broadcasting video no problem occurs. when the second user logs in and starts broadcasting this error occurs.The error occurs in these two lines.
ns = new NetStream( nc ); ns.play( userItem.username ); How to solve this issue.Please help me to solve this issue. --- On Mon, 4/19/10, valdhor <[email protected]> wrote: From: valdhor <[email protected]> Subject: [flexcoders] Re: NetStream.Publish.BadName To: [email protected] Date: Monday, April 19, 2010, 9:57 PM I assume the problem occurs at the line... ns = new NetStream( nc ); nc has not been created at this point. You have declared it but it needs to be created and initialized. --- In flexcod...@yahoogro ups.com, venkat eswar <cooler...@. ..> wrote: > > I am in deep trouble.I have a problem with videochat showing this error on > broadcasting video.Please help me to solve this issue > > Error #2044: Unhandled NetStatusEvent: . level=error, code=NetStream. > Publish.BadName > > at com.view::VideoPod/ init() > > > Here is my videopod code > > <?xml version="1.0" encoding="utf- 8"?> > <mx:Panel xmlns:mx="http://www.adobe. com/2006/ mxml" > > xmlns="*" > title="{ userItem.username } " > creationComplete= "init()" > layout="vertical" width="180" height="160" xmlns:view=" com.view. *"> > > <mx:Script> > <![CDATA[ > import mx.controls. Alert; > import com.model.DataManag er; > import flash.media. Video; > > private var microphone:Micropho ne; > > private var camera:Camera; > private var video:Video; > > [Bindable] > public var userItem:Object; > public var nc:NetConnection; > private var ns:NetStream; > > > [Bindable] > private var dataManager : DataManager = DataManager. getInstance( > ); > [Bindable] > public var isSender:Boolean; > [Bindable] > private var chat:Chat; > > > private function init():void > { > ns = new NetStream( nc ); > video = new Video( 160, 120 ); > > if( isSender ) > { > > camera = Camera.getCamera( ); > camera.setQuality( 16384 / 4, 0 ); > camera.setMode( 160, 120, 15, false ); > camera.setLoopback( true ); > > video.attachCamera( camera ); > ns.attachCamera( camera ); > microphone = Microphone.getMicro phone(); > ns.attachAudio( microphone ); > ns.publish( userItem.username ); > > } > else > { > video.attachNetStre am( ns ); > ns.play( userItem.username ); > } > videoDisplay. video = video; > > > } > ]]> > </mx:Script> > <view:VideoContaine r > id="videoDisplay" > width="160" height="120" /> > </mx:Panel> >

