Audio Stop and Start ICS

Follow

You can use the following private streams .mxml to review the methods used to stop and start streams successfully.

https://github.com/influxis/ics/blob/master/Sample%20Applications/Flex%20Framework/Private%20Stream%20AV%20updated

//this is a workaround to stop and start streams
public var audPub:Boolean = false;
public var webCam:Boolean = false;
public var allowPrivateStreams:Boolean = false;
public function startAudio():void
{
var b:Boolean = audioPub.isPublishing;
trace("startAudio: "+b);
if( !b ){
audioPub.publish();
} else {
audioPub.stop();
}
}
public function startCamera():void
{
var b:Boolean = webcamPub.isPublishing;
trace("startCamera: "+b);
if( !b ){
webcamPub.publish();
} else {
webcamPub.stop();
}
}
Have more questions? Submit a request

Comments

Powered by Zendesk