【发布时间】:2012-03-18 18:35:24
【问题描述】:
如何在 Twitter Bootstrap 模型关闭时停止多个 Youtube 视频的播放?
这就是我所拥有的...当我只有一个视频时,它可以正常工作...
var player = document.getElementById('MjXAo2qxMlA'); //save the object or embed youtube video in a variable
$('#ttvideoModalTwo').on('hide', function () {
player.stopVideo();
})
var player = document.getElementById('zXscUitXHPc'); //save the object or embed youtube video in a variable
$('#ttvideoModalOne').on('hide', function () {
player.stopVideo();
})
【问题讨论】: