Browse Source

support playing Array of urls

boyska 1 year ago
parent
commit
5f93e6240c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/components/Player.vue

+ 1 - 1
src/components/Player.vue

@@ -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']) {