Skip to content

Commit

Permalink
{Video|Audio}TrackConfiguration should be a dictionary
Browse files Browse the repository at this point in the history
Partially address Issue WebKit#98 by making the configuration objects `dictionary` types rather than `interfaces.
  • Loading branch information
jernoble authored Jun 6, 2023
1 parent f2b834d commit e59db34
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 {
attribute DOMString codec;
attribute unsigned long long bitrate;
attribute double framerate;
attribute unsigned long width;
attribute unsigned long height;
attribute 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 {
attribute DOMString codec;
attribute unsigned long long bitrate;
attribute unsigned long sampleRate;
attribute unsigned long numberOfChannels;
};
partial interface VideoTrack {
Expand Down

0 comments on commit e59db34

Please sign in to comment.