Enable RTMP and SRT controls based on availability
This commit is contained in:
parent
cfde8db58b
commit
ad91c38d5a
@ -37,9 +37,15 @@ export default function Control(props) {
|
||||
};
|
||||
return (
|
||||
<Grid container spacing={2}>
|
||||
{!props.enabled && (
|
||||
<Grid item xs={12}>
|
||||
<Typography>
|
||||
<Trans>RTMP server is not enabled</Trans>
|
||||
</Typography>
|
||||
</Grid>
|
||||
)}
|
||||
<Grid item xs={12}>
|
||||
{/* Todo: Check availability with props.enabled */}
|
||||
<Checkbox label={<Trans>Enable</Trans>} checked={settings.enable} onChange={handleChange('enable')} />
|
||||
<Checkbox label={<Trans>Enable</Trans>} checked={settings.enable} disabled={!props.enabled} onChange={handleChange('enable')} />
|
||||
<Typography variant="caption">
|
||||
<Trans>Make the channel available as an RTMP stream.</Trans>
|
||||
</Typography>
|
||||
|
||||
@ -37,9 +37,15 @@ export default function Control(props) {
|
||||
};
|
||||
return (
|
||||
<Grid container spacing={2}>
|
||||
{!props.enabled && (
|
||||
<Grid item xs={12}>
|
||||
<Typography>
|
||||
<Trans>SRT server is not enabled</Trans>
|
||||
</Typography>
|
||||
</Grid>
|
||||
)}
|
||||
<Grid item xs={12}>
|
||||
{/* Todo: Check availability with props.enabled */}
|
||||
<Checkbox label={<Trans>Enable</Trans>} checked={settings.enable} onChange={handleChange('enable')} />
|
||||
<Checkbox label={<Trans>Enable</Trans>} checked={settings.enable} disabled={!props.enabled} onChange={handleChange('enable')} />
|
||||
<Typography variant="caption">
|
||||
<Trans>Make the channel available as an SRT stream.</Trans>
|
||||
</Typography>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user