@eluvio/elv-player-js 1.0.97 → 1.0.99

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.97",
3
+ "version": "1.0.99",
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
@@ -373,6 +373,10 @@ export class EluvioPlayer {
373
373
 
374
374
  this.Log("Destroying player");
375
375
 
376
+ if(this.video) {
377
+ this.video.pause();
378
+ }
379
+
376
380
  if(this.player.destroy) {
377
381
  this.player.destroy();
378
382
  } else if(this.player.reset) {
@@ -504,6 +508,13 @@ export class EluvioPlayer {
504
508
 
505
509
  this.video.setAttribute("playsinline", "playsinline");
506
510
 
511
+ this.controls = new PlayerControls({
512
+ target: this.target,
513
+ video: this.video,
514
+ playerOptions: this.playerOptions,
515
+ className: this.playerOptions.controlsClassName
516
+ });
517
+
507
518
  if(restartParameters) {
508
519
  this.video.addEventListener("loadedmetadata", () => {
509
520
  this.video.volume = restartParameters.volume;
@@ -582,13 +593,6 @@ export class EluvioPlayer {
582
593
 
583
594
  let { protocol, drm, playoutUrl, drms, multiviewOptions } = await playoutOptionsPromise;
584
595
 
585
- this.controls = new PlayerControls({
586
- target: this.target,
587
- video: this.video,
588
- playerOptions: this.playerOptions,
589
- className: this.playerOptions.controlsClassName
590
- });
591
-
592
596
  this.PosterUrl().then(posterUrl => this.controls.SetPosterUrl(posterUrl));
593
597
 
594
598
  multiviewOptions.target = this.target;
@@ -463,18 +463,7 @@ $button-height: 35px;
463
463
 
464
464
  &:fullscreen {
465
465
  margin: 0;
466
- max-height: unset;
467
- max-width: unset;
468
- min-height: 100vh;
469
- min-width: 100vw;
470
466
  padding: 0;
471
-
472
- video {
473
- max-height: unset;
474
- max-width: unset;
475
- min-height: 100%;
476
- min-width: 100%;
477
- }
478
467
  }
479
468
 
480
469
  &__ticket-modal {