@clappr/player 0.11.11 → 0.11.14

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/clappr.js CHANGED
@@ -11899,7 +11899,7 @@
11899
11899
  WaterMark: WaterMarkPlugin
11900
11900
  };
11901
11901
 
11902
- var version$1 = "0.11.11";
11902
+ var version$1 = "0.11.14";
11903
11903
  for (var _i = 0, _Object$values = Object.values(Plugins); _i < _Object$values.length; _i++) {
11904
11904
  var plugin = _Object$values[_i];
11905
11905
  Loader.registerPlugin(plugin);
@@ -47642,6 +47642,18 @@ Schedule: ${scheduleItems.map(seg => segmentToString(seg))}`);
47642
47642
  value: function getDuration() {
47643
47643
  return this._duration;
47644
47644
  }
47645
+
47646
+ // the frame rate should be retrieved from the HLS.js level information
47647
+ // as it is not necessarily exposed directly by the video element
47648
+ }, {
47649
+ key: "getFrameRate",
47650
+ value: function getFrameRate() {
47651
+ if (this._hls && this._hls.levels && this._hls.currentLevel >= 0) {
47652
+ var level = this._hls.levels[this._hls.currentLevel];
47653
+ return level && level.frameRate ? level.frameRate : null;
47654
+ }
47655
+ return null;
47656
+ }
47645
47657
  }, {
47646
47658
  key: "getCurrentTime",
47647
47659
  value: function getCurrentTime() {