@mottosports/motto-video-player 1.0.1-rc.35 → 1.0.1-rc.36
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 +11 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1178,7 +1178,7 @@ var isPlayReadySupported = () => {
|
|
|
1178
1178
|
var import_mux_data_shakaplayer = __toESM(require("@mux/mux-data-shakaplayer"));
|
|
1179
1179
|
|
|
1180
1180
|
// package.json
|
|
1181
|
-
var version = "1.0.1-rc.
|
|
1181
|
+
var version = "1.0.1-rc.36";
|
|
1182
1182
|
|
|
1183
1183
|
// src/hooks/useShakePlayer.ts
|
|
1184
1184
|
var useShakePlayer = ({
|
|
@@ -4190,9 +4190,11 @@ var Event = ({
|
|
|
4190
4190
|
if (videosWithPlaylists.length > 0) {
|
|
4191
4191
|
let hlsPlaylistFound = false;
|
|
4192
4192
|
for (const video of videosWithPlaylists) {
|
|
4193
|
-
const
|
|
4194
|
-
|
|
4195
|
-
|
|
4193
|
+
const activePlaylist2 = findHLSPlaylist(video);
|
|
4194
|
+
const activePlaylistUrl = activePlaylist2?.url ?? activePlaylist2?.drm?.widevine?.playlistUrl ?? activePlaylist2?.drm?.playready?.playlistUrl ?? activePlaylist2?.drm?.fairplay?.playlistUrl;
|
|
4195
|
+
const activePlaylistHasUrl = !!activePlaylistUrl;
|
|
4196
|
+
if (activePlaylist2 && activePlaylistHasUrl) {
|
|
4197
|
+
setActivePlaylist(activePlaylist2);
|
|
4196
4198
|
setActiveVideoId(video.id);
|
|
4197
4199
|
hlsPlaylistFound = true;
|
|
4198
4200
|
break;
|
|
@@ -4532,9 +4534,11 @@ var CreativeWork = ({
|
|
|
4532
4534
|
if (videosWithPlaylists.length > 0) {
|
|
4533
4535
|
let hlsPlaylistFound = false;
|
|
4534
4536
|
for (const video of videosWithPlaylists) {
|
|
4535
|
-
const
|
|
4536
|
-
|
|
4537
|
-
|
|
4537
|
+
const activePlaylist2 = findHLSPlaylist(video);
|
|
4538
|
+
const activePlaylistUrl = activePlaylist2?.url ?? activePlaylist2?.drm?.widevine?.playlistUrl ?? activePlaylist2?.drm?.playready?.playlistUrl ?? activePlaylist2?.drm?.fairplay?.playlistUrl;
|
|
4539
|
+
const activePlaylistHasUrl = !!activePlaylistUrl;
|
|
4540
|
+
if (activePlaylist2 && activePlaylistHasUrl) {
|
|
4541
|
+
setActivePlaylist(activePlaylist2);
|
|
4538
4542
|
setActiveVideoId(video.id);
|
|
4539
4543
|
hlsPlaylistFound = true;
|
|
4540
4544
|
break;
|