@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.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
|
}
|
|
@@ -1200,7 +1200,7 @@ var isChrome64PlusOnMacOrWindows = () => {
|
|
|
1200
1200
|
var import_mux_data_shakaplayer = __toESM(require("@mux/mux-data-shakaplayer"));
|
|
1201
1201
|
|
|
1202
1202
|
// package.json
|
|
1203
|
-
var version = "1.0.1-rc.
|
|
1203
|
+
var version = "1.0.1-rc.42";
|
|
1204
1204
|
|
|
1205
1205
|
// src/utils/licenseCache.ts
|
|
1206
1206
|
var PERSISTENT_LICENSE_PREFIX = "motto_lic_";
|
|
@@ -1425,12 +1425,12 @@ var useShakaPlayer = ({
|
|
|
1425
1425
|
"com.widevine.alpha": {
|
|
1426
1426
|
...drmConfig2.advanced?.["com.widevine.alpha"],
|
|
1427
1427
|
// set to `persistent-license` only on Chrome 64+ on MacOS/Windows: https://shaka-player-demo.appspot.com/docs/api/tutorial-faq.html
|
|
1428
|
-
sessionType:
|
|
1428
|
+
sessionType: supportsWidevinePersistentLicenses() ? "persistent-license" : "temporary"
|
|
1429
1429
|
},
|
|
1430
1430
|
"com.microsoft.playready": {
|
|
1431
1431
|
...drmConfig2.advanced?.["com.microsoft.playready"],
|
|
1432
|
-
sessionType: "
|
|
1433
|
-
// PlayReady always
|
|
1432
|
+
sessionType: "persistent-license"
|
|
1433
|
+
// PlayReady seems to always require persistent-license (temporary won't work, not compatible with license server response)
|
|
1434
1434
|
},
|
|
1435
1435
|
"com.apple.fps": {
|
|
1436
1436
|
...drmConfig2.advanced?.["com.apple.fps"],
|