@eluvio/elv-player-js 1.0.90 → 1.0.91
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 +1 -1
- package/src/PlayerControls.js +1 -1
- package/src/index.js +7 -1
package/package.json
CHANGED
package/src/PlayerControls.js
CHANGED
|
@@ -108,7 +108,7 @@ const Time = (time, total) => {
|
|
|
108
108
|
};
|
|
109
109
|
|
|
110
110
|
class PlayerControls {
|
|
111
|
-
constructor(target, video, playerOptions, posterUrl, className) {
|
|
111
|
+
constructor({target, video, playerOptions, posterUrl, className}) {
|
|
112
112
|
this.target = target;
|
|
113
113
|
this.video = video;
|
|
114
114
|
this.playerOptions = playerOptions;
|
package/src/index.js
CHANGED
|
@@ -577,7 +577,13 @@ export class EluvioPlayer {
|
|
|
577
577
|
}
|
|
578
578
|
}
|
|
579
579
|
|
|
580
|
-
this.controls = new PlayerControls(
|
|
580
|
+
this.controls = new PlayerControls({
|
|
581
|
+
target: this.target,
|
|
582
|
+
video: this.video,
|
|
583
|
+
playerOptions: this.playerOptions,
|
|
584
|
+
className: this.playerOptions.controlsClassName
|
|
585
|
+
});
|
|
586
|
+
|
|
581
587
|
this.PosterUrl().then(posterUrl => this.controls.SetPosterUrl(posterUrl));
|
|
582
588
|
|
|
583
589
|
multiviewOptions.target = this.target;
|