@grfzhl/vue-hls-player 1.0.5 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -12,7 +12,6 @@
|
|
|
12
12
|
:poster="previewImageLink"
|
|
13
13
|
:controls="false"
|
|
14
14
|
:title="title"
|
|
15
|
-
:isFullscreen="isFullscreen"
|
|
16
15
|
controlslist="nodownload"
|
|
17
16
|
playsinline
|
|
18
17
|
crossorigin
|
|
@@ -101,7 +100,6 @@ const videoCursor = ref(0)
|
|
|
101
100
|
const isFullscreen = ref(false);
|
|
102
101
|
|
|
103
102
|
onMounted(() => {
|
|
104
|
-
console.log("mounted current - - changed")
|
|
105
103
|
prepareVideoPlayer()
|
|
106
104
|
if (video.value) {
|
|
107
105
|
checkFullscreen();
|
|
@@ -131,12 +129,12 @@ const currentSubtitle = computed(() => {
|
|
|
131
129
|
})
|
|
132
130
|
|
|
133
131
|
function checkFullscreen() {
|
|
134
|
-
isFullscreen.value = document.fullscreenElement
|
|
132
|
+
isFullscreen.value = !!document.fullscreenElement;
|
|
135
133
|
};
|
|
136
134
|
|
|
137
135
|
function onFullscreenChange() {
|
|
138
136
|
checkFullscreen();
|
|
139
|
-
emit('video-fullscreen-change',
|
|
137
|
+
emit('video-fullscreen-change', document.fullscreenElement)
|
|
140
138
|
};
|
|
141
139
|
|
|
142
140
|
|