@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.mjs
CHANGED
|
@@ -1137,7 +1137,7 @@ var isPlayReadySupported = () => {
|
|
|
1137
1137
|
import initShakaPlayerMux from "@mux/mux-data-shakaplayer";
|
|
1138
1138
|
|
|
1139
1139
|
// package.json
|
|
1140
|
-
var version = "1.0.1-rc.
|
|
1140
|
+
var version = "1.0.1-rc.36";
|
|
1141
1141
|
|
|
1142
1142
|
// src/hooks/useShakePlayer.ts
|
|
1143
1143
|
var useShakePlayer = ({
|
|
@@ -4149,9 +4149,11 @@ var Event = ({
|
|
|
4149
4149
|
if (videosWithPlaylists.length > 0) {
|
|
4150
4150
|
let hlsPlaylistFound = false;
|
|
4151
4151
|
for (const video of videosWithPlaylists) {
|
|
4152
|
-
const
|
|
4153
|
-
|
|
4154
|
-
|
|
4152
|
+
const activePlaylist2 = findHLSPlaylist(video);
|
|
4153
|
+
const activePlaylistUrl = activePlaylist2?.url ?? activePlaylist2?.drm?.widevine?.playlistUrl ?? activePlaylist2?.drm?.playready?.playlistUrl ?? activePlaylist2?.drm?.fairplay?.playlistUrl;
|
|
4154
|
+
const activePlaylistHasUrl = !!activePlaylistUrl;
|
|
4155
|
+
if (activePlaylist2 && activePlaylistHasUrl) {
|
|
4156
|
+
setActivePlaylist(activePlaylist2);
|
|
4155
4157
|
setActiveVideoId(video.id);
|
|
4156
4158
|
hlsPlaylistFound = true;
|
|
4157
4159
|
break;
|
|
@@ -4491,9 +4493,11 @@ var CreativeWork = ({
|
|
|
4491
4493
|
if (videosWithPlaylists.length > 0) {
|
|
4492
4494
|
let hlsPlaylistFound = false;
|
|
4493
4495
|
for (const video of videosWithPlaylists) {
|
|
4494
|
-
const
|
|
4495
|
-
|
|
4496
|
-
|
|
4496
|
+
const activePlaylist2 = findHLSPlaylist(video);
|
|
4497
|
+
const activePlaylistUrl = activePlaylist2?.url ?? activePlaylist2?.drm?.widevine?.playlistUrl ?? activePlaylist2?.drm?.playready?.playlistUrl ?? activePlaylist2?.drm?.fairplay?.playlistUrl;
|
|
4498
|
+
const activePlaylistHasUrl = !!activePlaylistUrl;
|
|
4499
|
+
if (activePlaylist2 && activePlaylistHasUrl) {
|
|
4500
|
+
setActivePlaylist(activePlaylist2);
|
|
4497
4501
|
setActiveVideoId(video.id);
|
|
4498
4502
|
hlsPlaylistFound = true;
|
|
4499
4503
|
break;
|