Skip to content

Commit c078e97

Browse files
authored
{Video|Audio}TrackConfiguration should be a dictionary (#99)
Partially address Issue #98 by making the configuration objects `dictionary` types rather than `interfaces.
1 parent f2b834d commit c078e97

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

Diff for: TrackConfiguration/README.md

+12-12
Original file line numberDiff line numberDiff line change
@@ -33,20 +33,20 @@ A page would like to validate that its encoder and muxer generates media whose `
3333
The `HTMLMediaElement`’s `VideoTrack` and `AudioTrack` objects would vend a new attribute `VideoTrackConfiguration` and `AudioTrackConfiguration`.
3434

3535
```
36-
interface VideoTrackConfiguration {
37-
readonly attribute DOMString codec;
38-
readonly attribute unsigned long long bitrate;
39-
readonly attribute double framerate;
40-
readonly attribute unsigned long width;
41-
readonly attribute unsigned long height;
42-
readonly attribute VideoColorSpace colorSpace;
36+
dictionary VideoTrackConfiguration {
37+
DOMString codec;
38+
unsigned long long bitrate;
39+
double framerate;
40+
unsigned long width;
41+
unsigned long height;
42+
VideoColorSpace colorSpace;
4343
};
4444
45-
interface AudioTrackConfiguration {
46-
readonly attribute DOMString codec;
47-
readonly attribute unsigned long long bitrate;
48-
readonly attribute unsigned long sampleRate;
49-
readonly attribute unsigned long numberOfChannels;
45+
dictionary AudioTrackConfiguration {
46+
DOMString codec;
47+
unsigned long long bitrate;
48+
unsigned long sampleRate;
49+
unsigned long numberOfChannels;
5050
};
5151
5252
partial interface VideoTrack {

0 commit comments

Comments
 (0)