How to push pure audio stream on Web platform?
2022-11-15
Products / Plugins:Video Call / Audio Call / Live streaming
Platform / Framework:Web
The SDK internally defaults to pushing audio and video. If you want to push a pure audio stream, when calling the createStream method, you need to set the "video" property of the camera object to "false".
let localStream = await zg.createStream({
camera: {
video: false,//Do not push video
audio: true,
}
});