From 5c99b124aa8129d834dc4567600c6229db69789f Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Thu, 4 Feb 2021 12:41:35 -0800 Subject: [PATCH] Continue to add doc links, update copy, and tweak alert messages --- web/pages/components/config/constants.tsx | 6 ++--- .../components/config/edit-server-details.tsx | 12 ++++++++++ web/pages/components/config/video-latency.tsx | 12 ++++++---- .../config/video-variants-table.tsx | 10 ++++---- web/pages/config-page-content.tsx | 6 ++--- web/pages/config-public-details.tsx | 6 +++-- web/pages/config-server-details.tsx | 6 +++-- web/pages/config-video.tsx | 6 ++--- web/pages/help.tsx | 23 ++++++------------- 9 files changed, 49 insertions(+), 38 deletions(-) diff --git a/web/pages/components/config/constants.tsx b/web/pages/components/config/constants.tsx index 143d9e821..8354e5ad5 100644 --- a/web/pages/components/config/constants.tsx +++ b/web/pages/components/config/constants.tsx @@ -106,8 +106,8 @@ export const TEXTFIELD_PROPS_WEB_PORT = { configPath: '', maxLength: 6, placeholder: '8080', - label: 'Owncast Server port', - tip: 'What port are you serving Owncast from? Default is :8080', + label: 'Owncast port', + tip: 'What port is your Owncast web server listening? Default is 8080', required: true, }; export const TEXTFIELD_PROPS_RTMP_PORT = { @@ -116,7 +116,7 @@ export const TEXTFIELD_PROPS_RTMP_PORT = { maxLength: 6, placeholder: '1935', label: 'RTMP port', - tip: 'What port are you receiving RTMP?', + tip: 'What port should accept inbound broadcasts? Default is 1935', required: true, }; export const TEXTFIELD_PROPS_INSTANCE_URL = { diff --git a/web/pages/components/config/edit-server-details.tsx b/web/pages/components/config/edit-server-details.tsx index f09f0d51d..77551557f 100644 --- a/web/pages/components/config/edit-server-details.tsx +++ b/web/pages/components/config/edit-server-details.tsx @@ -54,6 +54,16 @@ export default function EditInstanceDetails() { setMessage('Updating server settings requires a restart of your Owncast server.'); }; + const showStreamKeyChangeMessage = () => { + setMessage('Changing your stream key will log you out of the admin and block you from streaming until you change the key in your broadcasting software.'); + }; + + const showFfmpegChangeMessage = () => { + if (serverStatusData.online) { + setMessage('The updated ffmpeg path will be used when starting your next live stream.'); + } + }; + function generateStreamKey() { let key = ''; for (let i = 0; i < 3; i += 1) { @@ -81,6 +91,7 @@ export default function EditInstanceDetails() { initialValue={streamKey} type={TEXTFIELD_TYPE_PASSWORD} onChange={handleFieldChange} + onSubmit={showStreamKeyChangeMessage} />
@@ -102,6 +113,7 @@ export default function EditInstanceDetails() { value={formDataValues.ffmpegPath} initialValue={ffmpegPath} onChange={handleFieldChange} + onSubmit={showFfmpegChangeMessage} /> { setSubmitStatus(createInputStatus(STATUS_ERROR, message)); @@ -104,11 +109,8 @@ export default function VideoLatency() {
Latency Buffer

- There are trade-offs when cosidering video latency and reliability. Blah blah .. better - wording here needed. + While it's natural to want to keep your latency as low as possible, you may experience reduced error tolerance and stability in some environments the lower you go.

-
-
} diff --git a/web/pages/components/config/video-variants-table.tsx b/web/pages/components/config/video-variants-table.tsx index e6bb72a39..39b337afa 100644 --- a/web/pages/components/config/video-variants-table.tsx +++ b/web/pages/components/config/video-variants-table.tsx @@ -83,9 +83,11 @@ export default function CurrentVariantsTable() { setSubmitStatusMessage('Variants updated.'); resetTimer = setTimeout(resetStates, RESET_TIMEOUT); - setMessage( - 'Updating your video configuration will take effect the next time you begin a new stream.', - ); + if (serverStatusData.online) { + setMessage( + 'Updating your video configuration will take effect the next time you begin a new stream.', + ); + } }, onError: (message: string) => { setSubmitStatus('error'); @@ -187,7 +189,7 @@ export default function CurrentVariantsTable() { return ( <> - Current Variants + Stream output {statusMessage} diff --git a/web/pages/config-page-content.tsx b/web/pages/config-page-content.tsx index e2beca697..4bd1b4fd8 100644 --- a/web/pages/config-page-content.tsx +++ b/web/pages/config-page-content.tsx @@ -84,11 +84,10 @@ export default function PageContentEditor() { return (
- Edit custom content + Page Content

- Add some content about your site with the Markdown editor below. This content shows up at - the bottom half of your Owncast page. + Edit the content of your page by using simple Markdown syntax.

+
{hasChanged ? ( @@ -175,7 +166,7 @@ export default function Help(props: Props) {