Page tree
Skip to end of metadata
Go to start of metadata

Parameters

Name

Sub-array nameSub-sub-array name

Type

Value

Required

Comment

name



String


No
description

String
No
stream_id

Integer
Yes
manifest_id

Integer
Yes
continuous

Integer1 | 0No
start_time

String (Datetime)Y-m-d H:i:sNodefault: Current time
end_time

String (Datetime)Y-m-d H:i:sNo
start_margin

Integer
No
end_margin

Integer
No
autodelete

Integer1 | 0No
delete_after

Integer
No
default_duration

Integer30 | 60 | 120 | 240No
ads

Array (of {ad}s)
No





{ad}

0
Array
No


urlString
Yes

typeStringpre | mid | postYes

offsetStringif mid (%dd or time hh:mm:ss)Yes

Parameters can directly contain the parameters array OR it can contain an array of parameter arrays to create multiple recording with one call.

Examples

$data = array('object' => 'record', 'action' => 'create',

'parameters'=> array(

'name' => 'name',

'description' => 'description text',

'stream_id' => '666',

'manifest_id' => '111'

'start_time' => '2016-05-24 20:00:00',

'end_time' => '2016-06-24 20:00:00'

)

);


$data = array('object' => 'record', 'action' => 'create',

'parameters'=> array(

array(

'name' => 'name1',

'description' => 'description text1',

'stream_id' => '666',

'manifest_id' => '111'

'start_time' => '2016-05-24 20:00:00',

'end_time' => '2016-06-24 20:00:00',

),

array(

'name' => 'name2',

'description' => 'description text2',

'stream_id' => '666',

'manifest_id' => '111'

'start_time' => '2016-05-24 20:00:00',

'end_time' => '2016-06-24 20:00:00',

)

)

);

Response

Response FieldsTypeSample ValueComment
statusCode

Integer00 - Success
statusMessage

String"created"Error or confirmation message
data

Array
Array of response data

id
Array
Array of {ID}s created
{ID}
0Integer3450Id of a created recording
  • No labels