@mottosports/motto-video-player 1.0.1-rc.41 → 1.0.1-rc.43
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 +6 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -7
- 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
|
}
|
|
@@ -1151,15 +1151,14 @@ var isChrome64PlusOnMacOrWindows = () => {
|
|
|
1151
1151
|
}
|
|
1152
1152
|
const isMacOS = /Mac OS X|Macintosh/.test(userAgent);
|
|
1153
1153
|
const isWindows = /Windows/.test(userAgent);
|
|
1154
|
-
|
|
1155
|
-
return isMacOS || isWindows || isAndroid;
|
|
1154
|
+
return isMacOS || isWindows;
|
|
1156
1155
|
};
|
|
1157
1156
|
|
|
1158
1157
|
// src/hooks/useShakaPlayer.ts
|
|
1159
1158
|
import initShakaPlayerMux from "@mux/mux-data-shakaplayer";
|
|
1160
1159
|
|
|
1161
1160
|
// package.json
|
|
1162
|
-
var version = "1.0.1-rc.
|
|
1161
|
+
var version = "1.0.1-rc.43";
|
|
1163
1162
|
|
|
1164
1163
|
// src/utils/licenseCache.ts
|
|
1165
1164
|
var PERSISTENT_LICENSE_PREFIX = "motto_lic_";
|
|
@@ -1384,12 +1383,12 @@ var useShakaPlayer = ({
|
|
|
1384
1383
|
"com.widevine.alpha": {
|
|
1385
1384
|
...drmConfig2.advanced?.["com.widevine.alpha"],
|
|
1386
1385
|
// set to `persistent-license` only on Chrome 64+ on MacOS/Windows: https://shaka-player-demo.appspot.com/docs/api/tutorial-faq.html
|
|
1387
|
-
sessionType:
|
|
1386
|
+
sessionType: supportsWidevinePersistentLicenses() ? "persistent-license" : "temporary"
|
|
1388
1387
|
},
|
|
1389
1388
|
"com.microsoft.playready": {
|
|
1390
1389
|
...drmConfig2.advanced?.["com.microsoft.playready"],
|
|
1391
|
-
sessionType: "
|
|
1392
|
-
// PlayReady always
|
|
1390
|
+
sessionType: "persistent-license"
|
|
1391
|
+
// PlayReady seems to always require persistent-license (temporary won't work, not compatible with license server response)
|
|
1393
1392
|
},
|
|
1394
1393
|
"com.apple.fps": {
|
|
1395
1394
|
...drmConfig2.advanced?.["com.apple.fps"],
|