Mod combines source and encoding

This commit is contained in:
Jan Stabenow 2022-07-11 22:40:20 +02:00
parent 23a274455d
commit db7243489f
No known key found for this signature in database
GPG Key ID: 9C22DD65A9AAF133
2 changed files with 36 additions and 22 deletions

View File

@ -372,9 +372,8 @@ export default function Add(props) {
<TabsVerticalGrid>
<Tabs orientation="vertical" variant="scrollable" value={$tab} onChange={handleChangeTab} className="tabs">
<Tab className="tab" label={<Trans>General</Trans>} value="general" />
<Tab className="tab" label={<Trans>Source & Encoding</Trans>} value="encoding" />
<Tab className="tab" label={<Trans>Process control</Trans>} value="process" />
<Tab className="tab" label={<Trans>Source</Trans>} value="source" />
<Tab className="tab" label={<Trans>Encoding</Trans>} value="encoding" />
</Tabs>
<TabPanel value={$tab} index="general" className="panel">
<TabContent service={service}>
@ -413,13 +412,23 @@ export default function Add(props) {
</Grid>
</TabContent>
</TabPanel>
<TabPanel value={$tab} index="source" className="panel">
<TabPanel value={$tab} index="encoding" className="panel">
<TabContent service={service}>
<Grid item xs={12}>
<Typography variant="h2">
<Trans>Source & Encoding</Trans>
</Typography>
</Grid>
<Grid item xs={12}>
<Typography variant="h3">
<Trans>Source</Trans>
</Typography>
</Grid>
<Grid item xs={12}>
<Typography variant="subheading">
<Trans>Select RTMP or SRT (if enabled) for less latency.</Trans>
</Typography>
</Grid>
<Grid item xs={12}>
<SourceControl
settings={$settings.control.source}
@ -427,12 +436,8 @@ export default function Add(props) {
onChange={handleControlChange('source')}
/>
</Grid>
</TabContent>
</TabPanel>
<TabPanel value={$tab} index="encoding" className="panel">
<TabContent service={service}>
<Grid item xs={12}>
<Typography variant="h2">
<Typography variant="h3">
<Trans>Encoding</Trans>
</Typography>
</Grid>

View File

@ -391,9 +391,8 @@ export default function Edit(props) {
<TabsVerticalGrid>
<Tabs orientation="vertical" variant="scrollable" value={$tab} onChange={handleChangeTab} className="tabs">
<Tab className="tab" label={<Trans>General</Trans>} value="general" />
<Tab className="tab" label={<Trans>Source & Encoding</Trans>} value="encoding" />
<Tab className="tab" label={<Trans>Process control</Trans>} value="process" />
<Tab className="tab" label={<Trans>Source</Trans>} value="source" />
<Tab className="tab" label={<Trans>Encoding</Trans>} value="encoding" />
</Tabs>
<TabPanel value={$tab} index="general" className="panel">
<TabContent service={$service}>
@ -454,22 +453,32 @@ export default function Edit(props) {
</Grid>
</TabContent>
</TabPanel>
<TabPanel value={$tab} index="source" className="panel">
<TabContent service={$service}>
<Grid item xs={12}>
<Typography variant="h2">
<Trans>Source</Trans>
</Typography>
</Grid>
<Grid item xs={12}>
<SourceControl settings={$settings.control.source} sources={$localSources} onChange={handleControlChange('source')} />
</Grid>
</TabContent>
</TabPanel>
<TabPanel value={$tab} index="encoding" className="panel">
<TabContent service={$service}>
<Grid item xs={12}>
<Typography variant="h2">
<Trans>Source & Encoding</Trans>
</Typography>
</Grid>
<Grid item xs={12}>
<Typography variant="h3">
<Trans>Source</Trans>
</Typography>
</Grid>
<Grid item xs={12}>
<Typography variant="subheading">
<Trans>Select RTMP or SRT (if enabled) for less latency.</Trans>
</Typography>
</Grid>
<Grid item xs={12}>
<SourceControl
settings={$settings.control.source}
sources={$localSources}
onChange={handleControlChange('source')}
/>
</Grid>
<Grid item xs={12}>
<Typography variant="h3">
<Trans>Encoding</Trans>
</Typography>
</Grid>