Skip to content

Commit

Permalink
{Video|Audio}TrackConfiguration should be a dictionary (#99)
Browse files Browse the repository at this point in the history
Partially address Issue #98 by making the configuration objects `dictionary` types rather than `interfaces.
  • Loading branch information
jernoble authored Jun 7, 2023
1 parent f2b834d commit c078e97
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions TrackConfiguration/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,20 +33,20 @@ A page would like to validate that its encoder and muxer generates media whose `
The `HTMLMediaElement`’s `VideoTrack` and `AudioTrack` objects would vend a new attribute `VideoTrackConfiguration` and `AudioTrackConfiguration`.

```
interface VideoTrackConfiguration {
readonly attribute DOMString codec;
readonly attribute unsigned long long bitrate;
readonly attribute double framerate;
readonly attribute unsigned long width;
readonly attribute unsigned long height;
readonly attribute VideoColorSpace colorSpace;
dictionary VideoTrackConfiguration {
DOMString codec;
unsigned long long bitrate;
double framerate;
unsigned long width;
unsigned long height;
VideoColorSpace colorSpace;
};
interface AudioTrackConfiguration {
readonly attribute DOMString codec;
readonly attribute unsigned long long bitrate;
readonly attribute unsigned long sampleRate;
readonly attribute unsigned long numberOfChannels;
dictionary AudioTrackConfiguration {
DOMString codec;
unsigned long long bitrate;
unsigned long sampleRate;
unsigned long numberOfChannels;
};
partial interface VideoTrack {
Expand Down

0 comments on commit c078e97

Please sign in to comment.