WebCodecs

WebCodecs 是一个灵活的 web API,用于对音频和视频进行编码和解码。「WebCodecs is a flexible web API for encoding and decoding audio and video.」

  • 所有者: w3c/webcodecs
  • 平台:
  • 许可证: Other
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

Try it out in Chrome 86

To try it on your machine, either

  • enable chrome://flags/#enable-experimental-web-platform-features, or
  • pass --enable-blink-features=WebCodecs flag via the command line.

To try it with real users, sign up for the origin trial here.

WebCodecs

The WebCodecs API allows web applications
to encode and decode audio and video.

Many Web APIs use media codecs internally to support APIs for particular uses:

  • HTMLMediaElement and Media Source Extensions
  • WebAudio (decodeAudioData)
  • MediaRecorder
  • WebRTC

But there’s no general way to flexibly configure and use these media codecs.
Because of this, many web applications have resorted to implementing
media codecs in JavaScript or WebAssembly, despite the disadvantages:

  • Increased bandwidth to download codecs already in the browser.
  • Reduced performance
  • Reduced power efficiency

It's great for:

  • Live streaming
  • Cloud gaming
  • Media file editing and transcoding

See the explainer for more info.

Code samples

Please see https://w3c.github.io/webcodecs/samples/

主要指标

概览
名称与所有者w3c/webcodecs
主编程语言HTML
编程语言Makefile (语言数: 2)
平台
许可证Other
所有者活动
创建于2019-06-21 22:04:18
推送于2025-06-09 09:31:08
最后一次提交
发布数0
用户参与
星数1.1k
关注者数76
派生数143
提交数1k
已启用问题?
问题数530
打开的问题数128
拉请求数295
打开的拉请求数6
关闭的拉请求数19
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?