0
0
Fork 0
mirror of https://github.com/VueTubeApp/VueTube synced 2024-11-22 19:25:16 +00:00

progressbar cleanup

This commit is contained in:
Nikita Krupin 2022-06-08 12:34:52 -04:00
parent c9fe1c4252
commit e936325ccb
2 changed files with 6 additions and 6 deletions

View file

@ -254,12 +254,12 @@
</div>
<progressbar
v-if="$refs.player"
:video="$refs.player"
:seeking="seeking"
:controls="controls"
:fullscreen="isFullscreen"
:current-time="$refs.player.currentTime"
:duration="$refs.player.duration"
:fullscreen="isFullscreen"
:controls="controls"
:buffered="buffered"
:seeking="seeking"
/>
<seekbar
v-if="$refs.player"

View file

@ -9,7 +9,7 @@
background-opacity="0.5"
background-color="white"
:buffer-value="buffered"
:value="(currentTime / video.duration) * 100"
:value="(currentTime / duration) * 100"
:class="!fullscreen || controls ? '' : 'invisible'"
color="primary"
:height="seeking ? 4 : 2"
@ -23,7 +23,7 @@
<script>
export default {
props: {
video: {
duration: {
type: Object,
required: true,
},