Методы

channel-manager-state

Получение статистики менеджера каналов.
Тело запроса:
Имя
Тип
Описание
Примечание
method_id
enum
channel-manager-state
manager_id
string
идентификатор менеджера
Только response
channels
array of string
идентификаторы каналов
Опционально. Если поле не указано, то статистика будет получена по всем каналам
There are no rows in this table
Тело ответа:
Имя
Тип
Описание
Примечание
method_id
enum
channel-manager-state
manager_id
string
идентификатор менеджера
из запроса
channels
array of
channel_states
массив статусов каналов
result
numeric
200 - запрос обработан успешно 404 - менеджер с таким id отсутсвует 400 - ошибка в запросе
There are no rows in this table
Пример запроса:
{
"server": "lU69d5b7Gmdt0aVJ",
"id": 6,
"type": "request",
"methods": [
{
"manager_id": "chmgr",
"method_id": "channel-manager-state",
"channels": [
"video",
"audio"
]
}
]
}
Пример ответа:
{
"type": "response",
"server": "xIQZHKNmRFmEUuXJ",
"result": 207,
"id": 6,
"methods": [
{
"result": "200",
"method_id": "channel-manager-state",
"manager_id": "chmgr",
"channels": [
{
"refs": 4,
"inputs": 3,
"enabled": true,
"outputs": 1,
"channel_id": "video",
"metrics": {
"pending_messages": 0,
"track_metrics": [
{
"timestamp": 27814821822105,
"layer_id": 0,
"format": {
"width": 320,
"media_type": "video",
"height": 186,
"frame_rate": 60,
"format_id": "h264"
},
"flow_stats": {
"total_bytes": 225216,
"timestamp": 27814821784683,
"total_frames": 598,
"id": 10,
"framerate": 58.552562454476558,
"bitrate": 160868
}
},
{
"timestamp": 27814820453400,
"layer_id": 1,
"format": {
"width": 640,
"media_type": "video",
"height": 364,
"frame_rate": 55,
"format_id": "h264"
},
"flow_stats": {
"total_bytes": 908651,
"timestamp": 27814820450859,
"total_frames": 595,
"id": 10,
"framerate": 56.571684939019534,
"bitrate": 633108
}
},
{
"timestamp": 27814819658537,
"layer_id": 2,
"format": {
"width": 1280,
"media_type": "video",
"height": 720,
"frame_rate": 60,
"format_id": "h264"
},
"flow_stats": {
"total_bytes": 4423680,
"timestamp": 27814819656646,
"total_frames": 592,
"id": 9,
"framerate": 58.261223905000001,
"bitrate": 3934414
}
}
],
"drop_messages": 0
}
},
{
"refs": 2,
"inputs": 1,
"enabled": true,
"outputs": 1,
"channel_id": "audio",
"metrics": {
"pending_messages": 0,
"track_metrics": [
{
"timestamp": 27814823025099,
"layer_id": 0,
"format": {
"sample_rate": 48000,
"media_type": "audio",
"format_id": "opus",
"channels": 2
},
"flow_stats": {
"total_bytes": 22741,
"timestamp": 27814823023239,
"total_frames": 518,
"id": 10,
"framerate": 51.496756415681631,
"bitrate": 18897
}
}
],
"drop_messages": 0
}
}
]
}
]
}
Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.