[英]Webrtc RTCPeerConnection - set video codec h264
I would like to establish a video chat connection (webrtc via node signalling server) between the browser and the Hololens 2 device.我想在浏览器和 Hololens 2 设备之间建立视频聊天连接(通过节点信令服务器的 webrtc)。 I already know that Hololens 2 supports only video codec h264, so I want also in the browser side to set the default codec to h264.我已经知道 Hololens 2 只支持视频编解码器 h264,所以我也想在浏览器端将默认编解码器设置为 h264。
How can I set the default video codec to be h264 in the browser?如何在浏览器中将默认视频编解码器设置为 h264?
If the hololens only supports H264 and the browser supports VP8 and H264 (which is common and required), H264 will be negotiated without you needing to do anything.如果hololens只支持H264,而浏览器支持VP8和H264(常见且必须),H264会协商,不需要你做任何事情。
https://webrtc.github.io/samples/src/content/peerconnection/change-codecs/ demonstrates the APIs for selecting the codecs should it become necessary https://webrtc.github.io/samples/src/content/peerconnection/change-codecs/演示了用于在必要时选择编解码器的 API
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.