如何在 Firefox 中禁用 html5 视频上的 "picture in picture"
How to disable "picture in picture" on html5 video in firefox
html 元素 video
有一个名为 disablePictureInPicture
的属性,虽然它似乎只在 chrome.
中有效,但它工作得很好
由于我只能找到关于此的旧帖子,而这些帖子并没有在修复或解决方法中结束,所以我再次在这里提问。
你知道这个问题的 fix/workaround 吗?
这是最近 discussed on bugzilla 的结果:
(at this time) we're not planning on implementing or shipping any part
of the Picture-in-Picture Web API
但是我发现有些后台有视频的网站没有pip按钮。他们通过从视频中删除所有音频流来实现,这会导致 firefox 不显示该按钮。显然这不适用于所有用例,但在某些情况下可能有用。
您可以这样做,例如像 this 问题中描述的那样使用 ffmpeg。
html 元素 video
有一个名为 disablePictureInPicture
的属性,虽然它似乎只在 chrome.
由于我只能找到关于此的旧帖子,而这些帖子并没有在修复或解决方法中结束,所以我再次在这里提问。
你知道这个问题的 fix/workaround 吗?
这是最近 discussed on bugzilla 的结果:
(at this time) we're not planning on implementing or shipping any part of the Picture-in-Picture Web API
但是我发现有些后台有视频的网站没有pip按钮。他们通过从视频中删除所有音频流来实现,这会导致 firefox 不显示该按钮。显然这不适用于所有用例,但在某些情况下可能有用。
您可以这样做,例如像 this 问题中描述的那样使用 ffmpeg。