@clappr/player 0.12.1 → 0.12.3

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
@@ -3728,9 +3728,17 @@
3728
3728
  * @param {boolean} state true if dvr enabled
3729
3729
  */
3730
3730
  Events$1.PLAYBACK_DVR = 'playback:dvr';
3731
- // TODO doc
3731
+ /**
3732
+ * Fired when the playback requests the media control to be disabled.
3733
+ *
3734
+ * @event PLAYBACK_MEDIACONTROL_DISABLE
3735
+ */
3732
3736
  Events$1.PLAYBACK_MEDIACONTROL_DISABLE = 'playback:mediacontrol:disable';
3733
- // TODO doc
3737
+ /**
3738
+ * Fired when the playback requests the media control to be enabled.
3739
+ *
3740
+ * @event PLAYBACK_MEDIACONTROL_ENABLE
3741
+ */
3734
3742
  Events$1.PLAYBACK_MEDIACONTROL_ENABLE = 'playback:mediacontrol:enable';
3735
3743
  /**
3736
3744
  * Fired when the media for a playback ends.
@@ -3787,9 +3795,21 @@
3787
3795
  * @param {String} name Playback name
3788
3796
  */
3789
3797
  Events$1.PLAYBACK_ERROR = 'playback:error';
3790
- // TODO doc
3798
+ /**
3799
+ * Fired when the playback has stats data to report.
3800
+ *
3801
+ * @event PLAYBACK_STATS_ADD
3802
+ * @param {Object} stats Data
3803
+ * stats object, its shape depends on the playback implementation
3804
+ */
3791
3805
  Events$1.PLAYBACK_STATS_ADD = 'playback:stats:add';
3792
- // TODO doc
3806
+ /**
3807
+ * Fired when a media fragment/segment has finished loading.
3808
+ *
3809
+ * @event PLAYBACK_FRAGMENT_LOADED
3810
+ * @param {Object} data Data
3811
+ * fragment metadata, its shape depends on the playback implementation
3812
+ */
3793
3813
  Events$1.PLAYBACK_FRAGMENT_LOADED = 'playback:fragment:loaded';
3794
3814
  /**
3795
3815
  * Fired when a fragment has been appended into buffer
@@ -3799,7 +3819,13 @@
3799
3819
  *
3800
3820
  */
3801
3821
  Events$1.PLAYBACK_FRAGMENT_BUFFERED = 'playback:fragment:buffered';
3802
- // TODO doc
3822
+ /**
3823
+ * Fired when the playback switches to a different quality level.
3824
+ *
3825
+ * @event PLAYBACK_LEVEL_SWITCH
3826
+ * @param {Object} data Data
3827
+ * level switch metadata, its shape depends on the playback implementation
3828
+ */
3803
3829
  Events$1.PLAYBACK_LEVEL_SWITCH = 'playback:level:switch';
3804
3830
  /**
3805
3831
  * Fired when subtitle is available on playback for display
@@ -4741,8 +4767,10 @@
4741
4767
  var css_248z$5$1 = ".container[data-container] {\n position: absolute;\n background-color: black;\n height: 100%;\n width: 100%;\n max-width: 100%;\n}\n.container[data-container] .chromeless {\n cursor: default;\n}\n\n[data-player]:not(.nocursor) .container[data-container]:not(.chromeless).pointer-enabled {\n cursor: pointer;\n}";
4742
4768
 
4743
4769
  /**
4744
- * An abstraction to represent a container for a given playback
4745
- * TODO: describe its responsabilities
4770
+ * An abstraction to represent a container for a given playback.
4771
+ * It wraps a playback instance, forwards its events, and exposes
4772
+ * playback controls (play, pause, seek, volume, fullscreen, etc.)
4773
+ * to the rest of the player.
4746
4774
  * @class Container
4747
4775
  * @constructor
4748
4776
  * @extends UIObject
@@ -6702,7 +6730,7 @@
6702
6730
  plugins: {},
6703
6731
  playbacks: []
6704
6732
  };
6705
- var currentVersion = "0.14.1";
6733
+ var currentVersion = "0.14.3";
6706
6734
  return /*#__PURE__*/function () {
6707
6735
  /**
6708
6736
  * builds the loader
@@ -7880,7 +7908,7 @@
7880
7908
  key: "supportedVersion",
7881
7909
  get: function get() {
7882
7910
  return {
7883
- min: "0.14.1"
7911
+ min: "0.14.3"
7884
7912
  };
7885
7913
  }
7886
7914
  }, {
@@ -8684,7 +8712,7 @@
8684
8712
  key: "supportedVersion",
8685
8713
  get: function get() {
8686
8714
  return {
8687
- min: "0.14.1"
8715
+ min: "0.14.3"
8688
8716
  };
8689
8717
  }
8690
8718
  }, {
@@ -8739,7 +8767,7 @@
8739
8767
  key: "supportedVersion",
8740
8768
  get: function get() {
8741
8769
  return {
8742
- min: "0.14.1"
8770
+ min: "0.14.3"
8743
8771
  };
8744
8772
  }
8745
8773
  }, {
@@ -8819,7 +8847,7 @@
8819
8847
  key: "supportedVersion",
8820
8848
  get: function get() {
8821
8849
  return {
8822
- min: "0.14.1"
8850
+ min: "0.14.3"
8823
8851
  };
8824
8852
  }
8825
8853
  }, {
@@ -8951,7 +8979,7 @@
8951
8979
  key: "supportedVersion",
8952
8980
  get: function get() {
8953
8981
  return {
8954
- min: "0.14.1"
8982
+ min: "0.14.3"
8955
8983
  };
8956
8984
  }
8957
8985
  }, {
@@ -9092,7 +9120,7 @@
9092
9120
  key: "supportedVersion",
9093
9121
  get: function get() {
9094
9122
  return {
9095
- min: "0.14.1"
9123
+ min: "0.14.3"
9096
9124
  };
9097
9125
  }
9098
9126
  }, {
@@ -9121,7 +9149,7 @@
9121
9149
  @type {string}
9122
9150
  @default
9123
9151
  */
9124
- var version$2 = "0.14.1";
9152
+ var version$2 = "0.14.3";
9125
9153
 
9126
9154
  // Built-in Plugins/Playbacks
9127
9155
 
@@ -9270,7 +9298,7 @@
9270
9298
  key: "supportedVersion",
9271
9299
  get: function get() {
9272
9300
  return {
9273
- min: "0.14.1"
9301
+ min: "0.14.3"
9274
9302
  };
9275
9303
  }
9276
9304
  }, {
@@ -9333,7 +9361,7 @@
9333
9361
  key: "supportedVersion",
9334
9362
  get: function get() {
9335
9363
  return {
9336
- min: "0.14.1"
9364
+ min: "0.14.3"
9337
9365
  };
9338
9366
  }
9339
9367
  }, {
@@ -9498,7 +9526,7 @@
9498
9526
  key: "supportedVersion",
9499
9527
  get: function get() {
9500
9528
  return {
9501
- min: "0.14.1"
9529
+ min: "0.14.3"
9502
9530
  };
9503
9531
  }
9504
9532
  }, {
@@ -9629,7 +9657,7 @@
9629
9657
  key: "supportedVersion",
9630
9658
  get: function get() {
9631
9659
  return {
9632
- min: "0.14.1"
9660
+ min: "0.14.3"
9633
9661
  };
9634
9662
  }
9635
9663
  }, {
@@ -9679,7 +9707,7 @@
9679
9707
  key: "supportedVersion",
9680
9708
  get: function get() {
9681
9709
  return {
9682
- min: "0.14.1"
9710
+ min: "0.14.3"
9683
9711
  };
9684
9712
  }
9685
9713
  }, {
@@ -9799,7 +9827,7 @@
9799
9827
  key: "supportedVersion",
9800
9828
  get: function get() {
9801
9829
  return {
9802
- min: "0.14.1"
9830
+ min: "0.14.3"
9803
9831
  };
9804
9832
  }
9805
9833
  }, {
@@ -9922,7 +9950,7 @@
9922
9950
  key: "supportedVersion",
9923
9951
  get: function get() {
9924
9952
  return {
9925
- min: "0.14.1"
9953
+ min: "0.14.3"
9926
9954
  };
9927
9955
  }
9928
9956
  }, {
@@ -10423,7 +10451,7 @@
10423
10451
  key: "supportedVersion",
10424
10452
  get: function get() {
10425
10453
  return {
10426
- min: "0.14.1"
10454
+ min: "0.14.3"
10427
10455
  };
10428
10456
  }
10429
10457
  }, {
@@ -11253,7 +11281,7 @@
11253
11281
  key: "supportedVersion",
11254
11282
  get: function get() {
11255
11283
  return {
11256
- min: "0.14.1"
11284
+ min: "0.14.3"
11257
11285
  };
11258
11286
  }
11259
11287
  }, {
@@ -11472,7 +11500,7 @@
11472
11500
  key: "supportedVersion",
11473
11501
  get: function get() {
11474
11502
  return {
11475
- min: "0.14.1"
11503
+ min: "0.14.3"
11476
11504
  };
11477
11505
  }
11478
11506
  }, {
@@ -11676,7 +11704,7 @@
11676
11704
  key: "supportedVersion",
11677
11705
  get: function get() {
11678
11706
  return {
11679
- min: "0.14.1"
11707
+ min: "0.14.3"
11680
11708
  };
11681
11709
  }
11682
11710
  }, {
@@ -11758,7 +11786,7 @@
11758
11786
  key: "supportedVersion",
11759
11787
  get: function get() {
11760
11788
  return {
11761
- min: "0.14.1"
11789
+ min: "0.14.3"
11762
11790
  };
11763
11791
  }
11764
11792
  }, {
@@ -11885,7 +11913,7 @@
11885
11913
  key: "supportedVersion",
11886
11914
  get: function get() {
11887
11915
  return {
11888
- min: "0.14.1"
11916
+ min: "0.14.3"
11889
11917
  };
11890
11918
  }
11891
11919
  }, {
@@ -11959,7 +11987,7 @@
11959
11987
  WaterMark: WaterMarkPlugin
11960
11988
  };
11961
11989
 
11962
- var version$1 = "0.12.1";
11990
+ var version$1 = "0.12.3";
11963
11991
  for (var _i = 0, _Object$values = Object.values(Plugins); _i < _Object$values.length; _i++) {
11964
11992
  var plugin = _Object$values[_i];
11965
11993
  Loader.registerPlugin(plugin);
@@ -48717,7 +48745,7 @@ Schedule: ${scheduleItems.map(seg => segmentToString(seg))} pos: ${this.timeline
48717
48745
  key: "supportedVersion",
48718
48746
  get: function get() {
48719
48747
  return {
48720
- min: "0.14.1"
48748
+ min: "0.14.3"
48721
48749
  };
48722
48750
  }
48723
48751
  }, {