2022-05-28 05:16:27 +00:00
|
|
|
<template>
|
|
|
|
<v-btn
|
|
|
|
fab
|
|
|
|
text
|
2022-05-29 23:41:42 +00:00
|
|
|
large
|
2022-05-28 05:16:27 +00:00
|
|
|
color="white"
|
2022-07-31 17:40:24 +00:00
|
|
|
:loading="buffering"
|
2022-06-09 05:36:01 +00:00
|
|
|
@click="
|
2022-06-08 18:05:00 +00:00
|
|
|
(paused = !video.paused), video.paused ? $emit('play') : $emit('pause')
|
2022-05-28 05:16:27 +00:00
|
|
|
"
|
|
|
|
>
|
2022-05-29 23:41:42 +00:00
|
|
|
<v-icon size="3.5rem">
|
2022-05-28 05:16:27 +00:00
|
|
|
{{ paused ? "mdi-play" : "mdi-pause" }}
|
|
|
|
</v-icon>
|
|
|
|
</v-btn>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
2022-06-08 18:05:00 +00:00
|
|
|
props: {
|
|
|
|
video: {
|
|
|
|
type: Object,
|
|
|
|
required: true,
|
|
|
|
},
|
2022-07-31 17:40:24 +00:00
|
|
|
buffering: {
|
|
|
|
type: Boolean,
|
|
|
|
required: false,
|
|
|
|
},
|
2022-06-08 18:05:00 +00:00
|
|
|
},
|
|
|
|
emits: ["play", "pause"],
|
2022-05-28 05:16:27 +00:00
|
|
|
data: () => ({
|
|
|
|
paused: false,
|
|
|
|
}),
|
|
|
|
};
|
|
|
|
</script>
|