webrtc中,如何使用peer connection在Android中添加min_height、max_height、min_fps等视频约束?
问问题
308 次
1 回答
0
您可以使用 MediaConstraints KeyValuePair 添加它
videoConstraints.mandatory.add(new MediaConstraints.KeyValuePair("maxHeight", Integer.toString(videoHeight)));
videoConstraints.mandatory.add(new MediaConstraints.KeyValuePair("maxWidth", Integer.toString(videoWidth)));
videoConstraints.mandatory.add(new MediaConstraints.KeyValuePair("maxFrameRate", Integer.toString(videoFps)));
videoConstraints.mandatory.add(new MediaConstraints.KeyValuePair("minFrameRate", Integer.toString(videoFps)))
于 2020-04-10T10:12:21.947 回答