Commit 8976e721 authored by christianrhansen's avatar christianrhansen

removed commented code & console.logs

parent 62906b74
......@@ -57,17 +57,6 @@
sortable: true,
filter: true
}
/*
{
name: 'start',
label: _this.$t('labels.starting_point'),
sortable: true,
sort: _this.$sort.onDateValue,
field: row => row.target.selector.value,
format: val => DateTime.fromISO(val)
.toLocaleString(DateTime.DATETIME_SHORT_WITH_SECONDS)
}
*/
]
}
}
......@@ -86,7 +75,6 @@
},
onPlayerTime (seconds) {
this.playerTime = seconds
console.log(seconds)
},
baseSelector () {
if (!this.video) return DateTime.local().toISO()
......@@ -95,12 +83,10 @@
.toISO()
},
onStart (selector) {
// alert(DateTime.fromISO(selector))
const millis = DateTime.fromISO(selector, { setZone: true }).toMillis() -
DateTime.fromISO(this.video.target.selector.value, { setZone: true }).toMillis()
const targetMillis = millis * 0.001
if (this.playerTime !== targetMillis) this.player.currentTime(targetMillis)
console.log(targetMillis)
},
async getVideo () {
this.video = await this.$store.dispatch('annotations/get', this.$route.params.id)
......
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