logo
On this page

Can the parameters "audioInput" and "videoInput" be passed as empty strings when calling the createStream method on the Web platform?

2022-11-15
Products / Plugins:Video Call / Audio Call / Live streaming
Platform / Framework:Web

  • audioInput: Audio input device. If not passed, the default device is used. Optional.
  • videoInput: Video input device. If not passed, the default device is used. Optional.

If the "audioInput" and "videoInput" parameters are not passed (the entire parameter does not need to be carried), the SDK will use the default device. If an empty string is passed, it will fail to get the device. You can write it as audioInput: undefined, videoInput: undefined.

Previous

How to get offline push PushID?

Next

Web platform SDK publish stream error "stream not from zego", how to handle?