说明:在NDI推流模式下才会有此项的设置,主要是对当前NDI编码输出流的通道号,帧率,分辨率的设置
API URL
/api/ndi/set.json
Request
Method:GET/POST
格式(Example):
{
"output": "1", // 当前控制的输出窗口 type: String
"host":"DESKTOP-7T0CUHF", // 当前主机名 type:String
"name": "输出1", // 当前窗口的名称,也是NDI的通道名 type: String
"resolution": 2, // 分辨参数,对应分辨率列表的id 此项为0时,为自定义模式 type: Number
"customResolution":{ // 直接读取这里
"width": 1920, // 分辨率宽度,跟随resolution同步变化 type:Number
"height": 1080, // 分辨率高度,跟随resolution同步变化 type:Number
},
"aspectRatio":0,// 纵横比 为0时表示不限制 为999时表示自定义 type: Number
"customAspectRatio":{ // 自定义分辨率
"width": 18,
"height": 9
},
"frameRate": 0, // 帧率 type:Number 此项为0时,请读取自定义 0 30 40 50 60
"customFrameRate": 24,// 自定义帧率,直接读取这里即可 type:Number
}
Response
格式(Example):
{
"result":"ok"
}