w3c / webcodecs

WebCodecs is a flexible web API for encoding and decoding audio and video.
https://w3c.github.io/webcodecs/
Other
978 stars 136 forks source link

Add audio-video-player sample #530

Closed chcunningham closed 2 years ago

chcunningham commented 2 years ago

Live demo here: https://webcodecs-samples.netlify.app/audio-video-player/audio_video_player.html

Authored in collaboration w/ @padenot

Originally hosted here: https://github.com/chcunningham/wc-talk

This is mostly a copy/paste of that, but I've moved demuxing and decoding to a dedicated "media worker" and tried to clean things up a bit.

chcunningham commented 2 years ago

@sandersdan FYI - this sample has the "pull demuxer" wrapper. I intend to make an interface for this in a follow up CL (and use it for the ffmpeg demuxer)

chcunningham commented 2 years ago

@padenot @aboba - FYI, merging. Later feedback welcome. Getting this in now so I can build on top of it.