mirror of
https://github.com/owncast/owncast.git
synced 2025-11-01 19:32:20 +08:00
apply config form flow to edit content page
This commit is contained in:
@ -25,6 +25,8 @@ export const initialServerConfigState: ConfigDetails = {
|
||||
instanceUrl: '',
|
||||
},
|
||||
videoSettings: {
|
||||
numberOfPlaylistItems: 5,
|
||||
segmentLengthSeconds: 4,
|
||||
videoQualityVariants: [
|
||||
{
|
||||
audioPassthrough: false,
|
||||
@ -32,6 +34,7 @@ export const initialServerConfigState: ConfigDetails = {
|
||||
videoBitrate: 0,
|
||||
audioBitrate: 0,
|
||||
framerate: 0,
|
||||
encoderPreset: 'veryfast',
|
||||
},
|
||||
],
|
||||
}
|
||||
@ -93,7 +96,7 @@ const ServerStatusProvider = ({ children }) => {
|
||||
};
|
||||
|
||||
setConfig(updatedConfig);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
useEffect(() => {
|
||||
@ -108,7 +111,7 @@ const ServerStatusProvider = ({ children }) => {
|
||||
return () => {
|
||||
clearInterval(getStatusIntervalId);
|
||||
}
|
||||
}, [])
|
||||
}, []);
|
||||
|
||||
const providerValue = {
|
||||
...status,
|
||||
|
||||
Reference in New Issue
Block a user