用于检查屏幕共享支持的Tokbox代码为
OT.checkScreenSharingCapability(function (response) {
console.log('checkScreenSharingCapability response = ', response);
if (!response.supported || response.extensionRegistered === false) {
// This browser does not support screen sharing
console.log('screen share not supported');
}
});
我在Safari 13中获得的输出是
checkScreenSharingCapability response =
extensionInstalled: undefined
extensionRegistered: undefined
extensionRequired: undefined
supported: true
supportedSources: {screen: true, application: false, window: true, browser: false}
因此,它说它受支持,并且不起作用(文档说不被支持)。这与Chrome(受支持)返回的响应相同,因此使用 opentok / client 2.16.3
时,存储库本身似乎是错误的