Proof of concept that loads a video file and uses WebCodecs to convert it to a MediaStream where it can be set as a VideoElement srcObject or sent to a WebRTC RTCPeerConnection

Notes:

See webrtcHacks for more details and commentary.

Heavily inspired by the W3C WebCodecs work and their Audio and Video Player sample. Video "Big Buck Bunny" by Blender Foundation, used under CC BY 3.0.

or select a local file: