@eluvio/elv-player-js 1.0.69 → 1.0.70

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-lock.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eluvio/elv-player-js",
3
- "version": "1.0.69",
3
+ "version": "1.0.70",
4
4
  "lockfileVersion": 1,
5
5
  "requires": true,
6
6
  "dependencies": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eluvio/elv-player-js",
3
- "version": "1.0.69",
3
+ "version": "1.0.70",
4
4
  "description": "![Eluvio Logo](src/static/images/Logo.png \"Eluvio Logo\")",
5
5
  "main": "src/index.js",
6
6
  "license": "MIT",
package/src/index.js CHANGED
@@ -576,7 +576,6 @@ export class EluvioPlayer {
576
576
 
577
577
  if(multiviewOptions.enabled) { controlsPromise.then(() => this.controls.InitializeMultiViewControls(multiviewOptions)); }
578
578
  } else if(protocol === "hls") {
579
-
580
579
  playoutUrl.removeQuery("authorization");
581
580
 
582
581
  // Inject
@@ -723,6 +722,11 @@ export class EluvioPlayer {
723
722
  }
724
723
 
725
724
  this.RegisterVisibilityCallback();
725
+
726
+ if(this.__destroyed) {
727
+ // If Destroy was called during the initialization process, ensure that the player is properly destroyed
728
+ this.Destroy();
729
+ }
726
730
  } catch (error) {
727
731
  this.playerOptions.errorCallback(error);
728
732