Commit 5c6312fd authored by anton's avatar anton

Fetch metadata for fauxMedia

parent 2f2fce6c
Pipeline #59860 passed with stage
in 1 minute and 32 seconds
......@@ -58,14 +58,27 @@
const meta = await this.$store.dispatch('metadata/getLocal', this.video)
this.$emit('onMetadata', meta)
}
catch (e) {
console.error('Unable to fetch metadata for media')
catch (err) {
console.error('Unable to fetch metadata for media:', err.message)
}
}
}
}
else {
const videoUrl = this.cell ? this.cell.source._value.content : undefined
if (!videoUrl) return
this.fauxMedia()
if (!this.display) {
try {
const meta = await this.$store.dispatch('metadata/get', this.video)
this.$emit('onMetadata', meta)
}
catch (err) {
console.error('Unable to fetch metadata for fauxMedia', err.message)
}
}
}
if (this.display) {
if (!this.cell.source.start) this.showPlayer = true
......
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