All Products
Search
Document Center

AddLiveRecordVideoComplete

Last Updated: Sep 04, 2018

Event type

AddLiveRecordVideoComplete

Event description

When live stream recording is enabled, an AddLiveRecordVideoComplete event is generated after an on-demand video is created at the end of a recording period or at the end of a live stream.

Note: A live stream that is interrupted for more than three minutes is considered as ended.

Event content

Name Type Description
EventTime String The time when the event occurs in UTC-8. Format: yyyy-MM-ddTHH:mm:ssZ.
EventType String The type of the event. The value is AddLiveRecordVideoComplete.
VideoId String The ID of the video.
Status String The status of the recording task. A value of success indicates that the recording task is successful. A value of fail indicates that the recording task has failed.
StreamName String The name of the live stream.
DomainName String The domain name.
AppName String The name of the application.
RecordStartTime String The start time of the recording task in UTC-8. Format: yyyy-MM-ddTHH:mm:ssZ.
RecordEndTime String The end time of the recording task in UTC-8. Format: yyyy-MM-ddTHH:mm:ssZ.

Callback examples

The following example shows the body of an HTTP POST request for HTTP callbacks.

  1. {
  2. "EventTime": "2017-12-08T09:26:17Z",
  3. "EventType": "AddLiveRecordVideoComplete",
  4. "VideoId": "43q9fjasjdflask",
  5. "Status": "success",
  6. "StreamName": "xxx",
  7. "DomainName": "xxx",
  8. "AppName": "xxx",
  9. "RecordStartTime":"2017-12-08T07:40:56Z",
  10. "RecordEndTime":"2017-12-08T09:26:17Z",
  11. }