feat: add mobile devices stream config field (#2744)
This commit is contained in:
parent
8fb2a5d4e3
commit
b2e512cbcd
|
@ -264,6 +264,10 @@ stream:
|
||||||
# Icecast stream genre.
|
# Icecast stream genre.
|
||||||
genre: various
|
genre: various
|
||||||
|
|
||||||
|
# Whether the stream should be used for mobile devices.
|
||||||
|
# > default is false
|
||||||
|
mobile: false
|
||||||
|
|
||||||
# Shoutcast output streams.
|
# Shoutcast output streams.
|
||||||
# > max items is 1
|
# > max items is 1
|
||||||
shoutcast:
|
shoutcast:
|
||||||
|
@ -309,6 +313,10 @@ stream:
|
||||||
# Shoutcast stream genre.
|
# Shoutcast stream genre.
|
||||||
genre: various
|
genre: various
|
||||||
|
|
||||||
|
# Whether the stream should be used for mobile devices.
|
||||||
|
# > default is false
|
||||||
|
mobile: false
|
||||||
|
|
||||||
# System outputs.
|
# System outputs.
|
||||||
# > max items is 1
|
# > max items is 1
|
||||||
system:
|
system:
|
||||||
|
|
|
@ -264,6 +264,10 @@ stream:
|
||||||
# Icecast stream genre.
|
# Icecast stream genre.
|
||||||
genre: various
|
genre: various
|
||||||
|
|
||||||
|
# Whether the stream should be used for mobile devices.
|
||||||
|
# > default is false
|
||||||
|
mobile: false
|
||||||
|
|
||||||
# Shoutcast output streams.
|
# Shoutcast output streams.
|
||||||
# > max items is 1
|
# > max items is 1
|
||||||
shoutcast:
|
shoutcast:
|
||||||
|
@ -309,6 +313,10 @@ stream:
|
||||||
# Shoutcast stream genre.
|
# Shoutcast stream genre.
|
||||||
genre: various
|
genre: various
|
||||||
|
|
||||||
|
# Whether the stream should be used for mobile devices.
|
||||||
|
# > default is false
|
||||||
|
mobile: false
|
||||||
|
|
||||||
# System outputs.
|
# System outputs.
|
||||||
# > max items is 1
|
# > max items is 1
|
||||||
system:
|
system:
|
||||||
|
|
|
@ -264,6 +264,10 @@ stream:
|
||||||
# Icecast stream genre.
|
# Icecast stream genre.
|
||||||
genre: various
|
genre: various
|
||||||
|
|
||||||
|
# Whether the stream should be used for mobile devices.
|
||||||
|
# > default is false
|
||||||
|
mobile: false
|
||||||
|
|
||||||
# Shoutcast output streams.
|
# Shoutcast output streams.
|
||||||
# > max items is 1
|
# > max items is 1
|
||||||
shoutcast:
|
shoutcast:
|
||||||
|
@ -309,6 +313,10 @@ stream:
|
||||||
# Shoutcast stream genre.
|
# Shoutcast stream genre.
|
||||||
genre: various
|
genre: various
|
||||||
|
|
||||||
|
# Whether the stream should be used for mobile devices.
|
||||||
|
# > default is false
|
||||||
|
mobile: false
|
||||||
|
|
||||||
# System outputs.
|
# System outputs.
|
||||||
# > max items is 1
|
# > max items is 1
|
||||||
system:
|
system:
|
||||||
|
|
|
@ -451,6 +451,10 @@ stream:
|
||||||
website: "https://libretime.org"
|
website: "https://libretime.org"
|
||||||
# Icecast stream genre.
|
# Icecast stream genre.
|
||||||
genre: "various"
|
genre: "various"
|
||||||
|
|
||||||
|
# Whether the stream should be used for mobile devices.
|
||||||
|
# > default is false
|
||||||
|
mobile: false
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Shoutcast
|
#### Shoutcast
|
||||||
|
@ -504,6 +508,10 @@ stream:
|
||||||
website: "https://libretime.org"
|
website: "https://libretime.org"
|
||||||
# Shoutcast stream genre.
|
# Shoutcast stream genre.
|
||||||
genre: "various"
|
genre: "various"
|
||||||
|
|
||||||
|
# Whether the stream should be used for mobile devices.
|
||||||
|
# > default is false
|
||||||
|
mobile: false
|
||||||
```
|
```
|
||||||
|
|
||||||
#### System
|
#### System
|
||||||
|
|
|
@ -264,6 +264,10 @@ stream:
|
||||||
# Icecast stream genre.
|
# Icecast stream genre.
|
||||||
genre: various
|
genre: various
|
||||||
|
|
||||||
|
# Whether the stream should be used for mobile devices.
|
||||||
|
# > default is false
|
||||||
|
mobile: false
|
||||||
|
|
||||||
# Shoutcast output streams.
|
# Shoutcast output streams.
|
||||||
# > max items is 1
|
# > max items is 1
|
||||||
shoutcast:
|
shoutcast:
|
||||||
|
@ -309,6 +313,10 @@ stream:
|
||||||
# Shoutcast stream genre.
|
# Shoutcast stream genre.
|
||||||
genre: various
|
genre: various
|
||||||
|
|
||||||
|
# Whether the stream should be used for mobile devices.
|
||||||
|
# > default is false
|
||||||
|
mobile: false
|
||||||
|
|
||||||
# System outputs.
|
# System outputs.
|
||||||
# > max items is 1
|
# > max items is 1
|
||||||
system:
|
system:
|
||||||
|
|
|
@ -171,6 +171,7 @@ class Schema implements ConfigurationInterface
|
||||||
/* */->scalarNode('description')->end()
|
/* */->scalarNode('description')->end()
|
||||||
/* */->scalarNode('website')->end()
|
/* */->scalarNode('website')->end()
|
||||||
/* */->scalarNode('genre')->end()
|
/* */->scalarNode('genre')->end()
|
||||||
|
/* */->booleanNode('mobile')->defaultFalse()->end()
|
||||||
/**/->end()->end()->end()
|
/**/->end()->end()->end()
|
||||||
|
|
||||||
// Shoutcast outputs
|
// Shoutcast outputs
|
||||||
|
@ -200,6 +201,7 @@ class Schema implements ConfigurationInterface
|
||||||
/* */->scalarNode('name')->end()
|
/* */->scalarNode('name')->end()
|
||||||
/* */->scalarNode('website')->end()
|
/* */->scalarNode('website')->end()
|
||||||
/* */->scalarNode('genre')->end()
|
/* */->scalarNode('genre')->end()
|
||||||
|
/* */->booleanNode('mobile')->defaultFalse()->end()
|
||||||
/**/->end()->end()->end()
|
/**/->end()->end()->end()
|
||||||
|
|
||||||
// System outputs
|
// System outputs
|
||||||
|
|
|
@ -62,7 +62,7 @@ class Application_Model_StreamConfig
|
||||||
$prefix . 'description' => $output['description'] ?? '',
|
$prefix . 'description' => $output['description'] ?? '',
|
||||||
$prefix . 'genre' => $output['genre'] ?? '',
|
$prefix . 'genre' => $output['genre'] ?? '',
|
||||||
$prefix . 'url' => $output['website'] ?? '',
|
$prefix . 'url' => $output['website'] ?? '',
|
||||||
$prefix . 'mobile' => 'false',
|
$prefix . 'mobile' => $output['mobile'] ?? 'false',
|
||||||
// $prefix . 'liquidsoap_error' => 'waiting',
|
// $prefix . 'liquidsoap_error' => 'waiting',
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -220,6 +220,8 @@ class IcecastOutput(BaseModel):
|
||||||
website: Optional[str] = None
|
website: Optional[str] = None
|
||||||
genre: Optional[str] = None
|
genre: Optional[str] = None
|
||||||
|
|
||||||
|
mobile: bool = False
|
||||||
|
|
||||||
_mount_no_leading_slash = no_leading_slash_validator("mount")
|
_mount_no_leading_slash = no_leading_slash_validator("mount")
|
||||||
|
|
||||||
|
|
||||||
|
@ -244,6 +246,8 @@ class ShoutcastOutput(BaseModel):
|
||||||
website: Optional[str] = None
|
website: Optional[str] = None
|
||||||
genre: Optional[str] = None
|
genre: Optional[str] = None
|
||||||
|
|
||||||
|
mobile: bool = False
|
||||||
|
|
||||||
|
|
||||||
class SystemOutputKind(str, Enum):
|
class SystemOutputKind(str, Enum):
|
||||||
ALSA = "alsa"
|
ALSA = "alsa"
|
||||||
|
|
Loading…
Reference in New Issue