Take control over your live stream video by running it yourself. Streaming + chat out of the box.
HTML activitypubbroadcastingchatdecentralizedfederationfediversegolanghacktoberfesthlslivelivestreamowncastrtmpself-hostedstreaming-videovideo
Remove username as a property. Simplify field names
Gabe Kangas7cc194bb2a99
diff --git a/web/pages/components/config/constants.tsx b/web/pages/components/config/constants.tsxindex 4553f72d8d..1701f58bc3 100644--- a/web/pages/components/config/constants.tsx+++ b/web/pages/components/config/constants.tsx@@ -54,19 +54,11 @@ export async function postConfigUpdateToAPI(args: ApiPostArgs) {}// Some default props to help build out a TextField-export const TEXTFIELD_PROPS_USERNAME = {- apiPath: API_USERNAME,- configPath: 'instanceDetails',- maxLength: TEXT_MAXLENGTH,- placeholder: 'username',- label: 'User name',- tip: 'Who are you? What name do you want viewers to know you?',-};export const TEXTFIELD_PROPS_SERVER_TITLE = {apiPath: API_SERVER_TITLE,maxLength: TEXT_MAXLENGTH,placeholder: 'Owncast site name', // like "gothland"- label: 'Server Name',+ label: 'Name',tip: 'The name of your Owncast server',};export const TEXTFIELD_PROPS_STREAM_TITLE = {@@ -79,9 +71,9 @@ export const TEXTFIELD_PROPS_STREAM_TITLE = {export const TEXTFIELD_PROPS_SERVER_SUMMARY = {apiPath: API_SERVER_SUMMARY,maxLength: 500,- placeholder: 'Summary',- label: 'Summary',- tip: 'A brief blurb about what your stream is about.',+ placeholder: '',+ label: 'About',+ tip: 'A brief blurb about you, your server, or what your stream is about.',};export const TEXTFIELD_PROPS_LOGO = {apiPath: API_LOGO,@@ -133,7 +125,7 @@ export const TEXTFIELD_PROPS_INSTANCE_URL = {maxLength: 255,placeholder: 'https://owncast.mysite.com',label: 'Instance URL',- tip: 'Please provide the url to your Owncast site if you enable this Directory setting.',+ tip: 'The full url to your Owncast server.',};// MISC FIELDSexport const FIELD_PROPS_TAGS = {diff --git a/web/pages/components/config/edit-instance-details.tsx b/web/pages/components/config/edit-instance-details.tsxindex 177c6fd4a8..d928318e58 100644--- a/web/pages/components/config/edit-instance-details.tsx+++ b/web/pages/components/config/edit-instance-details.tsx@@ -7,10 +7,8 @@ import TextFieldWithSubmit, {import { ServerStatusContext } from '../../../utils/server-status-context';import {postConfigUpdateToAPI,- TEXTFIELD_PROPS_USERNAME,TEXTFIELD_PROPS_INSTANCE_URL,TEXTFIELD_PROPS_SERVER_TITLE,- TEXTFIELD_PROPS_STREAM_TITLE,TEXTFIELD_PROPS_SERVER_SUMMARY,TEXTFIELD_PROPS_LOGO,API_YP_SWITCH,@@ -75,20 +73,6 @@ export default function EditInstanceDetails() {initialValue={instanceDetails.title}onChange={handleFieldChange}/>- <TextFieldWithSubmit- fieldName="streamTitle"- {...TEXTFIELD_PROPS_STREAM_TITLE}- value={formDataValues.streamTitle}- initialValue={instanceDetails.streamTitle}- onChange={handleFieldChange}- />- <TextFieldWithSubmit- fieldName="name"- {...TEXTFIELD_PROPS_USERNAME}- value={formDataValues.name}- initialValue={instanceDetails.name}- onChange={handleFieldChange}- /><TextFieldWithSubmitfieldName="summary"{...TEXTFIELD_PROPS_SERVER_SUMMARY}