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.
でメディアを再生するボタンを作成する方法を見つけようとしていますmediaelement.js。私は試してみplayer.stopましたplayer.play。しかしplayer.stop、利用できません。
mediaelement.js
player.stop
player.play
ドキュメントには次のように記載されています。
HTML5は「一時停止」メソッドを定義しますが、「停止」メソッドは定義しません。「停止」方式は、Flash RTMPストリーミングをサポートするためにのみ存在するため、他のすべての場合は「一時停止」方式を使用する必要があります。
は使用しないでください.stop()。setCurrentTime(0)最初から同じ曲を再生したい場合に使用できます。
.stop()
setCurrentTime(0)