diff --git a/web/components/offline-notice.tsx b/web/components/offline-notice.tsx index 5d872fe14..90d64eeab 100644 --- a/web/components/offline-notice.tsx +++ b/web/components/offline-notice.tsx @@ -29,6 +29,11 @@ export default function Offline({ logs = [], config }: OfflineProps) { const { streamKey, rtmpServerPort } = serverConfig; const instanceUrl = global.window?.location.hostname || ''; + let rtmpURL; + if (instanceUrl && rtmpServerPort) { + rtmpURL = generateStreamURL(instanceUrl, rtmpServerPort); + } + const data = [ { icon: , @@ -47,9 +52,11 @@ export default function Offline({ logs = [], config }: OfflineProps) { Streaming URL: - - {generateStreamURL(instanceUrl, rtmpServerPort)} - + {rtmpURL && ( + + {rtmpURL} + + )} Stream Key: