0
0
Fork 0
mirror of https://github.com/VueTubeApp/VueTube synced 2024-11-08 20:45:07 +00:00
VueTube/NUXT/components/Player/watchtime.vue
2022-06-08 12:36:32 -04:00

28 lines
555 B
Vue

<template>
<div
style="color: #fff; left: 1rem; font-size: 0.75rem; position: absolute"
:style="fullscreen ? 'bottom: 4.25rem' : 'bottom: 1rem'"
>
{{ $vuetube.humanTime(currentTime) }}
<span style="color: #aaa"> / {{ $vuetube.humanTime(duration) }} </span>
</div>
</template>
<script>
export default {
props: {
fullscreen: {
type: Boolean,
required: true,
},
duration: {
type: Number,
required: true,
},
currentTime: {
type: Number,
required: true,
},
},
};
</script>