发布后出现此错误,我试图将此代码嵌入我的Blogspot中-
“禁止在此网站上嵌入视频。请在Odnoklassniki上观看”
代码段-
<iframe width="560" height="315" src="//ok.ru/videoembed/916692339423" frameborder="0" allow="autoplay" allowfullscreen></iframe>
答案 0 :(得分:0)
在添加了视频的完整网址后,
<iframe width="560" height="315" src="https://ok.ru/videoembed/916692339423" frameborder="0" allow="autoplay" allowfullscreen></iframe>
答案 1 :(得分:0)
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>