cloudinary-video-player 1.5.6 → 1.5.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cloudinary-video-player",
3
- "version": "1.5.6",
3
+ "version": "1.5.7",
4
4
  "description": "Cloudinary Video Player",
5
5
  "bundlewatch": {
6
6
  "files": [
@@ -86,6 +86,9 @@ class ExtendedEvents extends EventEmitter {
86
86
 
87
87
  if (Math.abs(_seekStart - _seekEnd) > 1) {
88
88
  _seeking = true;
89
+
90
+ // should empty _timesTracked array on seek, needed for 'timeplayed' event
91
+ resetPerVideoState();
89
92
  _emit('seek', { seekStart: _seekStart, seekEnd: _seekEnd });
90
93
  }
91
94
  }
@@ -94,7 +94,10 @@ class VideoPlayer extends Utils.mixin(Eventable) {
94
94
 
95
95
  this.videojs = videojs(this.videoElement, this._videojsOptions);
96
96
 
97
- this._isPlayerConfigValid = isValidConfig(this.options, playerValidators);
97
+ // to do, should be change by isValidConfig
98
+ this._isPlayerConfigValid = true;
99
+
100
+ isValidConfig(this.options, playerValidators);
98
101
 
99
102
  if (!this._isPlayerConfigValid) {
100
103
  this.videojs.error('invalid player configuration');