Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 38 additions & 2 deletions index.src.html
Original file line number Diff line number Diff line change
Expand Up @@ -2441,7 +2441,7 @@
EncodedAudioChunk Interface {#encodedaudiochunk-interface}
------------------------------------------------------------
<xmp class='idl'>
[Exposed=(Window,DedicatedWorker)]
[Exposed=(Window,DedicatedWorker), Serializable]
interface EncodedAudioChunk {
constructor(EncodedAudioChunkInit init);
readonly attribute EncodedAudioChunkType type;
Expand Down Expand Up @@ -2510,10 +2510,28 @@
greater than in |destination|, throw a {{TypeError}}.
2. Copy the {{EncodedAudioChunk/[[internal data]]}} into |destination|.

### Serialization ###{#encodedaudiochunk-serialization}
: The {{EncodedAudioChunk}} [=serialization steps=] (with |value|, |serialized|,
and |forStorage|) are:
:: 1. If |forStorage| is `true`, throw a {{TypeError}}.
2. For each {{EncodedAudioChunk}} internal slot in |value|, assign the value
of each internal slot to a field in |serialized| with the same name as
the internal slot.

: The {{EncodedAudioChunk}} [=deserialization steps=] (with |serialized| and
|value|) are:
:: 1. For all named fields in |serialized|, assign the value of each named field
to the {{EncodedAudioChunk}} internal slot in |value| with the same name
as the named field.

NOTE: Since {{EncodedAudioChunk}}s are immutable, User Agents may choose to
implement serialization using a reference counting model similar to
[[#audiodata-transfer-serialization]].

EncodedVideoChunk Interface{#encodedvideochunk-interface}
-----------------------------------------------------------
<xmp class='idl'>
[Exposed=(Window,DedicatedWorker)]
[Exposed=(Window,DedicatedWorker), Serializable]
interface EncodedVideoChunk {
constructor(EncodedVideoChunkInit init);
readonly attribute EncodedVideoChunkType type;
Expand Down Expand Up @@ -2584,6 +2602,24 @@
{{TypeError}}.
2. Copy the {{EncodedVideoChunk/[[internal data]]}} into |destination|.

### Serialization ###{#encodedvideochunk-serialization}
: The {{EncodedVideoChunk}} [=serialization steps=] (with |value|, |serialized|,
and |forStorage|) are:
:: 1. If |forStorage| is `true`, throw a {{TypeError}}.
2. For each {{EncodedVideoChunk}} internal slot in |value|, assign the value
of each internal slot to a field in |serialized| with the same name as
the internal slot.

: The {{EncodedVideoChunk}} [=deserialization steps=] (with |serialized| and
|value|) are:
:: 1. For all named fields in |serialized|, assign the value of each named field
to the {{EncodedVideoChunk}} internal slot in |value| with the same name
as the named field.

NOTE: Since {{EncodedVideoChunk}}s are immutable, User Agents may choose to
implement serialization using a reference counting model similar to
[[#videoframe-transfer-serialization]].


Raw Media Interfaces {#raw-media-interfaces}
====================================================
Expand Down