@gcorevideo/player 2.25.8 → 2.25.10

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/dist/core.js CHANGED
@@ -42038,9 +42038,9 @@ class HlsPlayback extends BasePlayback {
42038
42038
  this._hls.on(Hls.Events.FRAG_LOADED, (evt, data) => this._onFragmentLoaded(evt, data));
42039
42039
  this._hls.on(Hls.Events.FRAG_PARSING_METADATA, (evt, data) => this._onFragmentParsingMetadata(evt, data));
42040
42040
  this._hls.on(Hls.Events.ERROR, (evt, data) => this._onHLSJSError(evt, data));
42041
- // this._hls.on(HLSJS.Events.SUBTITLE_TRACK_LOADED, (evt, data) => this._onSubtitleLoaded(evt, data));
42042
- this._hls.on(Hls.Events.SUBTITLE_TRACK_LOADED, () => this._onSubtitleLoaded());
42043
- this._hls.on(Hls.Events.SUBTITLE_TRACKS_UPDATED, () => (this._ccTracksUpdated = true));
42041
+ // this._hls.on(HLSJS.Events.SUBTITLE_TRACK_LOADED, () =>
42042
+ // this._onSubtitleLoaded(),
42043
+ // )
42044
42044
  this._hls.on(Events.AUDIO_TRACKS_UPDATED, (evt, data) => this._onAudioTracksUpdated(evt, data));
42045
42045
  this._hls.on(Events.AUDIO_TRACK_SWITCHED, (evt, data) => this._onAudioTrackSwitched(evt, data));
42046
42046
  this.bindCustomListeners();
@@ -42370,11 +42370,13 @@ class HlsPlayback extends BasePlayback {
42370
42370
  this._playbackType = (data.details.live ? Playback.LIVE : Playback.VOD);
42371
42371
  this._onLevelUpdated(evt, data);
42372
42372
  // Live stream subtitle tracks detection hack (may not immediately available)
42373
- if (this._ccTracksUpdated &&
42374
- this._playbackType === Playback.LIVE &&
42375
- this.hasClosedCaptionsTracks) {
42376
- this._onSubtitleLoaded();
42377
- }
42373
+ // if (
42374
+ // this._ccTracksUpdated &&
42375
+ // this._playbackType === Playback.LIVE &&
42376
+ // this.hasClosedCaptionsTracks
42377
+ // ) {
42378
+ // this._onSubtitleLoaded()
42379
+ // }
42378
42380
  if (prevPlaybackType !== this._playbackType) {
42379
42381
  this._updateSettings();
42380
42382
  }
@@ -42527,16 +42529,18 @@ class HlsPlayback extends BasePlayback {
42527
42529
  _onFragmentLoaded(evt, data) {
42528
42530
  this.trigger(Events$1.PLAYBACK_FRAGMENT_LOADED, data);
42529
42531
  }
42530
- _onSubtitleLoaded() {
42531
- // This event may be triggered multiple times
42532
- // Setup CC only once (disable CC by default)
42533
- if (!this._ccIsSetup) {
42534
- this.trigger(Events$1.PLAYBACK_SUBTITLE_AVAILABLE);
42535
- const trackId = this._playbackType === Playback.LIVE ? -1 : this.closedCaptionsTrackId;
42536
- this.closedCaptionsTrackId = trackId;
42537
- this._ccIsSetup = true;
42538
- }
42539
- }
42532
+ // _onSubtitleLoaded() {
42533
+ // trace(`${T} _onSubtitleLoaded`)
42534
+ // // This event may be triggered multiple times
42535
+ // // Setup CC only once (disable CC by default)
42536
+ // if (!this._ccIsSetup) {
42537
+ // this.trigger(Events.PLAYBACK_SUBTITLE_AVAILABLE)
42538
+ // const trackId =
42539
+ // this._playbackType === Playback.LIVE ? -1 : this.closedCaptionsTrackId
42540
+ // this.closedCaptionsTrackId = trackId
42541
+ // this._ccIsSetup = true
42542
+ // }
42543
+ // }
42540
42544
  _onLevelSwitch(evt, data) {
42541
42545
  if (!this.levels.length) {
42542
42546
  this._fillLevels();
@@ -43228,7 +43232,7 @@ class Player {
43228
43232
  }
43229
43233
  }
43230
43234
 
43231
- var version$1 = "2.25.8";
43235
+ var version$1 = "2.25.10";
43232
43236
 
43233
43237
  var packages = {
43234
43238
  "node_modules/@clappr/core": {