diff options
Diffstat (limited to 'boot.js')
-rw-r--r-- | boot.js | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -127,11 +127,20 @@ async function load() { play(audio) { audio.play(); }, + pause(audio) { + audio.pause(); + }, volume(audio) { return audio.volume; }, setVolume(audio, vol) { audio.volume = vol; + }, + setLoop(audio, loop) { + audio.loop = (loop == 1); + }, + seek(audio, time) { + audio.currentTime = time; } }, image: { |