简体   繁体   中英

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. 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.

How can I set the default video codec to be h264 in the browser?

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.

https://webrtc.github.io/samples/src/content/peerconnection/change-codecs/ demonstrates the APIs for selecting the codecs should it become necessary

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM