Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add EventHandler for Encoder/Decoder power efficiency changes #645

Closed
wants to merge 2 commits into from
Closed
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
21 changes: 20 additions & 1 deletion 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 @@ -353,7 +354,10 @@
: <dfn event for=AudioDecoder>dequeue</dfn>
:: Fired at the {{AudioDecoder}} when the {{AudioDecoder/decodeQueueSize}} has
decreased.


: <dfn event for=AudioDecoder>onDecoderChange</dfn>
:: Fired at the {{AudioDecoder}} when the {{AudioDecoder/powerEfficient}} or
{{AudioDecoder/decoderId}} value changes.

Methods {#audiodecoder-methods}
-------------------------------
Expand Down Expand Up @@ -589,6 +593,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 @@ -684,6 +689,10 @@
: <dfn event for=VideoDecoder>dequeue</dfn>
:: Fired at the {{VideoDecoder}} when the {{VideoDecoder/decodeQueueSize}} has
decreased.

: <dfn event for=VideoDecoder>onDecoderChange</dfn>
:: Fired at the {{VideoDecoder}} when the {{VideoDecoder/powerEfficient}} or
{{VideoDecoder/decoderId}} value changes.

Methods {#videodecoder-methods}
-------------------------------
Expand Down Expand Up @@ -943,6 +952,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 @@ -1038,6 +1048,10 @@
: <dfn event for=AudioEncoder>dequeue</dfn>
:: Fired at the {{AudioEncoder}} when the {{AudioEncoder/encodeQueueSize}} has
decreased.

: <dfn event for=AudioEncoder>onEncoderChange</dfn>
:: Fired at the {{AudioEncoder}} when the {{AudioEncoder/powerEfficient}} or
{{AudioEncoder/decoderId}} value changes.

Methods {#audioencoder-methods}
-------------------------------
Expand Down Expand Up @@ -1316,6 +1330,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 Expand Up @@ -1411,6 +1426,10 @@
: <dfn event for=VideoEncoder>dequeue</dfn>
:: Fired at the {{VideoEncoder}} when the {{VideoEncoder/encodeQueueSize}} has
decreased.

: <dfn event for=VideoEncoder>onEncoderChange</dfn>
:: Fired at the {{VideoEncoder}} when the {{VideoEncoder/powerEfficient}} or
{{VideoEncoder/decoderId}} value changes.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are these valid references? I don't find an attribute for powerEfficeint on the VideoEncoder or AudioEncoder. The only powerEfficient reference I find is to MediaCapabilities, but that is the capability of a query, not what is used by an encoder atm.


Methods {#videoencoder-methods}
-------------------------------
Expand Down