2016-11-17 03:15:34 +00:00
< ? php
return [
'method' => 'post' ,
'enctype' => 'multipart/form-data' ,
'groups' => [
'basic_info' => [
'elements' => [
2017-01-24 00:35:16 +00:00
'name' => [
'text' ,
[
2018-03-19 01:31:43 +00:00
'label' => __ ( 'Mount Point Name/URL' ),
'description' => __ ( 'This name should always begin with a slash (/), and must be a valid URL, such as /autodj.mp3' ),
2017-01-24 00:35:16 +00:00
'required' => true ,
]
],
2016-11-17 03:15:34 +00:00
2017-01-24 00:35:16 +00:00
'is_default' => [
'radio' ,
[
2018-03-19 01:31:43 +00:00
'label' => __ ( 'Is Default Mount' ),
'description' => __ ( 'If this mount is the default, it will be played on the radio preview and the public radio page in this system.' ),
2018-05-17 09:02:46 +00:00
'choices' => [ 0 => __ ( 'No' ), 1 => __ ( 'Yes' )],
2017-01-24 00:35:16 +00:00
'default' => 0 ,
]
],
2016-11-17 03:15:34 +00:00
2017-01-24 00:35:16 +00:00
'fallback_mount' => [
'text' ,
[
2018-03-19 01:31:43 +00:00
'label' => __ ( 'Fallback Mount' ),
'description' => __ ( 'If this mount point is not playing audio, listeners will automatically be redirected to this mount point. The default is /error.mp3, a repeating error message.' ),
2017-01-24 00:35:16 +00:00
'default' => '/error.mp3' ,
]
],
2016-11-17 03:15:34 +00:00
2017-04-12 22:19:02 +00:00
'relay_url' => [
'text' ,
[
2018-03-19 01:31:43 +00:00
'label' => __ ( 'Relay Stream URL' ),
'description' => __ ( 'Enter the full URL of another stream to relay its broadcast through this mount point.' ),
2017-04-12 22:19:02 +00:00
'default' => '' ,
]
],
2017-01-24 00:35:16 +00:00
'enable_autodj' => [
'radio' ,
[
2018-03-19 01:31:43 +00:00
'label' => __ ( 'Enable AutoDJ' ),
'description' => __ ( 'If set to "Yes", the AutoDJ will automatically play music to this mount point.' ),
2018-05-17 09:02:46 +00:00
'choices' => [ 0 => __ ( 'No' ), 1 => __ ( 'Yes' )],
2017-01-24 00:35:16 +00:00
'default' => 1 ,
]
],
2016-11-17 03:15:34 +00:00
2017-01-24 00:35:16 +00:00
'autodj_format' => [
'radio' ,
[
2018-03-19 01:31:43 +00:00
'label' => __ ( 'AutoDJ Format' ),
2018-05-17 09:02:46 +00:00
'choices' => [
2017-01-24 00:35:16 +00:00
'mp3' => 'MP3' ,
'ogg' => 'OGG Vorbis' ,
2017-11-09 07:36:00 +00:00
'opus' => 'OGG Opus' ,
2017-10-20 07:43:20 +00:00
'aac' => 'AAC+ (MPEG4 HE-AAC v2)' ,
2017-01-24 00:35:16 +00:00
],
'default' => 'mp3' ,
]
],
2016-11-17 03:15:34 +00:00
2017-01-24 00:35:16 +00:00
'autodj_bitrate' => [
'radio' ,
[
2018-03-19 01:31:43 +00:00
'label' => __ ( 'AutoDJ Bitrate (kbps)' ),
2018-05-17 09:02:46 +00:00
'choices' => [
2017-05-18 07:24:54 +00:00
32 => '32' ,
2018-02-02 22:29:14 +00:00
48 => '48' ,
2017-01-24 00:35:16 +00:00
64 => '64' ,
96 => '96' ,
128 => '128' ,
192 => '192' ,
256 => '256' ,
2017-04-13 02:20:20 +00:00
320 => '320' ,
2017-01-24 00:35:16 +00:00
],
'default' => 128 ,
]
],
2016-11-17 03:15:34 +00:00
2017-05-22 05:31:57 +00:00
'is_public' => [
'radio' ,
[
2018-03-19 01:31:43 +00:00
'label' => __ ( 'Advertise to YP Directories (Public Station)' ),
'description' => __ ( 'Set to "yes" to advertise this stream on the YP public radio directories.' ),
2018-05-17 09:02:46 +00:00
'choices' => [ 0 => __ ( 'No' ), 1 => __ ( 'Yes' )],
2017-05-22 05:31:57 +00:00
'default' => 0 ,
]
],
2018-06-27 23:40:29 +00:00
'custom_listen_url' => [
'text' ,
[
'label' => __ ( 'Advanced: Custom Stream URL' ),
'description' => __ ( 'You can set a custom URL for this stream that AzuraCast will use when referring to it. Leave empty to use the default value.' )
]
],
2017-01-24 00:35:16 +00:00
'frontend_config' => [
'textarea' ,
[
2018-03-19 01:31:43 +00:00
'label' => __ ( 'Advanced Frontend Configuration' ),
'description' => __ ( 'You can include any special mount point settings here, in either JSON { key: \'value\' } format or XML <key>value</key>' ),
2017-01-24 00:35:16 +00:00
]
],
2016-11-17 18:26:43 +00:00
2016-11-17 03:15:34 +00:00
],
],
'grp_submit' => [
'elements' => [
2017-01-24 00:35:16 +00:00
'submit' => [
'submit' ,
[
'type' => 'submit' ,
2018-03-19 01:31:43 +00:00
'label' => __ ( 'Save Changes' ),
2017-01-24 00:35:16 +00:00
'class' => 'ui-button btn-lg btn-primary' ,
]
],
2016-11-17 03:15:34 +00:00
],
],
],
2018-06-27 23:40:29 +00:00
];