apply config form flow to edit content page

This commit is contained in:
gingervitis
2021-01-03 23:32:47 -08:00
committed by Gabe Kangas
parent 2772a8e5ec
commit e7e89556e7
9 changed files with 139 additions and 61 deletions

View File

@ -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,