由于某些认证要求,我想为我的网站的<Video>
标签禁用画中画功能,但是firefox不允许关闭。任何帮助,将不胜感激。
shadow-root
与{mode:"closed"}
结合使用以强制显示画中画拼图(See the image)。注意:我还添加了disablePictureInPicture
属性,但仍不适用于Firefox。
<video width="400" src="http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" controls disablePictureInPicture></video>
据我所知,目前(自Firefox 72起)网站作者没有选择禁用该按钮的选项。只有用户可以hide it via the Firefox settings。
尽管几小时前创建了request to add an API。