0
中的任何視頻,我如何設置一個可以阻止任何視頻嵌入的按鈕?jQuery tubeplayer - 使用<a href="http://www.tikku.com/jquery-youtube-tubeplayer-plugin" rel="nofollow">jQuery tubeplayer</a>鏈接來停止頁面
我嘗試了PHP的呈現倍數視頻:
echo '
<div class="video_frame">
<script type="text/javascript">
$(".video_frame").tubeplayer({
width: 960, // the width of the player
height: 390, // the height of the player
allowFullScreen: "true", // true by default, allow user to go full screen
initialVideo: "'.$destaque_g['video'].'", // the video that is loaded into the player
preferredQuality: "default",// preferred quality: default, small, medium, large, hd720
onPlay: function(id){}, // after the play method is called
onPause: function(){}, // after the pause method is called
onStop: function(){}, // after the player is stopped
onSeek: function(time){}, // after the video has been seeked to a defined point
onMute: function(){}, // after the player is muted
onUnMute: function(){} // after the player is unmuted
});
</script>
<div>';
並調用這裏面的頭文件標籤:
$('.stripe_bottom').find('a').click(function() {
$('.video_frame').tubeplayer('stop');
});
我想,任何標記「的」內帶班「stripe_bottom」 DIV可以通過'video_frame'類停止任何div中的視頻。
當我點擊「stripe_bottom」內的鏈接時,第一個視頻停止播放,但另一個視頻不會停止。
任何人都可以幫忙嗎?
GREAT!完美的作品。 謝謝 –