logo
On this page

On the Web platform, after creating a stream through the "createStream" method and assigning a value to the "srcObject" of the video object, why is there no video in the video object?

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

You can handle this in the following two ways:

  • You need to set the "autoplay" attribute for the video object to autoplay.
  • You can set the "controls" attribute for the video object, and the user can then manually click the playback control to play.
Note

The "autoplay" attribute is invalid in Safari browser on iOS. You need to use the second method to handle it.

Previous

How to implement screenshot functionality for preview and play stream video on Web platform?

Next

How to get Roomkit SDK logs?