logo
On this page

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,
       }
  });

Previous

Web platform uses "https" to go online, but the flv play stream address returned by SDK is "http", which is incompatible. How to solve?

Next

In scenarios where rooms need to be switched frequently, the rendering speed of the playing stream's screen is relatively slow. How to optimize it?