【发布时间】:2019-06-23 23:47:33
【问题描述】:
我正在使用以下 URL 在我的网站中嵌入来自 Instagram 的视频:
https://www.instagram.com/p/Bp4I3hRhd_v/embed
用 iframe 嵌入它:
<iframe src="https://www.instagram.com/p/Bp4I3hRhd_v/embed" frameborder="0" scrolling="yes" allowtransparency="true" width="450" height="450"></iframe>
当该视频不再出现在屏幕上时(或用户已经滚动离开它),有什么方法可以停止播放?
PS。我已经尝试过互联网上针对 youtube 视频提供的所有解决方案,但它不适用于 Instagram 视频,因为 Insta 视频的嵌入模式与 YT 的不同。
【问题讨论】:
标签: javascript php jquery instagram embed