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,
},