electron 获取屏幕共享流失败 50001

electron 获取屏幕共享流失败 50001
发布时间: 2021-09-26 16:35

回答:

1、SDK判断如果是election获取屏幕共享流需要增加一个参数 chromeMediaSourceId

2、参数如下:

createScreenVideoTrack (tag: string = 'screenshare', options?: IScreenVideoProfile)

options = {
....

chromeMediaSourceId: ""

}

3、chromeMediaSourceId获取方式参考:

chromeMediaSourceId获取方法参考文档:https://cloud.tencent.com/developer/section/1116147

wecom-temp-a1b4ce1b77725c6be917e3405a0be80c.png