jQuery jPlayer - 如何在播放新玩家之前阻止所有玩家? [英] jQuery jPlayer - How to stop all players before playing a new one?
本文介绍了jQuery jPlayer - 如何在播放新玩家之前阻止所有玩家?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我点击播放时,我需要在播放新的jPlayer之前停止所有其他jPlayer实例。
I need to stop all other instances of jPlayer before playing a new one when i click play.
感谢您的帮助。
推荐答案
已解决
刚刚为播放触发器分配了onclick功能并且功能确实如此:
just assigned onclick function to the play trigger and the functions does:
function stopall(){
$(".jplyrselectr").jPlayer("stop");
}
这篇关于jQuery jPlayer - 如何在播放新玩家之前阻止所有玩家?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文