Методы

bind-channels

Привязать треки к .
Тело запроса:
Имя
Тип
Описание
Примечание
method_id
enum
bind-channels
manager_id
string
идентификатор менеджера
допустимые символы: ‘a-z’,’A-Z’, ‘0-9’, ‘_’
object_id
string
идентификатор объекта
допустимые символы: ‘a-z’,’A-Z’, ‘0-9’, ‘_’
tracks
array of
track-binded-params
массив привязки треков к каналам
There are no rows in this table
Тело ответа:
Имя
Тип
Описание
Примечание
method_id
enum
bind-channels
manager_id
string
идентификатор менеджера
из запроса
object_id
string
идентификатор объекта
из запроса
tracks
array of
track-binded-params
массив состояний треков после привязки к каналам
result
numeric
200 - привязка каналов успешно выполнена, 404 - менеджера или объекта с таким id не существует, 400 - ошибка в запросе
There are no rows in this table
Пример запроса:
{
"server": "lia057pLWZdMi3GG",
"id": 7,
"type": "request",
"methods": [
{
"manager_id": "dvcmgr",
"method_id": "bind-channels",
"object_id": "rtcdvc",
"tracks": [
{
"track_id": "0:0:0",
"direction": "output",
"channel_id": "chmgr.inputAudio"
},
{
"track_id": "0:1:0",
"direction": "output",
"channel_id": "chmgr.inputVideo"
},
{
"track_id": "0:0:0",
"direction": "input",
"channel_id": "chmgr.outputAudio"
},
{
"track_id": "0:1:0",
"direction": "input",
"channel_id": "chmgr.outputVideo",
"flow_params": {
"min_bitrate": 512000,
"max_bitrate": 1024000
}
}
]
}
]
}
Пример ответа:
{
"server": "lia057pLWZdMi3GG",
"id": 7,
"type": "response",
"result": "207",
"methods": [
{
"manager_id": "dvcmgr",
"object_id": "rtcdvc",
"method_id": "bind-channels",
"tracks": [
{
"track_id": "0:0:0",
"direction": "output",
"channel_id": "chmgr.inputAudio"
},
{
"track_id": "0:1:0",
"direction": "output",
"channel_id": "chmgr.inputVideo"
},
{
"track_id": "0:0:0",
"direction": "input",
"channel_id": "chmgr.outputAudio"
},
{
"track_id": "0:1:0",
"direction": "input",
"channel_id": "chmgr.outputVideo",
"flow_params": {
"min_bitrate": 512000,
"max_bitrate": 1024000
}
}
],
"result": "200"
}
]
}
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.