Enabling WebCodec stops screen share feature from working in Chorme

Hey @shoaib @hasan.md

Thanks for your feedback. Sorry for the unpleasant experience of Web Video SDK.

If the Web Codecs is enabled, you should pass the Video Element instead of Canvas Element to stream.startShareScreen method. Following is a quick way to determine whether the browser supports WebCodecs:

function isSupportWebCodecs(){
  return typeof window.MediaStreamTrackProcessor === 'function'
}

We have updated the react-demo sample code, you can also refer to its implementation.

In the next release of Web Video SDK, we will provide detailed instructions on the console when the WebCodecs is enabled.

Thanks
Vic

1 Like