@grfzhl/vue-hls-player 1.0.8 → 1.0.9

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.
package/README.md CHANGED
@@ -183,6 +183,10 @@ it makes the video muted
183
183
  it will set the native <video> autoplay property
184
184
 
185
185
  ### Last release:
186
+ v1.0.9
187
+ - Fix sizes in fullscreen mode for video
188
+ - Hide transcript block completely when hidden
189
+
186
190
  v1.0.8
187
191
  - Add slots to inject own elements nearby video element
188
192
  - Add prop for autoplay video
@@ -2,7 +2,7 @@
2
2
  <div class="video-container">
3
3
  <div class="media-container" id="hls-player-media-container">
4
4
  <slot name="before-media"></slot>
5
- <media-theme-sutro class="video-player-theme-container">
5
+ <media-theme-sutro class="video-player-theme-container" :class="{'is-fullscreen': isFullscreen}">
6
6
  <video
7
7
  class="hls-player"
8
8
  slot="media"
@@ -191,6 +191,7 @@ watch([props, videoElement], (a) => {
191
191
  })
192
192
 
193
193
  function onFullscreenChange() {
194
+ isFullscreen.value = !!document.fullscreenElement
194
195
  emit('video-fullscreen-change', document.fullscreenElement)
195
196
  };
196
197
 
@@ -307,9 +308,22 @@ function changeSpeed(e) {
307
308
 
308
309
  .video-player-theme-container, .hls-player {
309
310
  width: 100%;
311
+ height: 100%;
310
312
  }
311
313
 
312
314
  .video-container {
313
315
  position: relative;
316
+ line-height: 0;
314
317
  }
318
+
319
+ .video-player-theme-container.is-fullscreen {
320
+ width: 100vw;
321
+ height: 100vh;
322
+ object-fit: cover;
323
+ }
324
+ .video-player-theme-container.is-fullscreen .hls-player {
325
+ width: 100vw;
326
+ height: 100vh;
327
+ object-fit: cover;
328
+ }
315
329
  </style>
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div class="transcript-container" ref="subtitlesContainer">
2
+ <div class="transcript-container" ref="subtitlesContainer" v-if="showTranscriptBlock">
3
3
  <div class="transcript-toggle">
4
4
  <button data-headlessui-state="open" @click="toggleTranscript()">
5
5
  <div class="icon">
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.8",
4
+ "version": "1.0.9",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist"