Commit 2b8e3e32 authored by christianrhansen's avatar christianrhansen

added video-player

parent bb38d4ba
......@@ -2,6 +2,9 @@
full-screen
back-button(slot="backButton")
template(slot="form-title") Annotations Table
video-player(v-if="video", :src="video.body.source.id", @ready="playerReady($event)", @time="onPlayerTime($event)")
.q-mt-lg
data-table(v-if="query", :config="config", path="annotations", :query="query")
</template>
......@@ -66,6 +69,7 @@
methods: {
async getVideo () {
this.video = await this.$store.dispatch('annotations/get', this.$route.params.id)
console.log('video---', this.video.body.source.id)
this.timeline = await this.$store.dispatch('maps/get', parseURI(this.video.target.id).uuid)
if (this.video) {
this.metadata = await this.$store.dispatch('metadata/get', this.video)
......
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