mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-26 17:01:20 -08:00
fix: reset playback state on play after ended and emit additional events on video end
This commit is contained in:
1 parent
e45bc1ef20
commit
7d8034ca18
4 files changed
+15
-3
No files matched your search
@@ -134,7 +134,10 @@ export default function createMediabunnyEngine({
|
||||
async function play() {
|
||||
if (!_paused)
|
||||
return
|
||||
_ended = false
|
||||
if (_ended) {
|
||||
_ended = false
|
||||
await seek(0)
|
||||
}
|
||||
_paused = false
|
||||
await audio.play()
|
||||
video.start(audio)
|
||||
|
||||
Reference in new issue
Block a user