Modifying Published Streams

Changing which Tracks are Published

Once you publish a stream you can change which tracks are published. For example, you may have only published the audio track with publishStream({sendAudio: true, sendVideo: false}). To change the published stream to include your video feed you can use the enableVideo() method like so:

aloVideo.enableVideo(true);

To disable video you would make a call like the following:

aloVideo.enableVideo(false);

To change whether or not the audio track is published you can use enableAudio().

Changing Input Devices

To the current microphone and/or camera use the changeAudioInput() and changeVideoInput() methods. For more information see Input Device Selection.

Last updated