diff --git a/web/pages/offline-notice.tsx b/web/pages/offline-notice.tsx index a1634bf79..69fb97f7e 100644 --- a/web/pages/offline-notice.tsx +++ b/web/pages/offline-notice.tsx @@ -1,12 +1,11 @@ import Link from 'next/link'; -import { Result, Card, Row, Col, Input, Form, Typography } from 'antd'; +import { Result, Card, Row, Col, Input, Collapse, Typography } from 'antd'; import { MessageTwoTone, QuestionCircleTwoTone, BookTwoTone, PlaySquareTwoTone, ProfileTwoTone, - CopyOutlined, } from '@ant-design/icons'; import OwncastLogo from '../components/logo'; import LogTable from '../components/log-table'; @@ -17,6 +16,7 @@ const { Paragraph, Text } = Typography; const { Title } = Typography; const { Meta } = Card; +const { Panel } = Collapse; function generateStreamURL(serverURL) { return `rtmp://${serverURL.replace(/(^\w+:|^)\/\//, '')}/live/`; @@ -26,8 +26,8 @@ export default function Offline({ logs = [], config }) { const serverStatusData = useContext(ServerStatusContext); const { serverConfig } = serverStatusData || {}; - const { streamKey, yp } = serverConfig; - let { instanceUrl } = yp; + const { streamKey } = serverConfig; + const instanceUrl = global.window?.location.hostname || ''; const data = [ { @@ -35,27 +35,6 @@ export default function Offline({ logs = [], config }) { title: 'Use your broadcasting software', content: (
- - - Stream-URL: - - - - {generateStreamURL(instanceUrl)} - - - - - - - Stream-Key: - - - - ********************* - - - + + + + + Streaming URL: + + + + {generateStreamURL(instanceUrl)} + + + + + + + Stream Key: + + + + ********************* + + + + +
), },