Add media.ended binding.
This commit is contained in:
parent
111eb33429
commit
e09efb46a0
2 changed files with 14 additions and 0 deletions
1
game.js
1
game.js
|
@ -49,6 +49,7 @@ window.addEventListener("load", async () => {
|
|||
},
|
||||
media: {
|
||||
newAudio: (src) => new Audio(src),
|
||||
ended: (media) => media.ended,
|
||||
play: (media) => media.play(),
|
||||
pause: (media) => media.pause(),
|
||||
volume: (media) => media.volume,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue