Send a callback upon an event indicating the generation of a recording

The following callback notification indicates that the specified recording is generated:
{
  "domain": "qt01.alivecdn.com",
  "app": "mp4flvtest_flv",
  "stream": "callback_test",
  "uri": "mp4flvtest_flv/callback_test/0_2017-03-08-23:09:46_2017-03-08-23:10:40.flv",
  "duration": 69.403,
  "start_time": 1488985786,
  "stop_time": 1488985840
}

In the preceding code, the domain, app, and stream parameters indicate the domain name, application, and stream that are used to generate the recording. The uri parameter indicates the path in the Object Storage Service (OSS) bucket where the recording is stored. The duration, start_time, and stop_time parameters indicate the length of the recording, the time when the system started the recording operation, and the time when the system stopped the recording operation.

Send a callback for recording status (with the NeedStatusNotify parameter set to true)

  1. The following callback notification indicates that the system started the recording operation:
    {
    "domain": "gs_domain",
    "app": "gs_app",
    "stream": "gs_stream",
    "event": "record_started"
    }
    

    In the preceding code, the domain, app, and stream parameters indicate the domain name, application, and stream that are used to generate the recording. The event parameter indicates the event name, which may be record_started, record_paused, or record_resumed.

  2. The following callback notification indicates that the system paused the recording operation:
    {
    "domain": "gs_domain",
    "app": "gs_app",
    "stream": "gs_stream",
    "event": "record_paused"
    }
    
  3. The following callback notification indicates that the system resumed the recording operation:
    {
    "domain": "gs_domain",
    "app": "gs_app",
    "stream": "gs_stream",
    "event": "record_resumed"
    }