device

rtp-device

rtp-device функционально является эквивалетном , с той разнцей что медиасессии параметризуются не типичным для VoIP систем процессом согласования по протоколу
, а общим заданием параметров медиасессий в формате JSON. Технически, rtp-device - это без модуля согласования SDP, RTP/RTCP-стек использоуется тот же. По сути приложению предоставляется возможность прямого управления rtp-сессиями без SDP.
Параметры rtp-device:
Имя
Тип
Описание
Примечание
device_type
enum
rtp
sessions
array of
rtp-session-params
Параметры медиасессий
There are no rows in this table

Пример запроса:
{
"server": "hhYzGwB40kJIQnvJ",
"id": 3,
"type": "request",
"methods": [
{
"method_id": "add-object",
"manager_id": "dvcmgr",
"object_id": "inrtpdvc",
"category": "device",
"params": {
"device_type": "rtp",
"sessions": [
{
"media_type": "video",
"direction": "recvonly",
"protocols": [
"rtp",
"avp"
],
"transport": {
"transport_id": "udp",
"bundle": true,
"rtcp_mux": false,
"local_endpoint": {
"rtp_endpoint": {
"address": {
"ip": "127.0.0.1"
},
"port": 5000
}
}
},
"inbound_stream": {
"codecs": [
{
"media_type": "video",
"codec_id": "H264",
"sample_rate": 90000,
"channels": 1,
"payload_type": 96,
"rtcp": {
"nack pli": "",
"ccm fir": ""
}
}
],
"stream": {
"sources": [
{
"ssrc_id": 1234567
}
]
}
}
},
{
"media_type": "video",
"direction": "recvonly",
"protocols": [
"rtp",
"avp"
],
"transport": {
"transport_id": "udp",
"bundle": true,
"rtcp_mux": false,
"local_endpoint": {
"rtp_endpoint": {
"address": {
"ip": "127.0.0.1"
},
"port": 5000
}
}
},
"inbound_stream": {
"codecs": [
{
"media_type": "video",
"codec_id": "H264",
"sample_rate": 90000,
"channels": 1,
"payload_type": 96,
"rtcp": {
"nack pli": "",
"ccm fir": ""
}
}
],
"stream": {
"sources": [
{
"ssrc_id": 7654321
}
]
}
}
}
]
}
},
{
"method_id": "add-object",
"manager_id": "dvcmgr",
"object_id": "outrtpdvc",
"category": "device",
"params": {
"device_type": "rtp",
"sessions": [
{
"media_type": "video",
"direction": "sendonly",
"protocols": [
"rtp",
"avp"
],
"transport": {
"transport_id": "udp",
"bundle": true,
"rtcp_mux": false,
"remote_endpoint": {
"rtp_endpoint": {
"address": {
"ip": "127.0.0.1"
},
"port": 5002
}
}
},
"outbound_stream": {
"codecs": [
{
"media_type": "video",
"codec_id": "H264",
"sample_rate": 90000,
"channels": 1,
"payload_type": 96,
"rtcp": {
"nack pli": "",
"ccm fir": ""
}
}
],
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.