@mottosports/motto-video-player 1.0.1-rc.41 → 1.0.1-rc.42
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/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1133,7 +1133,7 @@ var isPlayReadySupported = () => {
|
|
|
1133
1133
|
const isWindows = /Windows/.test(userAgent);
|
|
1134
1134
|
return isXbox || (isEdge || isIE) && isWindows;
|
|
1135
1135
|
};
|
|
1136
|
-
var
|
|
1136
|
+
var supportsWidevinePersistentLicenses = () => {
|
|
1137
1137
|
if (typeof navigator === "undefined") {
|
|
1138
1138
|
return false;
|
|
1139
1139
|
}
|
|
@@ -1159,7 +1159,7 @@ var isChrome64PlusOnMacOrWindows = () => {
|
|
|
1159
1159
|
import initShakaPlayerMux from "@mux/mux-data-shakaplayer";
|
|
1160
1160
|
|
|
1161
1161
|
// package.json
|
|
1162
|
-
var version = "1.0.1-rc.
|
|
1162
|
+
var version = "1.0.1-rc.42";
|
|
1163
1163
|
|
|
1164
1164
|
// src/utils/licenseCache.ts
|
|
1165
1165
|
var PERSISTENT_LICENSE_PREFIX = "motto_lic_";
|
|
@@ -1384,12 +1384,12 @@ var useShakaPlayer = ({
|
|
|
1384
1384
|
"com.widevine.alpha": {
|
|
1385
1385
|
...drmConfig2.advanced?.["com.widevine.alpha"],
|
|
1386
1386
|
// set to `persistent-license` only on Chrome 64+ on MacOS/Windows: https://shaka-player-demo.appspot.com/docs/api/tutorial-faq.html
|
|
1387
|
-
sessionType:
|
|
1387
|
+
sessionType: supportsWidevinePersistentLicenses() ? "persistent-license" : "temporary"
|
|
1388
1388
|
},
|
|
1389
1389
|
"com.microsoft.playready": {
|
|
1390
1390
|
...drmConfig2.advanced?.["com.microsoft.playready"],
|
|
1391
|
-
sessionType: "
|
|
1392
|
-
// PlayReady always
|
|
1391
|
+
sessionType: "persistent-license"
|
|
1392
|
+
// PlayReady seems to always require persistent-license (temporary won't work, not compatible with license server response)
|
|
1393
1393
|
},
|
|
1394
1394
|
"com.apple.fps": {
|
|
1395
1395
|
...drmConfig2.advanced?.["com.apple.fps"],
|