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?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?