2022-06-01 18:06:34 +00:00
|
|
|
<template>
|
|
|
|
<v-progress-linear
|
2022-06-07 17:16:26 +00:00
|
|
|
style="
|
|
|
|
z-index: 2;
|
|
|
|
position: absolute;
|
|
|
|
background: #ffffff22;
|
|
|
|
transform: translateY(50%);
|
|
|
|
"
|
2022-06-01 18:06:34 +00:00
|
|
|
background-opacity="0.5"
|
2022-06-07 17:16:26 +00:00
|
|
|
background-color="white"
|
2022-06-01 18:06:34 +00:00
|
|
|
:buffer-value="buffered"
|
2022-06-08 16:34:52 +00:00
|
|
|
:value="(currentTime / duration) * 100"
|
2022-06-01 19:02:02 +00:00
|
|
|
:class="!fullscreen || controls ? '' : 'invisible'"
|
2022-06-01 18:06:34 +00:00
|
|
|
color="primary"
|
2022-06-07 17:16:26 +00:00
|
|
|
:height="seeking ? 4 : 2"
|
2022-06-01 18:06:34 +00:00
|
|
|
:style="
|
|
|
|
fullscreen
|
2022-06-08 20:15:15 +00:00
|
|
|
? 'width: calc(100% - 2rem); left: 1rem; bottom: 3.5rem;'
|
2022-06-07 17:16:26 +00:00
|
|
|
: 'width: 100%; left: 0; bottom: 1px;'
|
2022-06-01 18:06:34 +00:00
|
|
|
"
|
|
|
|
/>
|
|
|
|
</template>
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
props: {
|
2022-06-08 16:34:52 +00:00
|
|
|
duration: {
|
2022-06-01 18:06:34 +00:00
|
|
|
type: Object,
|
|
|
|
required: true,
|
|
|
|
},
|
2022-06-07 17:16:26 +00:00
|
|
|
seeking: {
|
|
|
|
type: Boolean,
|
|
|
|
required: true,
|
|
|
|
},
|
2022-06-01 18:06:34 +00:00
|
|
|
fullscreen: {
|
|
|
|
type: Boolean,
|
|
|
|
required: true,
|
|
|
|
},
|
|
|
|
currentTime: {
|
|
|
|
type: Number,
|
|
|
|
required: true,
|
|
|
|
},
|
2022-06-01 19:05:19 +00:00
|
|
|
controls: {
|
|
|
|
type: Boolean,
|
|
|
|
required: true,
|
|
|
|
},
|
2022-06-08 15:59:43 +00:00
|
|
|
buffered: {
|
|
|
|
type: Number,
|
|
|
|
required: true,
|
|
|
|
},
|
2022-06-01 18:06:34 +00:00
|
|
|
},
|
|
|
|
};
|
|
|
|
</script>
|