fix glitch
This commit is contained in:
parent
80a238094f
commit
b07840b623
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -178,8 +178,8 @@ export default {
|
|||
this.$refs[p].unselect();
|
||||
},
|
||||
|
||||
/// Play a playlist's sound (by playlist name, and sound index)
|
||||
play(playlist=null, index=0) {
|
||||
/// Load a sound from playlist or live
|
||||
load(playlist=null, index=0) {
|
||||
let src = null;
|
||||
|
||||
// from playlist
|
||||
|
@ -213,7 +213,10 @@ export default {
|
|||
audio.src = src;
|
||||
}
|
||||
audio.load();
|
||||
audio.play();
|
||||
},
|
||||
|
||||
play(playlist=null, index=0) {
|
||||
this.load(playlist, index);
|
||||
audio.play().catch(e => console.error(e))
|
||||
},
|
||||
|
||||
|
@ -276,6 +279,10 @@ export default {
|
|||
},
|
||||
},
|
||||
|
||||
mounted() {
|
||||
this.load();
|
||||
},
|
||||
|
||||
components: { Playlist, Progress },
|
||||
}
|
||||
</script>
|
||||
|
|
Loading…
Reference in New Issue
Block a user