【问题标题】:How would I be able to make it so a youtube embed cannot be paused [HTML5]我怎么能做到这样一个 youtube 嵌入不能被暂停 [HTML5]
【发布时间】:2017-06-08 12:54:03
【问题描述】:

I am making a chrome NewTab Extension - Here is a download link if you want to be able to see the exact code

我希望能够对其进行更改,以便最终用户无法暂停嵌入到我的主 index.html 上的 youtube

 <div class="vidbg"style="position: fixed; z-index: -99; width: 100%; height: 100%">

【问题讨论】:

    标签: html iframe youtube


    【解决方案1】:

    从嵌入式播放器中删除控件。
    在播放器上放置一个透明的封面 div 以停止直接点击或交互。
    如果您仍希望与播放器交互,请为所需操作的 api 提供 js 链接。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2022-11-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-02-08
      • 2023-01-08
      • 1970-01-01
      相关资源
      最近更新 更多