@webref/idl 3.19.0 → 3.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@webref/idl",
3
3
  "description": "Web IDL definitions of the web platform",
4
- "version": "3.19.0",
4
+ "version": "3.20.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/w3c/webref.git"
@@ -7,10 +7,15 @@ partial interface MediaDevices {
7
7
  Promise<MediaStream> getDisplayMedia(optional DisplayMediaStreamOptions options = {});
8
8
  };
9
9
 
10
+ enum CaptureStartFocusBehavior {
11
+ "focus-captured-surface",
12
+ "no-focus-change"
13
+ };
14
+
10
15
  [Exposed=Window, SecureContext]
11
16
  interface CaptureController {
12
17
  constructor();
13
- // TODO: Add setFocusBehavior() in a separate PR.
18
+ undefined setFocusBehavior(CaptureStartFocusBehavior focusBehavior);
14
19
  };
15
20
 
16
21
  enum SelfCapturePreferenceEnum {
package/webaudio.idl CHANGED
@@ -64,16 +64,23 @@ enum AudioContextLatencyCategory {
64
64
  "playback"
65
65
  };
66
66
 
67
+ enum AudioSinkType {
68
+ "none"
69
+ };
70
+
67
71
  [Exposed=Window]
68
72
  interface AudioContext : BaseAudioContext {
69
73
  constructor (optional AudioContextOptions contextOptions = {});
70
74
  readonly attribute double baseLatency;
71
75
  readonly attribute double outputLatency;
76
+ [SecureContext] readonly attribute (DOMString or AudioSinkInfo) sinkId;
72
77
  [SecureContext] readonly attribute AudioRenderCapacity renderCapacity;
78
+ attribute EventHandler onsinkchange;
73
79
  AudioTimestamp getOutputTimestamp ();
74
80
  Promise<undefined> resume ();
75
81
  Promise<undefined> suspend ();
76
82
  Promise<undefined> close ();
83
+ [SecureContext] Promise<undefined> setSinkId ((DOMString or AudioSinkOptions) sinkId);
77
84
  MediaElementAudioSourceNode createMediaElementSource (HTMLMediaElement mediaElement);
78
85
  MediaStreamAudioSourceNode createMediaStreamSource (MediaStream mediaStream);
79
86
  MediaStreamTrackAudioSourceNode createMediaStreamTrackSource (
@@ -84,6 +91,16 @@ interface AudioContext : BaseAudioContext {
84
91
  dictionary AudioContextOptions {
85
92
  (AudioContextLatencyCategory or double) latencyHint = "interactive";
86
93
  float sampleRate;
94
+ (DOMString or AudioSinkOptions) sinkId;
95
+ };
96
+
97
+ dictionary AudioSinkOptions {
98
+ required AudioSinkType type;
99
+ };
100
+
101
+ [Exposed=Window]
102
+ interface AudioSinkInfo {
103
+ readonly attribute AudioSinkType type;
87
104
  };
88
105
 
89
106
  dictionary AudioTimestamp {
@@ -0,0 +1,17 @@
1
+ // GENERATED CONTENT - DO NOT EDIT
2
+ // Content was automatically extracted by Reffy into webref
3
+ // (https://github.com/w3c/webref)
4
+ // Source: AAC WebCodecs Registration (https://w3c.github.io/webcodecs/aac_codec_registration.html)
5
+
6
+ partial dictionary AudioEncoderConfig {
7
+ AacEncoderConfig aac;
8
+ };
9
+
10
+ dictionary AacEncoderConfig {
11
+ AacBitstreamFormat format = "aac";
12
+ };
13
+
14
+ enum AacBitstreamFormat {
15
+ "aac",
16
+ "adts",
17
+ };
@@ -0,0 +1,17 @@
1
+ // GENERATED CONTENT - DO NOT EDIT
2
+ // Content was automatically extracted by Reffy into webref
3
+ // (https://github.com/w3c/webref)
4
+ // Source: AVC (H.264) WebCodecs Registration (https://w3c.github.io/webcodecs/avc_codec_registration.html)
5
+
6
+ partial dictionary VideoEncoderConfig {
7
+ AvcEncoderConfig avc;
8
+ };
9
+
10
+ dictionary AvcEncoderConfig {
11
+ AvcBitstreamFormat format = "avc";
12
+ };
13
+
14
+ enum AvcBitstreamFormat {
15
+ "annexb",
16
+ "avc",
17
+ };
@@ -0,0 +1,17 @@
1
+ // GENERATED CONTENT - DO NOT EDIT
2
+ // Content was automatically extracted by Reffy into webref
3
+ // (https://github.com/w3c/webref)
4
+ // Source: HEVC (H.265) WebCodecs Registration (https://w3c.github.io/webcodecs/hevc_codec_registration.html)
5
+
6
+ partial dictionary VideoEncoderConfig {
7
+ HevcEncoderConfig hevc;
8
+ };
9
+
10
+ dictionary HevcEncoderConfig {
11
+ HevcBitstreamFormat format = "hevc";
12
+ };
13
+
14
+ enum HevcBitstreamFormat {
15
+ "annexb",
16
+ "hevc",
17
+ };
@@ -0,0 +1,18 @@
1
+ // GENERATED CONTENT - DO NOT EDIT
2
+ // Content was automatically extracted by Reffy into webref
3
+ // (https://github.com/w3c/webref)
4
+ // Source: Opus WebCodecs Registration (https://w3c.github.io/webcodecs/opus_codec_registration.html)
5
+
6
+ partial dictionary AudioEncoderConfig {
7
+ OpusEncoderConfig opus;
8
+ };
9
+
10
+ dictionary OpusEncoderConfig {
11
+ OpusBitstreamFormat format = "opus";
12
+ [EnforceRange] unsigned long frameDuration;
13
+ };
14
+
15
+ enum OpusBitstreamFormat {
16
+ "opus",
17
+ "ogg",
18
+ };
package/webcodecs.idl CHANGED
@@ -146,7 +146,7 @@ dictionary AudioDecoderConfig {
146
146
 
147
147
  dictionary VideoDecoderConfig {
148
148
  required DOMString codec;
149
- BufferSource description;
149
+ [AllowShared] BufferSource description;
150
150
  [EnforceRange] unsigned long codedWidth;
151
151
  [EnforceRange] unsigned long codedHeight;
152
152
  [EnforceRange] unsigned long displayAspectWidth;
@@ -400,29 +400,35 @@ interface VideoColorSpace {
400
400
  };
401
401
 
402
402
  dictionary VideoColorSpaceInit {
403
- VideoColorPrimaries primaries;
404
- VideoTransferCharacteristics transfer;
405
- VideoMatrixCoefficients matrix;
406
- boolean fullRange;
403
+ VideoColorPrimaries? primaries;
404
+ VideoTransferCharacteristics? transfer;
405
+ VideoMatrixCoefficients? matrix;
406
+ boolean? fullRange;
407
407
  };
408
408
 
409
409
  enum VideoColorPrimaries {
410
- "bt709", // BT.709, sRGB
411
- "bt470bg", // BT.601 PAL
412
- "smpte170m", // BT.601 NTSC
410
+ "bt709",
411
+ "bt470bg",
412
+ "smpte170m",
413
+ "bt2020",
414
+ "smpte432",
413
415
  };
414
416
 
415
417
  enum VideoTransferCharacteristics {
416
- "bt709", // BT.709
417
- "smpte170m", // BT.601 (functionally the same as bt709)
418
- "iec61966-2-1", // sRGB
418
+ "bt709",
419
+ "smpte170m",
420
+ "iec61966-2-1",
421
+ "linear",
422
+ "pq",
423
+ "hlg",
419
424
  };
420
425
 
421
426
  enum VideoMatrixCoefficients {
422
- "rgb", // sRGB
423
- "bt709", // BT.709
424
- "bt470bg", // BT.601 PAL
425
- "smpte170m", // BT.601 NTSC (functionally the same as bt470bg)
427
+ "rgb",
428
+ "bt709",
429
+ "bt470bg",
430
+ "smpte170m",
431
+ "bt2020-ncl",
426
432
  };
427
433
 
428
434
  [Exposed=(Window,DedicatedWorker), SecureContext]
package/webrtc.idl CHANGED
@@ -316,6 +316,7 @@ dictionary RTCRtpCodingParameters {
316
316
  dictionary RTCRtpEncodingParameters : RTCRtpCodingParameters {
317
317
  boolean active = true;
318
318
  unsigned long maxBitrate;
319
+ double maxFramerate;
319
320
  double scaleResolutionDownBy;
320
321
  };
321
322