@eluvio/elv-player-js 2.0.39 → 2.0.40
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/dist/.vite/manifest.json +17 -17
- package/dist/{Analytics-BASEfJkR.mjs → Analytics-1QZjV_dS.mjs} +1 -1
- package/dist/{Analytics-DeZ-NgkZ.js → Analytics-OoBeezGW.js} +1 -1
- package/dist/dash.all.min-B1r4FShk.js +26 -0
- package/dist/dash.all.min-BL_VlSvE.mjs +18042 -0
- package/dist/elv-player-js.cjs.js +1 -1
- package/dist/elv-player-js.es.js +1 -1
- package/dist/{index-CuC8ec78.js → index-C-bPzeta.js} +1 -1
- package/dist/{index-DOPJpqb1.mjs → index-DeBr9qMJ.mjs} +1 -1
- package/dist/{index-Df15HuhE.js → index-DyNFLGVd.js} +2 -2
- package/dist/{index-Bm4dQzG_.mjs → index-t_fADAi6.mjs} +4 -3
- package/lib/player/Player.js +3 -2
- package/package.json +1 -1
- package/dist/dash.all.min-DiOTJHXz.js +0 -26
- package/dist/dash.all.min-fyp1Uv1c.mjs +0 -18361
|
@@ -49580,7 +49580,7 @@ const ii = {
|
|
|
49580
49580
|
ElvCrypto: async () => {
|
|
49581
49581
|
try {
|
|
49582
49582
|
if (!ii.elvCrypto) {
|
|
49583
|
-
const n = (await import("./index-
|
|
49583
|
+
const n = (await import("./index-DeBr9qMJ.mjs")).default;
|
|
49584
49584
|
ii.elvCrypto = await new n().init();
|
|
49585
49585
|
}
|
|
49586
49586
|
return ii.elvCrypto;
|
|
@@ -65859,7 +65859,7 @@ class s2 {
|
|
|
65859
65859
|
playoutParameters: h
|
|
65860
65860
|
}), this.__destroyed)
|
|
65861
65861
|
return;
|
|
65862
|
-
o === "hls" ? await this.__InitializeHLS({ playoutUrl: i, authorizationToken: m, drm: u, drms: c, multiviewOptions: p }) : await this.__InitializeDash({ playoutUrl: i, authorizationToken: m, drm: u, drms: c, multiviewOptions: p }), this.playerOptions.collectVideoAnalytics && import("./Analytics-
|
|
65862
|
+
o === "hls" ? await this.__InitializeHLS({ playoutUrl: i, authorizationToken: m, drm: u, drms: c, multiviewOptions: p }) : await this.__InitializeDash({ playoutUrl: i, authorizationToken: m, drm: u, drms: c, multiviewOptions: p }), this.playerOptions.collectVideoAnalytics && import("./Analytics-1QZjV_dS.mjs").then(({ InitializeMuxMonitoring: w }) => w({
|
|
65863
65863
|
appName: this.playerOptions.appName || "elv-player-js",
|
|
65864
65864
|
elvPlayer: this,
|
|
65865
65865
|
playoutUrl: i,
|
|
@@ -65965,6 +65965,7 @@ class s2 {
|
|
|
65965
65965
|
playoutUrl: e,
|
|
65966
65966
|
authorizationToken: t,
|
|
65967
65967
|
drm: r,
|
|
65968
|
+
drms: i,
|
|
65968
65969
|
multiviewOptions: o
|
|
65969
65970
|
}), g ? this.video.play() : this.video.pause(), this.isLive || (this.video.currentTime = S);
|
|
65970
65971
|
}, m.on(
|
|
@@ -65979,7 +65980,7 @@ class s2 {
|
|
|
65979
65980
|
}
|
|
65980
65981
|
}
|
|
65981
65982
|
async __InitializeDash({ playoutUrl: e, authorizationToken: t, drm: r, drms: i }) {
|
|
65982
|
-
this.Dash = (await import("./dash.all.min-
|
|
65983
|
+
this.Dash = (await import("./dash.all.min-BL_VlSvE.mjs").then((c) => c.d)).default;
|
|
65983
65984
|
const o = this.Dash.MediaPlayer().create(), u = this.playerOptions.dashjsOptions || {};
|
|
65984
65985
|
if (o.updateSettings({
|
|
65985
65986
|
...u,
|
package/lib/player/Player.js
CHANGED
|
@@ -605,7 +605,7 @@ export class EluvioPlayer {
|
|
|
605
605
|
playoutUrl.searchParams.delete("authorization");
|
|
606
606
|
|
|
607
607
|
let drmSettings = {};
|
|
608
|
-
if
|
|
608
|
+
if(drm === EluvioPlayerParameters.drms.PLAYREADY || drm === EluvioPlayerParameters.drms.WIDEVINE) {
|
|
609
609
|
drmSettings = {
|
|
610
610
|
drmSystems: {},
|
|
611
611
|
emeEnabled: true,
|
|
@@ -614,7 +614,7 @@ export class EluvioPlayer {
|
|
|
614
614
|
xhr.setRequestHeader("Authorization", `Bearer ${authorizationToken}`);
|
|
615
615
|
}
|
|
616
616
|
};
|
|
617
|
-
if
|
|
617
|
+
if(drm === EluvioPlayerParameters.drms.PLAYREADY) {
|
|
618
618
|
drmSettings.drmSystems = {
|
|
619
619
|
"com.microsoft.playready": {
|
|
620
620
|
licenseUrl: drms[drm].licenseServers[0]
|
|
@@ -739,6 +739,7 @@ export class EluvioPlayer {
|
|
|
739
739
|
playoutUrl,
|
|
740
740
|
authorizationToken,
|
|
741
741
|
drm,
|
|
742
|
+
drms,
|
|
742
743
|
multiviewOptions
|
|
743
744
|
});
|
|
744
745
|
|