Commit fbf52c66 authored by Anton's avatar Anton

Wait for player instance in setSources method

parent 2383ff63
......@@ -119,6 +119,10 @@
this.$emit('state-change', player)
},
setSources (sources, poster = undefined) {
if (!this.player) {
const _this = this
return setTimeout(() => _this.setSources(sources, poster), 100)
}
if (!Array.isArray(sources)) {
sources = [sources]
}
......
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