Recording

/v1/vhosts/{vhost_name}/apps/{app_name}:startRecord

POST http://<OME_HOST>:<API_PORT>/v1/vhosts/{vhost_name}/apps/{app_name}:startRecord

This API performs a recording start request operation. for recording, the output stream name must be specified. file path, information path, recording interval and schedule parameters can be specified as options. Request Example: POST http://1.2.3.4:8081/v1/vhosts/default/apps/app:startRecord { "id": "custom_id", "stream": { "name": "stream_o", "tracks": [ 100, 200 ] }, "filePath" : "/path/to/save/recorded/file_${Sequence}.ts", "infoPath" : "/path/to/save/information/file.xml", "interval" : 60000, # Split it every 60 seconds "schedule" : "0 0 */1" # Split it at second 0, minute 0, every hours. "segmentationRule" : "continuity" }

Path Parameters

Headers

Request Body

{
    "message": "OK",
    "response": [
        {
            "state": "ready",
            "id": "stream_o",
            "vhost": "default",
            "app": "app",
            "stream": {
                "name": "stream_o",
                "tracks": []
            },
            "filePath": "/path/to/save/recorded/file_${Sequence}.ts",
            "infoPath": "/path/to/save/information/file.xml",            
            "interval": 60000,  
            "schedule": "0 0 */1",       
            "segmentationRule": "continuity",
            "createdTime": "2021-08-31T23:44:44.789+0900"
        }
    ],
    "statusCode": 200
}

/v1/vhosts/{vhost_name}/apps/{app_name}:stopRecord

POST http://<OME_HOST>:<API_PORT>/v1/vhosts/{vhost_name}/apps/{app_name}:stopRecord

This API performs a recording stop request. Request Example: POST http://1.2.3.4:8081/v1/vhosts/default/apps/app:stopRecord { "id": "custom_id" }

Path Parameters

Headers

Request Body

{
    "message": "OK",
    "response": [
        {
            "state": "stopping",
            "id": "custom_id",            
            "vhost": "default",
            "app": "app",
            "stream": {
                "name": "stream_o",
                "tracks": []
            },
            "filePath": "app_stream_o_0.ts",
            "infoPath": "app_stream_o.xml",
            "segmentationRule": "discontinuity",
            "recordBytes": 1200503,
            "recordTime": 4272,
            "totalRecordBytes": 1204775,
            "totalRecordTime": 4272,
            "createdTime": "2021-08-31T23:44:44.789+0900",
            "startTime": "2021-08-31T23:44:44.849+0900"
        }
    ],
    "statusCode": 200
}

/v1/vhosts/{vhost_name}/apps/{app_name}:records

POST http://<OME_HOST>:<API_PORT>/v1/vhosts/{vhost_name}/apps/{app_name}:records

This API performs a query of the job being recorded. Provides job inquiry function for all or custom Id. Request Example: POST http://1.2.3.4:8081/v1/vhosts/default/apps/app:records { "id" : "custom_id" }

Path Parameters

Headers

Request Body

{
    "message": "OK",
    "response": [
        {
            "state": "ready",
            "id": "custom_id_1",
            "vhost": "default",
            "app": "app",
            "stream": {
                "name": "stream_o",
                "tracks": []
            },
            "filePath": "app_stream_o_0.ts",
            "infoPath": "app_stream_o.xml",
            "segmentationRule": "discontinuity",
            "createdTime": "2021-08-31T21:05:01.171+0900",
        },
        {
            "state": "recording",
            "id": "custom_id_2",
            "vhost": "default",                    
            "app": "app",
            "stream": {
                "name": "stream_o",
                "tracks": []
            },
            "filePath": "app_stream_o_0.ts",
            "infoPath": "app_stream_o.xml",
            "segmentationRule": "discontinuity",
            "sequence": 0,
            "recordBytes": 1907351,
            "recordTime": 6968,
            "totalRecordBytes": 1907351,
            "totalRecordTime": 6968,
            "createdTime": "2021-08-31T21:05:01.171+0900",            
            "startTime": "2021-08-31T21:05:01.567+0900",            
        },
        {
            "state": "stopping",
            "id": "custom_id_3",
            "vhost": "default",
            "app": "app",
            "stream": {
                "name": "stream_o",
                "tracks": []
            },
            "filePath": "app_stream_o_0.ts",
            "infoPath": "app_stream_o.xml",
            "segmentationRule": "discontinuity",
            "sequence": 0,
            "recordBytes": 1907351,
            "recordTime": 6968,
            "totalRecordBytes": 1907351,
            "totalRecordTime": 6968,
            "createdTime": "2021-08-31T21:05:01.171+0900",
            "startTime": "2021-08-31T21:05:01.567+0900",
        },
        {
            "state": "stopped",
            "id": "custom_id_4",
            "vhost": "default",        
            "app": "app",
            "stream": {
                "name": "stream_o",
                "tracks": []
            },
            "filePath": "app_stream_o_0.ts",
            "infoPath": "app_stream_o.xml",
            "segmentationRule": "discontinuity",
            "sequence": 0,
            "recordBytes": 1907351,
            "recordTime": 6968,
            "totalRecordBytes": 1907351,
            "totalRecordTime": 6968,
            "startTime": "2021-08-31T21:05:01.567+0900",            
            "createdTime": "2021-08-31T21:05:01.171+0900",            
            "finishTime": "2021-08-31T21:15:01.567+0900"
        },
        {
            "state": "error",
            "id": "custom_id_5",
            "vhost": "default",        
            "app": "app",
            "stream": {
                "name": "stream_o",
                "tracks": []
            },
            "filePath": "app_stream_o_0.ts",
            "infoPath": "app_stream_o.xml",
            "segmentationRule": "discontinuity",
            "sequence": 0,
            "recordBytes": 1907351,
            "recordTime": 6968,
            "totalRecordBytes": 1907351,
            "totalRecordTime": 6968,
            "createdTime": "2021-08-31T21:05:01.171+0900",
            "startTime": "2021-08-31T21:05:01.567+0900",
            "finishTime": "2021-08-31T21:15:01.567+0900"
        }
    ],
    "statusCode": 200
}

Last updated