本文档的状态
1.
完全限定的编解码器字符串
此编解码器有多个等价的编解码器
字符串:
-
"mp3"
-
"mp4a.69"
-
"mp4a.6B"
2. EncodedAudioChunk 数据
EncodedAudioChunk
的 [[internal data]]
预期为
[MP3]
规范第 2.4.2.2 节中所述的一个 “frame”。
3.
AudioDecoderConfig description
description
不用于此编解码器。
sampleRate
和 numberOfChannels
成员会被忽略。
4. EncodedAudioChunk type
对于包含
mp3 的 EncodedAudioChunk,
其 [[type]]
始终为 “key”。
注: 一旦初始化成功,任何 mp3
数据包都可以在
任何时候无错误地解码,但这可能不会产生预期的音频
输出。
5. 隐私考量
请参阅 隐私
考量一节,该节位于 [WEBCODECS] 中。
6. 安全考量
请参阅 安全
考量一节,该节位于 [WEBCODECS] 中。
文档
约定
一致性要求使用
描述性断言
和 RFC 2119 术语的组合来表达。
关键字 “MUST”、“MUST NOT”、“REQUIRED”、“SHALL”、“SHALL NOT”、“SHOULD”、“SHOULD NOT”、“RECOMMENDED”、
“MAY” 和 “OPTIONAL”
在本文档的规范性部分中
应按 RFC 2119 中的描述解释。
但是,为了可读性,
这些词在本规范中并不会全部以大写字母出现。
本规范的所有文本都是规范性的,
但明确标记为非规范性的章节、示例和注释除外。[RFC2119]
本规范中的示例用 “for example” 一词引入,
或通过 class="example"
与规范性文本分开,
如下所示:
资料性注释以 “Note” 一词开头,
并通过 class="note"
与规范性文本分开,
如下所示:
Note,这是一个资料性注释。
索引
由引用定义的
术语
-
[WEBCODECS] 定义了以下术语:
- "key"
- EncodedAudioChunk
- [[internal data]]
- [[type]]
- description
- numberOfChannels
- sampleRate
参考文献
规范性参考文献
- [RFC2119]
- S. Bradner. Key words for use in RFCs to
Indicate Requirement Levels. 1997 年 3 月. Best Current Practice. URL: https://datatracker.ietf.org/doc/html/rfc2119
- [WEBCODECS]
- Paul Adenot; Eugene Zemtsov. WebCodecs. 2025 年 4
月
17 日. WD. URL: https://www.w3.org/TR/webcodecs/
- [MP3]
- ISO/IEC 13818-3:1998 - Information technology —
Generic coding of moving pictures and associated audio information — Part 3: Audio.
1998-04. URL: https://www.iso.org/standard/26797.html
- [WEBCODECS-CODEC-REGISTRY]
- Paul Adenot; Bernard Aboba. WebCodecs Codec
Registry. 2024 年 9 月 9 日. DRY. URL: https://www.w3.org/TR/webcodecs-codec-registry/