taDEUS
taDEUS

Reputation: 5

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?

Upvotes: 0

Views: 2907

Answers (1)

Philipp Hancke
Philipp Hancke

Reputation: 17265

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

Upvotes: 1

Related Questions