我试图在一个网站上嵌入抽动剪辑和视频,感觉就像我的头撞到了墙上。
我有个文物部拿着一个内嵌的抽筋夹。在我的ftp站点和本地主机上,嵌入的剪辑都无法工作。我只能假设我和我的父母做错了什么,但我已经尝试了几乎所有的方法。我得到了这个twitch连接错误-我遵循了twitch API,但没有正确执行。

不确定是否有区别,但html文件位于目录- abcstreamer.co.za/commingsoon/streamclips.html中
这是我的本地托管代码:
<article class="stream stream-1 has-post-thumbnail">
<iframe
src="https://clips.twitch.tv/embed?clip=EphemeralPlainSaladPipeHype-24G9rCNWcx09Wc42&parent=localhost:5500"
allowfullscreen="true",
autoplay=false,
height="100%"
width="100%">
</iframe>
</article>下面是我的ftp站点代码:
<iframe
src="https://clips.twitch.tv/embed?clip=EphemeralPlainSaladPipeHype-24G9rCNWcx09Wc42&parent=abcstreamer.co.za"
allowfullscreen="true"
autoplay="false",
height="100%"
width="100%">
</iframe>可能使用过twitch API调用的人可以帮助纠正一个我看不到的错误吗?
发布于 2021-07-17 21:15:34
abcstreamer.co.za不存在,所以我不能为您调试
Twitch Embeds要求站点通过SSL。
如果您的嵌入位于站点上的iframe中,则可能需要多个parent。站点构建器工具,如wix,将把embed in和iframe放在站点上,所以你需要两个或更多的父母声明。
所以你可能需要
https://clips.twitch.tv/embed?clip=EphemeralPlainSaladPipeHype-24G9rCNWcx09Wc42&parent=abcstreamer.co.za&parent=www.abcstreamer.co.za来说明www.如果您不重定向www。转到非www。反之亦然。这同样适用于将非SSL用户重定向到SSL版本
或
https://clips.twitch.tv/embed?clip=EphemeralPlainSaladPipeHype-24G9rCNWcx09Wc42&parent=abcstreamer.co.za&parent=www.abcstreamer.co.za&parent=someotherdomain.com如果someotherdomain.com在站点构建器上处理iframe
"mega thread“有更多关于确定父栈https://discuss.dev.twitch.tv/t/the-great-big-im-using-wix-somewebsitemaking-tool-and-i-dont-know-how-to-fix-my-embed-thread/26297/的建议。
https://stackoverflow.com/questions/67918074
复制相似问题