Verified Commit 1f1e6fdc authored by Agate's avatar Agate 💬

Cleaner autoplay with embed frame

parent 19e64763
Pipeline #9892 passed with stages
in 8 minutes and 17 seconds
......@@ -61,7 +61,7 @@
:key="currentIndex"
ref="player"
class="player"
:options="{loadSprite: false, controls: controls, duration: currentTrack.sources[0].duration}">
:options="{loadSprite: false, controls: controls, duration: currentTrack.sources[0].duration, autoplay}">
<audio preload="none">
<source v-for="source in currentTrack.sources" :src="source.src" :type="source.type"/>
</audio>
......@@ -383,9 +383,6 @@ export default {
},
tracks () {
this.currentIndex = 0
if (this.autoplay) {
this.play(this.currentIndex)
}
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment