2022-05-28 05:16:27 +00:00
|
|
|
<template>
|
2022-06-08 19:24:47 +00:00
|
|
|
<div style="color: #fff; font-size: 0.75rem">
|
2022-08-10 20:14:21 +00:00
|
|
|
{{ humanWatchTime }}
|
2022-08-10 19:41:27 +00:00
|
|
|
<span style="color: #aaa"> / {{ humanDuration }} </span>
|
2022-05-28 05:16:27 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
2022-06-07 18:29:57 +00:00
|
|
|
props: {
|
2022-06-08 15:59:43 +00:00
|
|
|
duration: {
|
|
|
|
type: Number,
|
|
|
|
required: true,
|
|
|
|
},
|
2023-05-08 10:43:03 +00:00
|
|
|
currentTime: {},
|
|
|
|
controls: {},
|
2022-05-28 05:16:27 +00:00
|
|
|
},
|
2022-10-07 02:12:06 +00:00
|
|
|
computed: {
|
|
|
|
humanDuration() {
|
|
|
|
if (this.duration) return this.$vuetube.humanTime(this.duration);
|
|
|
|
return "0:00";
|
|
|
|
},
|
|
|
|
humanWatchTime() {
|
|
|
|
if (this.currentTime) return this.$vuetube.humanTime(this.currentTime);
|
|
|
|
return "0:00";
|
|
|
|
},
|
2022-08-10 20:14:21 +00:00
|
|
|
},
|
2022-05-28 05:16:27 +00:00
|
|
|
};
|
|
|
|
</script>
|