@clappr/player 0.11.8 → 0.11.9

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
@@ -3811,6 +3811,15 @@
3811
3811
  * @event CORE_ACTIVE_CONTAINER_CHANGED
3812
3812
  */
3813
3813
  Events$1.CORE_ACTIVE_CONTAINER_CHANGED = 'core:active:container:changed';
3814
+
3815
+ /**
3816
+ * Fired before options are changed in core
3817
+ *
3818
+ * @event CORE_OPTIONS_WILL_CHANGE
3819
+ * @param {Object} current options before change
3820
+ */
3821
+ Events$1.CORE_OPTIONS_WILL_CHANGE = 'core:options:will:change';
3822
+
3814
3823
  /**
3815
3824
  * Fired when the options were changed for the core
3816
3825
  *
@@ -4063,6 +4072,14 @@
4063
4072
  Events$1.CONTAINER_MEDIACONTROL_DISABLE = 'container:mediacontrol:disable';
4064
4073
  Events$1.CONTAINER_MEDIACONTROL_ENABLE = 'container:mediacontrol:enable';
4065
4074
  Events$1.CONTAINER_STATS_ADD = 'container:stats:add';
4075
+ /**
4076
+ * Fired before options are changed in container
4077
+ *
4078
+ * @event CONTAINER_OPTIONS_WILL_CHANGE
4079
+ * @param {Object} current options before change
4080
+ */
4081
+ Events$1.CONTAINER_OPTIONS_WILL_CHANGE = 'container:options:will:change';
4082
+
4066
4083
  /**
4067
4084
  * Fired when the options were changed for the container
4068
4085
  *
@@ -5375,10 +5392,12 @@
5375
5392
  * enables to configure the container after its creation
5376
5393
  * @method configure
5377
5394
  * @param {Object} options all the options to change in form of a javascript object
5395
+ * @param {Object} oldOptions previous options
5378
5396
  */
5379
5397
  }, {
5380
5398
  key: "configure",
5381
- value: function configure(options) {
5399
+ value: function configure(options, oldOptions) {
5400
+ this.trigger(Events$1.CONTAINER_OPTIONS_WILL_CHANGE, oldOptions);
5382
5401
  this._options = $.extend(true, this._options, options);
5383
5402
  this.updateStyle();
5384
5403
  this.playback.configure(this.options);
@@ -6399,13 +6418,15 @@
6399
6418
  key: "configure",
6400
6419
  value: function configure(options) {
6401
6420
  var _this7 = this;
6421
+ var oldOptions = $.extend(true, {}, this._options);
6422
+ this.trigger(Events$1.CORE_OPTIONS_WILL_CHANGE, oldOptions);
6402
6423
  this._options = $.extend(true, this._options, options);
6403
6424
  this.configureDomRecycler();
6404
6425
  var sources = options.source || options.sources;
6405
6426
  sources && this.load(sources, options.mimeType || this.options.mimeType);
6406
- this.trigger(Events$1.CORE_OPTIONS_CHANGE, options); // Trigger with newly provided options
6427
+ this.trigger(Events$1.CORE_OPTIONS_CHANGE, options);
6407
6428
  this.containers.forEach(function (container) {
6408
- return container.configure(_this7.options);
6429
+ return container.configure(_this7.options, oldOptions);
6409
6430
  });
6410
6431
  }
6411
6432
  }, {
@@ -6588,7 +6609,7 @@
6588
6609
  plugins: {},
6589
6610
  playbacks: []
6590
6611
  };
6591
- var currentVersion = "0.11.5";
6612
+ var currentVersion = "0.12.0";
6592
6613
  return /*#__PURE__*/function () {
6593
6614
  /**
6594
6615
  * builds the loader
@@ -7723,7 +7744,7 @@
7723
7744
  key: "supportedVersion",
7724
7745
  get: function get() {
7725
7746
  return {
7726
- min: "0.11.5"
7747
+ min: "0.12.0"
7727
7748
  };
7728
7749
  }
7729
7750
  }, {
@@ -8485,7 +8506,7 @@
8485
8506
  key: "supportedVersion",
8486
8507
  get: function get() {
8487
8508
  return {
8488
- min: "0.11.5"
8509
+ min: "0.12.0"
8489
8510
  };
8490
8511
  }
8491
8512
  }, {
@@ -8540,7 +8561,7 @@
8540
8561
  key: "supportedVersion",
8541
8562
  get: function get() {
8542
8563
  return {
8543
- min: "0.11.5"
8564
+ min: "0.12.0"
8544
8565
  };
8545
8566
  }
8546
8567
  }, {
@@ -8620,7 +8641,7 @@
8620
8641
  key: "supportedVersion",
8621
8642
  get: function get() {
8622
8643
  return {
8623
- min: "0.11.5"
8644
+ min: "0.12.0"
8624
8645
  };
8625
8646
  }
8626
8647
  }, {
@@ -8746,7 +8767,7 @@
8746
8767
  key: "supportedVersion",
8747
8768
  get: function get() {
8748
8769
  return {
8749
- min: "0.11.5"
8770
+ min: "0.12.0"
8750
8771
  };
8751
8772
  }
8752
8773
  }, {
@@ -8887,7 +8908,7 @@
8887
8908
  key: "supportedVersion",
8888
8909
  get: function get() {
8889
8910
  return {
8890
- min: "0.11.5"
8911
+ min: "0.12.0"
8891
8912
  };
8892
8913
  }
8893
8914
  }, {
@@ -8916,7 +8937,7 @@
8916
8937
  @type {string}
8917
8938
  @default
8918
8939
  */
8919
- var version$2 = "0.11.5";
8940
+ var version$2 = "0.12.0";
8920
8941
 
8921
8942
  // Built-in Plugins/Playbacks
8922
8943
 
@@ -9065,7 +9086,7 @@
9065
9086
  key: "supportedVersion",
9066
9087
  get: function get() {
9067
9088
  return {
9068
- min: "0.11.5"
9089
+ min: "0.12.0"
9069
9090
  };
9070
9091
  }
9071
9092
  }, {
@@ -9124,7 +9145,7 @@
9124
9145
  key: "supportedVersion",
9125
9146
  get: function get() {
9126
9147
  return {
9127
- min: "0.11.5"
9148
+ min: "0.12.0"
9128
9149
  };
9129
9150
  }
9130
9151
  }, {
@@ -9283,7 +9304,7 @@
9283
9304
  key: "supportedVersion",
9284
9305
  get: function get() {
9285
9306
  return {
9286
- min: "0.11.5"
9307
+ min: "0.12.0"
9287
9308
  };
9288
9309
  }
9289
9310
  }, {
@@ -9410,7 +9431,7 @@
9410
9431
  key: "supportedVersion",
9411
9432
  get: function get() {
9412
9433
  return {
9413
- min: "0.11.5"
9434
+ min: "0.12.0"
9414
9435
  };
9415
9436
  }
9416
9437
  }, {
@@ -9458,7 +9479,7 @@
9458
9479
  key: "supportedVersion",
9459
9480
  get: function get() {
9460
9481
  return {
9461
- min: "0.11.5"
9482
+ min: "0.12.0"
9462
9483
  };
9463
9484
  }
9464
9485
  }, {
@@ -9578,7 +9599,7 @@
9578
9599
  key: "supportedVersion",
9579
9600
  get: function get() {
9580
9601
  return {
9581
- min: "0.11.5"
9602
+ min: "0.12.0"
9582
9603
  };
9583
9604
  }
9584
9605
  }, {
@@ -9697,7 +9718,7 @@
9697
9718
  key: "supportedVersion",
9698
9719
  get: function get() {
9699
9720
  return {
9700
- min: "0.11.5"
9721
+ min: "0.12.0"
9701
9722
  };
9702
9723
  }
9703
9724
  }, {
@@ -10188,7 +10209,7 @@
10188
10209
  key: "supportedVersion",
10189
10210
  get: function get() {
10190
10211
  return {
10191
- min: "0.11.5"
10212
+ min: "0.12.0"
10192
10213
  };
10193
10214
  }
10194
10215
  }, {
@@ -10988,7 +11009,7 @@
10988
11009
  key: "supportedVersion",
10989
11010
  get: function get() {
10990
11011
  return {
10991
- min: "0.11.5"
11012
+ min: "0.12.0"
10992
11013
  };
10993
11014
  }
10994
11015
  }, {
@@ -11191,7 +11212,7 @@
11191
11212
  key: "supportedVersion",
11192
11213
  get: function get() {
11193
11214
  return {
11194
- min: "0.11.5"
11215
+ min: "0.12.0"
11195
11216
  };
11196
11217
  }
11197
11218
  }, {
@@ -11393,7 +11414,7 @@
11393
11414
  key: "supportedVersion",
11394
11415
  get: function get() {
11395
11416
  return {
11396
- min: "0.11.5"
11417
+ min: "0.12.0"
11397
11418
  };
11398
11419
  }
11399
11420
  }, {
@@ -11471,7 +11492,7 @@
11471
11492
  key: "supportedVersion",
11472
11493
  get: function get() {
11473
11494
  return {
11474
- min: "0.11.5"
11495
+ min: "0.12.0"
11475
11496
  };
11476
11497
  }
11477
11498
  }, {
@@ -11592,7 +11613,7 @@
11592
11613
  key: "supportedVersion",
11593
11614
  get: function get() {
11594
11615
  return {
11595
- min: "0.11.5"
11616
+ min: "0.12.0"
11596
11617
  };
11597
11618
  }
11598
11619
  }, {
@@ -11664,7 +11685,7 @@
11664
11685
  WaterMark: WaterMarkPlugin
11665
11686
  };
11666
11687
 
11667
- var version$1 = "0.11.8";
11688
+ var version$1 = "0.11.9";
11668
11689
  for (var _i = 0, _Object$values = Object.values(Plugins); _i < _Object$values.length; _i++) {
11669
11690
  var plugin = _Object$values[_i];
11670
11691
  Loader.registerPlugin(plugin);
@@ -47036,7 +47057,7 @@ Schedule: ${scheduleItems.map(seg => segmentToString(seg))}`);
47036
47057
  key: "supportedVersion",
47037
47058
  get: function get() {
47038
47059
  return {
47039
- min: "0.11.5"
47060
+ min: "0.12.0"
47040
47061
  };
47041
47062
  }
47042
47063
  }, {