make OutputCodec work in API
parent
9cb21dce22
commit
6218d065a5
|
@ -54,7 +54,13 @@ class Monitor extends AppModel {
|
|||
'message' => 'Monitor Name must be specified for creation',
|
||||
'required' => true,
|
||||
),
|
||||
)
|
||||
),
|
||||
// These codec values mimic acceptable ones for FFMPEG
|
||||
// Edit this if the list in ZM changes
|
||||
'OutputCodec' => array (
|
||||
'rule' => array('inList', array (0,27,173,167,226)),
|
||||
'message'=>'Invalid value. Should be one of these integer values: 0(auto), 27(h264), 173(h265/hvec), 167(vp9), 226(av1)'
|
||||
)
|
||||
|
||||
);
|
||||
|
||||
|
@ -122,8 +128,9 @@ class Monitor extends AppModel {
|
|||
'Type' => array('Local','Remote','File','Ffmpeg','Libvlc','cURL','WebSite', 'VNC'),
|
||||
'Function' => array('None','Monitor','Modect','Record','Mocord','Nodect'),
|
||||
'Orientation' => array('ROTATE_0','ROTATE_90','ROTATE_180','ROTATE_270','FLIP_HORI','FLIP_VERT'),
|
||||
'OutputCodec' => array('h264','mjpeg','mpeg1','mpeg2'),
|
||||
'OutputContainer' => array('auto','mp4','mkv'),
|
||||
// mask OutputCodec as its not an Enum in mysql
|
||||
//'OutputCodec' => array( 'h264' ,'mjpeg','mpeg1','mpeg2'),
|
||||
'OutputContainer' => array(1=>'auto',2=>'mp4',3=>'mkv'),
|
||||
'DefaultView' => array('Events','Control'),
|
||||
#'Status' => array('Unknown','NotRunning','Running','NoSignal','Signal'),
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue