Commit 453e9b24 authored by Anton's avatar Anton

Only load videos when cell is visible

parent 24afc68b
<template lang="pug">
div(:class="{'display-preview': preview, 'display-full': display}")
div(v-if="visible", :class="{'display-preview': preview, 'display-full': display}")
q-window-resize-observable(@resize="onResize")
template(v-if="display")
video-player(
......@@ -53,7 +53,12 @@
watch: {
visible (val) {
if (!val && this.player) {
this.player.pause()
try {
this.player.pause()
}
catch (err) {
console.debug('Player pause failed', err)
}
}
}
},
......
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