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/CHANGELOG.md +8 -22
- package/dist/cld-video-player.js +4 -4
- package/dist/cld-video-player.light.js +4 -4
- package/dist/cld-video-player.light.min.js +1 -1
- package/dist/cld-video-player.min.js +1 -1
- package/package.json +1 -1
- package/src/extended-events.js +3 -0
- package/src/video-player.js +4 -1
package/package.json
CHANGED
package/src/extended-events.js
CHANGED
|
@@ -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
|
}
|
package/src/video-player.js
CHANGED
|
@@ -94,7 +94,10 @@ class VideoPlayer extends Utils.mixin(Eventable) {
|
|
|
94
94
|
|
|
95
95
|
this.videojs = videojs(this.videoElement, this._videojsOptions);
|
|
96
96
|
|
|
97
|
-
|
|
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');
|