@eluvio/elv-player-js 2.0.9 → 2.0.10

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.
@@ -1,4 +1,4 @@
1
- import { c as cI, e as CI, r as vA, a as eI, b as fA, i as dA, s as xA, g as wI } from "./index-CUHcHn6D.mjs";
1
+ import { c as cI, e as CI, r as vA, a as eI, b as fA, i as dA, s as xA, g as wI } from "./index-DH690yy1.mjs";
2
2
  class EA {
3
3
  constructor(I) {
4
4
  this.wasm = I;
@@ -774,10 +774,13 @@ export class EluvioPlayer {
774
774
 
775
775
  const client = await this.__Client();
776
776
 
777
+ const authorizationToken = this.sourceOptions &&
778
+ this.sourceOptions.playoutParameters &&
779
+ this.sourceOptions.playoutParameters.authorizationToken;
777
780
  const audit =
778
781
  this.isLive ?
779
- await client.AuditStream({versionHash: this.contentHash}) :
780
- await client.AuditContentObject({versionHash: this.contentHash});
782
+ await client.AuditStream({versionHash: this.contentHash, authorizationToken}) :
783
+ await client.AuditContentObject({versionHash: this.contentHash, authorizationToken});
781
784
 
782
785
  if(!audit.verified) {
783
786
  return;
@@ -126,7 +126,7 @@ export const ObserveVideoTime = ({video, rate=10, setCurrentTime}) => {
126
126
 
127
127
  export const ObserveResize = ({target, setSize, setOrientation, setDimensions}) => {
128
128
  let dimensionsUpdateTimeout;
129
-
129
+
130
130
  const ResizeUpdate = () => {
131
131
  clearTimeout(dimensionsUpdateTimeout);
132
132
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eluvio/elv-player-js",
3
- "version": "2.0.9",
3
+ "version": "2.0.10",
4
4
  "description": "![Eluvio Logo](lib/static/images/Logo.png \"Eluvio Logo\")",
5
5
  "main": "lib/index.js",
6
6
  "license": "MIT",
@@ -36,7 +36,7 @@
36
36
  "package-lock.json"
37
37
  ],
38
38
  "dependencies": {
39
- "@eluvio/elv-client-js": "^4.0.89",
39
+ "@eluvio/elv-client-js": "^4.0.92",
40
40
  "dashjs": "~4.7.0",
41
41
  "focus-visible": "^5.2.0",
42
42
  "hls.js": "~1.5.12",