support playing Array of urls

This commit is contained in:
boyska 2023-03-28 19:44:43 +02:00
parent 7d632a240e
commit 5f93e6240c

View file

@ -60,7 +60,7 @@ export default {
autoSuspend: false,
html5: true,
preload: true,
src: [url],
src: Array.isArray(url) ? url : [url],
})
const t = this
for(const eventName of ['pause', 'play', 'end']) {