@grfzhl/vue-hls-player 1.1.27 → 1.1.28
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 +3 -0
- package/dist/VideoPlayer/BasePlayer.vue +10 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -207,6 +207,9 @@ At the moment the following attribute are supported:
|
|
|
207
207
|
```
|
|
208
208
|
|
|
209
209
|
### Last release:
|
|
210
|
+
v1.1.28
|
|
211
|
+
- Always render the subtitle overlay container regardless of fullscreen or transcript state.
|
|
212
|
+
- Clear subtitle overlay text when no text track is actively showing.
|
|
210
213
|
v1.1.27
|
|
211
214
|
- Expose BasePlayer fullscreen control through wrapper components.
|
|
212
215
|
- Add support for forced fullscreen re-entry from parent integrations.
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
</media-fullscreen-button>
|
|
64
64
|
</media-control-bar>
|
|
65
65
|
</media-theme-sutro>
|
|
66
|
-
<div class="custom-subtitles" v-show="
|
|
66
|
+
<div class="custom-subtitles" v-show="isFullscreen">
|
|
67
67
|
<div class="subtitle-text" ref="subtitlesContainer" style="display: none;"></div>
|
|
68
68
|
</div>
|
|
69
69
|
<slot name="after-media"></slot>
|
|
@@ -826,7 +826,15 @@ function prepareVideoPlayer(link, { previewOnly = false } = {}) {
|
|
|
826
826
|
video.value.muted = props.isMuted;
|
|
827
827
|
video.value.currentTime = props.progress;
|
|
828
828
|
// Chrome-like: update menu whenever track mode changes
|
|
829
|
-
video.value.textTracks.addEventListener('change',
|
|
829
|
+
video.value.textTracks.addEventListener('change', () => {
|
|
830
|
+
updateLangMenuState();
|
|
831
|
+
// Clear the subtitle overlay when no track is actively showing.
|
|
832
|
+
const anyShowing = Array.from(video.value.textTracks || []).some(t => t.mode === 'showing');
|
|
833
|
+
if (!anyShowing && subtitlesContainer.value) {
|
|
834
|
+
subtitlesContainer.value.style.display = 'none';
|
|
835
|
+
subtitlesContainer.value.textContent = '';
|
|
836
|
+
}
|
|
837
|
+
});
|
|
830
838
|
}
|
|
831
839
|
|
|
832
840
|
|