【问题标题】:Embedding video on this site is forbidden. Watch on Odnoklassniki禁止在本网站嵌入视频。观看 Odnoklassniki
【发布时间】:2019-07-09 08:31:00
【问题描述】:

我正在尝试将此代码嵌入到我的 blogspot 中,但在发布后出现此错误 -

“禁止在本网站嵌入视频。在 Odnoklassniki 上观看”

代码sn-p-

<iframe width="560" height="315" src="//ok.ru/videoembed/916692339423" frameborder="0" allow="autoplay" allowfullscreen></iframe>

【问题讨论】:

    标签: html iframe embed blogger


    【解决方案1】:

    添加视频的完整网址后,它可以工作

    <iframe width="560" height="315" src="https://ok.ru/videoembed/916692339423" frameborder="0" allow="autoplay" allowfullscreen></iframe>
    

    【讨论】:

      【解决方案2】:

      ok.ru 有一个适用于此的嵌入小部件。只需替换您的视频 URL,如下所示(无论是否使用 URL 开头定义的协议,这都适用)

      <script>
      !function (d, id, did, st) {
        var js = d.createElement("script");
        js.src = "https://connect.ok.ru/connect.js";
        js.onload = js.onreadystatechange = function () {
        if (!this.readyState || this.readyState == "loaded" || this.readyState == "complete") {
          if (!this.executed) {
            this.executed = true;
            setTimeout(function () {
              OK.CONNECT.insertContentWidget(id,did,st);
            }, 0);
          }
        }};
        d.documentElement.appendChild(js);
      }(document,"ok_content_widget","https://ok.ru/videoembed/916692339423",'{"topicTextIsFull":1}');
      </script>
      

      【讨论】:

        猜你喜欢
        • 2013-09-30
        • 1970-01-01
        • 2017-04-19
        • 2017-06-27
        • 2021-03-25
        • 1970-01-01
        • 2011-12-04
        • 2016-03-20
        • 1970-01-01
        相关资源
        最近更新 更多