Google Meet 如何让您从另一个选项卡进行屏幕共享? [英] How does Google Meet allow you to screen share from another tab?

查看:138
本文介绍了Google Meet 如何让您从另一个选项卡进行屏幕共享?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Google Meet 中,如果您点击立即演示"然后是一个 Chrome 标签",它会弹出一个窗口,让你从另一个标签共享.这与标准 Screen Capture API 不同,就好像您只是运行

In Google Meet, if you click "Present Now" then "A Chrome Tab", it brings up a window that lets you share from another tab. This is different to the standard Screen Capture API as if you simply run

navigator.mediaDevices.getDisplayMedia({
    video: true,
    audio: true,
})

您会看到一个窗口,您可以在其中选择共享整个屏幕、共享窗口或共享选项卡.我想将其限制为仅选项卡.我尝试应用以下约束:

you get a window where you can choose between sharing your whole screen, sharing a window, or sharing a tab. I would like to limit this to tab only. I have tried applying constraints like:

video: { displaySurface: 'browser' }

video: { displaySurface: { exact: 'browser' } }

但是,规范说这不起作用 确实没有.但如果是这样,那么 Google Meet 是如何做到的?

however, the specs say that this doesn't work and indeed it doesn't. But if that's the case, then how does Google Meet do it?

推荐答案

Google Meet 使用较旧的扩展 API 进行屏幕共享.此 API 允许限制源类型.它仍然可用,但需要一个扩展程序(Google meet 提供预安装的扩展程序).

Google Meet uses the older extension API for screensharing. This API allows restricting the source types. It is still available but requires an extension (Google meet delivers a preinstalled extensions).

标准的 getDisplayMedia 不允许限制 displaySurface 的类型.

The standard getDisplayMedia does not allow restricting the types of displaySurface.

这篇关于Google Meet 如何让您从另一个选项卡进行屏幕共享?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆