简体   繁体   English

Webrtc RTCPeerConnection - 设置视频编解码器 h264

[英]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.

相关问题 Javascript MediaSource API和H264视频 - Javascript MediaSource API and H264 video 如何将Firefox连接到Chrome以通过WebRTC传输h264? - How to connect Firefox to Chrome to transfer h264 via WebRTC? 有没有办法使用 h.264 编解码器恢复实时 h264 播放(客户端重新加入)? - Is there any way to resume live h264 playback (client rejoin) using the h.264 codec? 通过MSE将低延迟的AVC / H264视频流传输到浏览器 - Streaming low latency avc/h264 video to a browser with MSE 如何在Javascript中将字节数组(.h264格式)解码为视频? - how to decode the byte array(.h264 format) in to video in javascript? 检测HTML5视频的H264配置文件和级别 - Detect H264 profile and level for HTML5 video iOS 12 WebRTC stream 与 H264 High Profile 一起发送,即使双方同意 Base Profile - iOS 12 WebRTC stream sent with H264 High Profile even though parties agreed on Base Profile 如何通过跨浏览器为 Web 应用程序播放.h264(Ex:globalwarming.h264) 视频文件 - How to play .h264(Ex:globalwarming.h264) video file through cross browser for Web Application H264视频使用src属性。 同一视频使用MediaSource API(Chromium)失败 - H264 video works using src attribute. Same video fails using the MediaSource API (Chromium) 如何在 webrtc 中设置 vp8、视频编解码器的 gop 大小? - how to set gop size of vp8, video codec, in webrtc?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM