Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我一直在寻找获得 jPlayer 实例以允许音频文件只播放一次的最佳方法。我想我可以.jPlayer("destroy");在活动完成后打电话,但我觉得必须有更好的方法。
.jPlayer("destroy");
$(id).jPlayer( "clearMedia" ) : jQuery
您可以在播放一首歌曲后使用它来清除当前媒体。之后播放按钮不会播放任何内容,直到您通过使用setmedia方法使用新网址
setmedia