Hi, I’m trying to do some live broadcasting from user webcams and microphones. It goes more less this way:
camera = Camera.get()
microphone = Microphone.get()
if( camera != null && !camera.muted )
netStream.attachVideo(camera);
if( microphone != null && !microphone.muted )
netStream.attachAudio(microphone);
netStream.publish("mystream", "live");
Now clients subscribe to the stream using:
clientnetStream.play("mystream");
mc.attachMovie(clientnetStream);
The question is, how can i check whether incoming stream has only audio part or both audio/video part available (so i can display an icon to indicate the incoming stream is audio only) ?