@livo-tv/sdk 1.15.0-rc.5 → 1.15.0
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/studio/index.cjs
CHANGED
|
@@ -31664,6 +31664,11 @@ function StudioThemeRoot({
|
|
|
31664
31664
|
);
|
|
31665
31665
|
}
|
|
31666
31666
|
var POLL_INTERVAL_MS = 5e3;
|
|
31667
|
+
function nonEmptyGuestUrl(value) {
|
|
31668
|
+
if (typeof value !== "string") return null;
|
|
31669
|
+
const trimmed = value.trim();
|
|
31670
|
+
return trimmed.length > 0 ? trimmed : null;
|
|
31671
|
+
}
|
|
31667
31672
|
function LivoHostStudio({
|
|
31668
31673
|
token,
|
|
31669
31674
|
apiUrl,
|
|
@@ -31674,7 +31679,8 @@ function LivoHostStudio({
|
|
|
31674
31679
|
headerStart,
|
|
31675
31680
|
playerOrigin,
|
|
31676
31681
|
theme,
|
|
31677
|
-
appDownloadUrl
|
|
31682
|
+
appDownloadUrl,
|
|
31683
|
+
guestUrl
|
|
31678
31684
|
}) {
|
|
31679
31685
|
const reducedMotion = usePrefersReducedMotion();
|
|
31680
31686
|
const [session, setSession] = React18.useState(null);
|
|
@@ -31749,16 +31755,19 @@ function LivoHostStudio({
|
|
|
31749
31755
|
}, [apiUrl, session]);
|
|
31750
31756
|
const liveSession = React18.useMemo(() => {
|
|
31751
31757
|
if (!session) return null;
|
|
31752
|
-
|
|
31758
|
+
const partnerGuestUrl = nonEmptyGuestUrl(guestUrl);
|
|
31759
|
+
const resolvedGuestUrl = partnerGuestUrl ?? session.guestUrl;
|
|
31760
|
+
if (!status && resolvedGuestUrl === session.guestUrl) return session;
|
|
31753
31761
|
return {
|
|
31754
31762
|
...session,
|
|
31755
|
-
|
|
31763
|
+
guestUrl: resolvedGuestUrl,
|
|
31764
|
+
stream: status ? {
|
|
31756
31765
|
...session.stream,
|
|
31757
31766
|
status,
|
|
31758
31767
|
captionsEnabled: captionsEnabled ?? session.stream.captionsEnabled
|
|
31759
|
-
}
|
|
31768
|
+
} : session.stream
|
|
31760
31769
|
};
|
|
31761
|
-
}, [captionsEnabled, session, status]);
|
|
31770
|
+
}, [captionsEnabled, guestUrl, session, status]);
|
|
31762
31771
|
const failureMessage = session ? meetingError : error2;
|
|
31763
31772
|
if (failureMessage) {
|
|
31764
31773
|
return /* @__PURE__ */ jsxRuntime.jsx(StudioThemeRoot, { theme, children: /* @__PURE__ */ jsxRuntime.jsx(
|