@gcorevideo/player 2.22.5 → 2.22.8

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.
Files changed (40) hide show
  1. package/assets/media-control/media-control.ejs +1 -2
  2. package/dist/core.js +7 -2
  3. package/dist/index.css +881 -881
  4. package/dist/index.js +132 -91
  5. package/dist/plugins/index.css +418 -418
  6. package/dist/plugins/index.js +123 -86
  7. package/lib/playback/dash-playback/DashPlayback.d.ts.map +1 -1
  8. package/lib/playback/dash-playback/DashPlayback.js +6 -1
  9. package/lib/plugins/bottom-gear/BottomGear.d.ts.map +1 -1
  10. package/lib/plugins/bottom-gear/BottomGear.js +2 -2
  11. package/lib/plugins/media-control/MediaControl.d.ts +37 -6
  12. package/lib/plugins/media-control/MediaControl.d.ts.map +1 -1
  13. package/lib/plugins/media-control/MediaControl.js +54 -36
  14. package/lib/plugins/playback-rate/PlaybackRate.d.ts +5 -4
  15. package/lib/plugins/playback-rate/PlaybackRate.d.ts.map +1 -1
  16. package/lib/plugins/playback-rate/PlaybackRate.js +46 -24
  17. package/lib/plugins/subtitles/ClosedCaptions.js +1 -1
  18. package/lib/plugins/utils/fullscreen.d.ts +4 -0
  19. package/lib/plugins/utils/fullscreen.d.ts.map +1 -0
  20. package/lib/plugins/utils/fullscreen.js +30 -0
  21. package/lib/plugins/utils.d.ts +0 -1
  22. package/lib/plugins/utils.d.ts.map +1 -1
  23. package/lib/plugins/utils.js +0 -28
  24. package/lib/utils/fullscreen.d.ts +3 -0
  25. package/lib/utils/fullscreen.d.ts.map +1 -0
  26. package/lib/utils/fullscreen.js +2 -0
  27. package/package.json +1 -1
  28. package/src/playback/dash-playback/DashPlayback.ts +6 -4
  29. package/src/plugins/bottom-gear/BottomGear.ts +2 -2
  30. package/src/plugins/bottom-gear/__tests__/BottomGear.test.ts +15 -3
  31. package/src/plugins/media-control/MediaControl.ts +111 -62
  32. package/src/plugins/media-control/__tests__/MediaControl.test.ts +118 -8
  33. package/src/plugins/media-control/__tests__/__snapshots__/MediaControl.test.ts.snap +149 -5
  34. package/src/plugins/playback-rate/PlaybackRate.ts +48 -26
  35. package/src/plugins/playback-rate/__tests__/PlaybackRate.test.ts +125 -55
  36. package/src/plugins/playback-rate/__tests__/__snapshots__/PlaybackRate.test.ts.snap +1 -1
  37. package/src/plugins/subtitles/ClosedCaptions.ts +1 -1
  38. package/src/plugins/utils/fullscreen.ts +34 -0
  39. package/src/plugins/utils.ts +0 -31
  40. package/tsconfig.tsbuildinfo +1 -1
@@ -46,7 +46,6 @@
46
46
  <div class="media-control-multicamera" data-<%= name %>></div>
47
47
  <% }; %>
48
48
  <% var renderClipsText = function(name) { %>
49
-
50
49
  <div class="media-clip-container gcore-skin-text-color" data-<%= name %>>
51
50
  <div class="media-clip-point gcore-skin-text-color" data-<%= name %>>•</div>
52
51
  <div class="media-clip-text gcore-skin-text-color" data-<%= name %>></div>
@@ -57,7 +56,7 @@
57
56
  <% }; %>
58
57
  <% var renderButton = function(name) { %>
59
58
  <button type="button" class="media-control-button media-control-icon gcore-skin-button-color" data-<%= name %>
60
- aria-label="<%= name %>"></button>
59
+ aria-label="<%= name %>"></button>
61
60
  <% }; %>
62
61
 
63
62
  <% var templates = {
package/dist/core.js CHANGED
@@ -12950,6 +12950,11 @@ class DashPlayback extends BasePlayback {
12950
12950
  trace(`${T$3} dvrEnable no dash player instance`);
12951
12951
  return false;
12952
12952
  }
12953
+ trace(`${T$3} get.dvrEnabled`, {
12954
+ dvrWindowSize: this._dash?.getDVRWindowSize(),
12955
+ minDvrSize: this._minDvrSize,
12956
+ playbackType: this.getPlaybackType(),
12957
+ });
12953
12958
  return (this._dash?.getDVRWindowSize() >= this._minDvrSize &&
12954
12959
  this.getPlaybackType() === Playback.LIVE);
12955
12960
  }
@@ -13005,8 +13010,8 @@ class DashPlayback extends BasePlayback {
13005
13010
  return super.destroy();
13006
13011
  }
13007
13012
  _updatePlaybackType() {
13008
- assert.ok(this._dash, 'An instance of dashjs MediaPlayer is required to update the playback type');
13009
13013
  const prevPlaybackType = this._playbackType;
13014
+ // @ts-ignore
13010
13015
  this._playbackType = this._dash.isDynamic() ? Playback.LIVE : Playback.VOD;
13011
13016
  if (prevPlaybackType !== this._playbackType) {
13012
13017
  this._updateSettings();
@@ -43213,7 +43218,7 @@ class Player {
43213
43218
  }
43214
43219
  }
43215
43220
 
43216
- var version$1 = "2.22.5";
43221
+ var version$1 = "2.22.8";
43217
43222
 
43218
43223
  var packages = {
43219
43224
  "node_modules/@clappr/core": {