@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eluvio/elv-player-js",
3
- "version": "1.0.90",
3
+ "version": "1.0.91",
4
4
  "description": "![Eluvio Logo](src/static/images/Logo.png \"Eluvio Logo\")",
5
5
  "main": "src/index.js",
6
6
  "license": "MIT",
@@ -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(this.target, this.video, this.playerOptions, this.playerOptions.controlsClassName);
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;