Skip to content

Commit

Permalink
Add EventHandler for Encoder/Decoder changes
Browse files Browse the repository at this point in the history
Fixes #604

Work-in-progress, do not merge.
  • Loading branch information
aboba authored Mar 1, 2023
1 parent 704c167 commit 16ac35a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions index.src.html
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,7 @@
readonly attribute CodecState state;
readonly attribute unsigned long decodeQueueSize;
attribute EventHandler ondequeue;
attribute EventHandler onDecoderChange;

undefined configure(AudioDecoderConfig config);
undefined decode(EncodedAudioChunk chunk);
Expand Down Expand Up @@ -589,6 +590,7 @@
readonly attribute CodecState state;
readonly attribute unsigned long decodeQueueSize;
attribute EventHandler ondequeue;
attribute EventHandler onDecoderChange;

undefined configure(VideoDecoderConfig config);
undefined decode(EncodedVideoChunk chunk);
Expand Down Expand Up @@ -943,6 +945,7 @@
readonly attribute CodecState state;
readonly attribute unsigned long encodeQueueSize;
attribute EventHandler ondequeue;
attribute EventHandler onEncoderChange;

undefined configure(AudioEncoderConfig config);
undefined encode(AudioData data);
Expand Down Expand Up @@ -1316,6 +1319,7 @@
readonly attribute CodecState state;
readonly attribute unsigned long encodeQueueSize;
attribute EventHandler ondequeue;
attribute EventHandler onEncoderChange;

undefined configure(VideoEncoderConfig config);
undefined encode(VideoFrame frame, optional VideoEncoderEncodeOptions options = {});
Expand Down

0 comments on commit 16ac35a

Please sign in to comment.