@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.js
CHANGED
|
@@ -1174,7 +1174,7 @@ var isPlayReadySupported = () => {
|
|
|
1174
1174
|
const isWindows = /Windows/.test(userAgent);
|
|
1175
1175
|
return isXbox || (isEdge || isIE) && isWindows;
|
|
1176
1176
|
};
|
|
1177
|
-
var
|
|
1177
|
+
var supportsWidevinePersistentLicenses = () => {
|
|
1178
1178
|
if (typeof navigator === "undefined") {
|
|
1179
1179
|
return false;
|
|
1180
1180
|
}
|
|
@@ -1192,15 +1192,14 @@ var isChrome64PlusOnMacOrWindows = () => {
|
|
|
1192
1192
|
}
|
|
1193
1193
|
const isMacOS = /Mac OS X|Macintosh/.test(userAgent);
|
|
1194
1194
|
const isWindows = /Windows/.test(userAgent);
|
|
1195
|
-
|
|
1196
|
-
return isMacOS || isWindows || isAndroid;
|
|
1195
|
+
return isMacOS || isWindows;
|
|
1197
1196
|
};
|
|
1198
1197
|
|
|
1199
1198
|
// src/hooks/useShakaPlayer.ts
|
|
1200
1199
|
var import_mux_data_shakaplayer = __toESM(require("@mux/mux-data-shakaplayer"));
|
|
1201
1200
|
|
|
1202
1201
|
// package.json
|
|
1203
|
-
var version = "1.0.1-rc.
|
|
1202
|
+
var version = "1.0.1-rc.43";
|
|
1204
1203
|
|
|
1205
1204
|
// src/utils/licenseCache.ts
|
|
1206
1205
|
var PERSISTENT_LICENSE_PREFIX = "motto_lic_";
|
|
@@ -1425,12 +1424,12 @@ var useShakaPlayer = ({
|
|
|
1425
1424
|
"com.widevine.alpha": {
|
|
1426
1425
|
...drmConfig2.advanced?.["com.widevine.alpha"],
|
|
1427
1426
|
// set to `persistent-license` only on Chrome 64+ on MacOS/Windows: https://shaka-player-demo.appspot.com/docs/api/tutorial-faq.html
|
|
1428
|
-
sessionType:
|
|
1427
|
+
sessionType: supportsWidevinePersistentLicenses() ? "persistent-license" : "temporary"
|
|
1429
1428
|
},
|
|
1430
1429
|
"com.microsoft.playready": {
|
|
1431
1430
|
...drmConfig2.advanced?.["com.microsoft.playready"],
|
|
1432
|
-
sessionType: "
|
|
1433
|
-
// PlayReady always
|
|
1431
|
+
sessionType: "persistent-license"
|
|
1432
|
+
// PlayReady seems to always require persistent-license (temporary won't work, not compatible with license server response)
|
|
1434
1433
|
},
|
|
1435
1434
|
"com.apple.fps": {
|
|
1436
1435
|
...drmConfig2.advanced?.["com.apple.fps"],
|