在我们的主页上,我们有一个 Wistia 嵌入,它以模式打开并在用户单击文本链接时播放。我想创建一个特殊的 URL,我可以将人们发送到该 URL,它将自动打开模式但不开始播放。
html:
<span class="wistia_embed wistia_async_i74bcbgfkm popover=true popoverAnimateThumbnail=true popoverContent=link wistia_embed_initialized" style="display:inline" id="wistia-i74bcbgfkm-1">
<div id="wistia_36.thumb_container" class="wistia_click_to_play" style="position: relative; display: inline;">
<a class="text-link" href="#">See the science. Watch video.</a>
</div>
</span>
JS:
// Auto Play Wistia Video via Specific Link
$(document).ready(function() {
if(window.location.href.indexOf('#science') != -1) {
## open modal?
}
});
这可能吗?