← Back to release summary

WebRTC Encoded Source

Category
WebRTC
Type
New or changed feature
Status
Proposed (Chrome Proposed)
Intent stage
None

Summary

The RTCPeerConnection API allows encoding raw audio and video and send it to a remote peer. Raw audio and video are provided via a MediaStreamTrack, which usually carries media from cameras, microphones, screen captures and other sources. In some cases, applications are interested in inserting encoded media directly into the peer connection: * The application wants to use a custom encoder instead of the internal encoder of the peer connection. This custom encoder could be a WebCodecs encoder, a WASM encoder or any other kind supplied by the application. * The application wants to use encoded data already available from another source such as another peer connection (e.g., to forward frames), or a file. This proposal adds a new API to inject encoded frames directly into an RTCRtpSender from an RTCPeerConnection.

Motivation

This feature allows injecting encoded media frames into the RTCRtpSender of an RTCPeerConnection. This allows supporting the following use cases: * Use a custom encoder instead of the internal encoder of the peer connection. This custom encoder can be a WebCodecs encoder, a WASM encoder or any other kind supplied by the application. * Use pre-encoded data already available from another source such as another peer connection (e.g., to forward frames), or a file.

Standards & signals

Ecosystem

Explainers: https://github.com/guidou/webrtc-extensions/blob/main/encoded-source-explainer.md

View on chromestatus.com