@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 === video.value;
132
+ isFullscreen.value = !!document.fullscreenElement;
135
133
  };
136
134
 
137
135
  function onFullscreenChange() {
138
136
  checkFullscreen();
139
- emit('video-fullscreen-change', isFullscreen)
137
+ emit('video-fullscreen-change', document.fullscreenElement)
140
138
  };
141
139
 
142
140
 
@@ -59,7 +59,6 @@ defineProps({
59
59
  default: true
60
60
  }
61
61
  })
62
- console.log("abc <<<<<<<<<<<<<")
63
62
 
64
63
  function pause(currentTime) {
65
64
  emit('pause', currentTime)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@grfzhl/vue-hls-player",
3
3
  "private": false,
4
- "version": "1.0.5",
4
+ "version": "1.0.6",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist"