The LVB screencapturing feature is used to take screenshots of a real-time live stream at regular intervals and generate images. You can get the information of screenshots from callback notifications. Such screenshot data can be used for porn detection, live room cover generation, and other scenarios.
Event Type | Field Value Description |
---|---|
LVB screencapturing | event_type = 200 |
Field Name | Type | Description |
---|---|---|
t | int64 | Expiration time, which is the Unix timestamp when the event notification signature expires.
|
sign | string | Security signature of event notification (sign = MD5(key + t)). Note: Tencent Cloud splices the encryption `key` and `t`, calculates the `sign` value through MD5, and places it in the notification message. After your backend server receives the notification message, it can confirm whether the `sign` is correct based on the same algorithm and then determine whether the message is indeed from the Tencent Cloud backend. |
Note:
<span id="key"></span>key
is the callback key in Feature Template > Callback Configuration, which is mainly used for authentication. In order to protect the security of your data, we recommend you enter it.
Field Name | Type | Description |
---|---|---|
stream_id | string | LVB stream name |
channel_id | string | The value is the same as LVB stream name |
create_time | int64 | Unix timestamp when a screenshot is generated |
file_size | int | Screenshot file size in bytes |
width | int | Screenshot width in pixels |
height | int | Screenshot height in pixels |
pic_url | string | Screenshot file path, such as /path/name.jpg |
pic_full_url | string | Screenshot download URL |
{
"event_type":200,
"stream_id":"stream_name",
"channel_id":"stream_name",
"create_time":1545030273,
"file_size":7520,
"width":640,
"height":352,
"pic_url":"/2018-12-17/stream_name-screenshot-19-06-59-640x352.jpg",
"pic_full_url":"http://testbucket-1234567890.cos.region.myqcloud.com/2018-12-17/stream_name-screenshot-19-06-59-640x352.jpg",
"sign":"ca3e25e5dc17a6f9909a9ae7281e300d",
"t":1545030873
}
Was this page helpful?