@webref/idl 3.29.0 → 3.30.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/ANGLE_instanced_arrays.idl +12 -0
- package/CSP.idl +56 -0
- package/DOM-Parsing.idl +26 -0
- package/EXT_blend_minmax.idl +10 -0
- package/EXT_color_buffer_float.idl +8 -0
- package/EXT_color_buffer_half_float.idl +12 -0
- package/EXT_disjoint_timer_query.idl +30 -0
- package/EXT_disjoint_timer_query_webgl2.idl +14 -0
- package/EXT_float_blend.idl +8 -0
- package/EXT_frag_depth.idl +8 -0
- package/EXT_sRGB.idl +12 -0
- package/EXT_shader_texture_lod.idl +8 -0
- package/EXT_texture_compression_bptc.idl +12 -0
- package/EXT_texture_compression_rgtc.idl +12 -0
- package/EXT_texture_filter_anisotropic.idl +10 -0
- package/EXT_texture_norm16.idl +16 -0
- package/FedCM.idl +67 -0
- package/FileAPI.idl +100 -0
- package/IndexedDB.idl +226 -0
- package/KHR_parallel_shader_compile.idl +9 -0
- package/OES_draw_buffers_indexed.idl +26 -0
- package/OES_element_index_uint.idl +8 -0
- package/OES_fbo_render_mipmap.idl +8 -0
- package/OES_standard_derivatives.idl +9 -0
- package/OES_texture_float.idl +7 -0
- package/OES_texture_float_linear.idl +7 -0
- package/OES_texture_half_float.idl +9 -0
- package/OES_texture_half_float_linear.idl +7 -0
- package/OES_vertex_array_object.idl +18 -0
- package/OVR_multiview2.idl +14 -0
- package/SVG.idl +693 -0
- package/WEBGL_blend_equation_advanced_coherent.idl +23 -0
- package/WEBGL_clip_cull_distance.idl +20 -0
- package/WEBGL_color_buffer_float.idl +11 -0
- package/WEBGL_compressed_texture_astc.idl +41 -0
- package/WEBGL_compressed_texture_etc.idl +19 -0
- package/WEBGL_compressed_texture_etc1.idl +10 -0
- package/WEBGL_compressed_texture_pvrtc.idl +13 -0
- package/WEBGL_compressed_texture_s3tc.idl +13 -0
- package/WEBGL_compressed_texture_s3tc_srgb.idl +13 -0
- package/WEBGL_debug_renderer_info.idl +12 -0
- package/WEBGL_debug_shaders.idl +11 -0
- package/WEBGL_depth_texture.idl +9 -0
- package/WEBGL_draw_buffers.idl +46 -0
- package/WEBGL_draw_instanced_base_vertex_base_instance.idl +14 -0
- package/WEBGL_lose_context.idl +10 -0
- package/WEBGL_multi_draw.idl +32 -0
- package/WEBGL_multi_draw_instanced_base_vertex_base_instance.idl +26 -0
- package/WEBGL_provoking_vertex.idl +13 -0
- package/WebCryptoAPI.idl +237 -0
- package/accelerometer.idl +40 -0
- package/ambient-light.idl +14 -0
- package/anchors.idl +37 -0
- package/attribution-reporting-api.idl +12 -0
- package/audio-output.idl +17 -0
- package/autoplay-detection.idl +19 -0
- package/background-fetch.idl +89 -0
- package/background-sync.idl +30 -0
- package/badging.idl +19 -0
- package/battery-status.idl +21 -0
- package/beacon.idl +8 -0
- package/capture-handle-identity.idl +27 -0
- package/clipboard-apis.idl +51 -0
- package/close-watcher.idl +19 -0
- package/compat.idl +13 -0
- package/compression.idl +16 -0
- package/compute-pressure.idl +40 -0
- package/console.idl +34 -0
- package/contact-picker.idl +44 -0
- package/content-index.idl +46 -0
- package/cookie-store.idl +110 -0
- package/crash-reporting.idl +10 -0
- package/credential-management.idl +105 -0
- package/csp-embedded-enforcement.idl +8 -0
- package/csp-next.idl +21 -0
- package/css-animation-worklet.idl +37 -0
- package/css-animations-2.idl +9 -0
- package/css-animations.idl +47 -0
- package/css-cascade-6.idl +10 -0
- package/css-cascade.idl +18 -0
- package/css-color-5.idl +12 -0
- package/css-conditional.idl +27 -0
- package/css-contain-3.idl +10 -0
- package/css-contain.idl +13 -0
- package/css-counter-styles.idl +23 -0
- package/css-font-loading.idl +134 -0
- package/css-fonts.idl +36 -0
- package/css-highlight-api.idl +27 -0
- package/css-images-4.idl +8 -0
- package/css-layout-api.idl +144 -0
- package/css-masking.idl +20 -0
- package/css-nav.idl +48 -0
- package/css-nesting.idl +10 -0
- package/css-paint-api.idl +39 -0
- package/css-parser-api.idl +76 -0
- package/css-properties-values-api.idl +23 -0
- package/css-pseudo.idl +16 -0
- package/css-regions.idl +29 -0
- package/css-shadow-parts.idl +8 -0
- package/css-transitions-2.idl +9 -0
- package/css-transitions.idl +25 -0
- package/css-typed-om.idl +423 -0
- package/css-view-transitions.idl +18 -0
- package/cssom-view.idl +200 -0
- package/cssom.idl +159 -0
- package/custom-state-pseudo-class.idl +14 -0
- package/datacue.idl +12 -0
- package/deprecation-reporting.idl +15 -0
- package/device-memory.idl +14 -0
- package/device-posture.idl +21 -0
- package/digital-goods.idl +44 -0
- package/dom.idl +645 -0
- package/edit-context.idl +111 -0
- package/element-timing.idl +22 -0
- package/encoding.idl +59 -0
- package/encrypted-media.idl +125 -0
- package/entries-api.idl +71 -0
- package/event-timing.idl +29 -0
- package/eyedropper-api.idl +18 -0
- package/fenced-frame.idl +49 -0
- package/fetch.idl +117 -0
- package/fido.idl +47 -0
- package/file-system-access.idl +72 -0
- package/filter-effects.idl +341 -0
- package/font-metrics-api.idl +42 -0
- package/fs.idl +97 -0
- package/fullscreen.idl +35 -0
- package/gamepad-extensions.idl +71 -0
- package/gamepad.idl +49 -0
- package/generic-sensor.idl +60 -0
- package/geolocation-sensor.idl +47 -0
- package/geolocation.idl +65 -0
- package/geometry.idl +290 -0
- package/get-installed-related-apps.idl +16 -0
- package/gpc-spec.idl +10 -0
- package/gyroscope.idl +24 -0
- package/hr-time.idl +19 -0
- package/html-media-capture.idl +8 -0
- package/html.idl +2716 -0
- package/idle-detection.idl +31 -0
- package/image-capture.idl +160 -0
- package/image-resource.idl +11 -0
- package/ink-enhancement.idl +32 -0
- package/input-device-capabilities.idl +24 -0
- package/input-events.idl +14 -0
- package/intersection-observer.idl +46 -0
- package/intervention-reporting.idl +14 -0
- package/is-input-pending.idl +16 -0
- package/js-self-profiling.idl +44 -0
- package/keyboard-lock.idl +14 -0
- package/keyboard-map.idl +15 -0
- package/largest-contentful-paint.idl +15 -0
- package/layout-instability.idl +20 -0
- package/local-font-access.idl +24 -0
- package/longtasks.idl +19 -0
- package/magnetometer.idl +46 -0
- package/manifest-incubations.idl +24 -0
- package/mathml-core.idl +9 -0
- package/media-capabilities.idl +115 -0
- package/media-playback-quality.idl +18 -0
- package/media-source.idl +91 -0
- package/mediacapture-automation.idl +36 -0
- package/mediacapture-fromelement.idl +17 -0
- package/mediacapture-handle-actions.idl +31 -0
- package/mediacapture-region.idl +15 -0
- package/mediacapture-streams.idl +248 -0
- package/mediacapture-transform.idl +23 -0
- package/mediacapture-viewport.idl +14 -0
- package/mediasession.idl +84 -0
- package/mediastream-recording.idl +60 -0
- package/model-element.idl +9 -0
- package/mst-content-hint.idl +18 -0
- package/navigation-timing.idl +71 -0
- package/netinfo.idl +43 -0
- package/notifications.idl +101 -0
- package/orientation-event.idl +82 -0
- package/orientation-sensor.idl +35 -0
- package/package.json +1 -1
- package/page-lifecycle.idl +19 -0
- package/paint-timing.idl +7 -0
- package/payment-handler.idl +131 -0
- package/payment-request.idl +112 -0
- package/performance-measure-memory.idl +30 -0
- package/performance-timeline.idl +49 -0
- package/periodic-background-sync.idl +34 -0
- package/permissions-policy.idl +29 -0
- package/permissions-request.idl +8 -0
- package/permissions-revoke.idl +8 -0
- package/permissions.idl +41 -0
- package/picture-in-picture.idl +41 -0
- package/pointerevents.idl +64 -0
- package/pointerlock.idl +28 -0
- package/portals.idl +50 -0
- package/prefer-current-tab.idl +8 -0
- package/prerendering-revamped.idl +15 -0
- package/presentation-api.idl +95 -0
- package/private-click-measurement.idl +8 -0
- package/proximity.idl +18 -0
- package/push-api.idl +93 -0
- package/raw-camera-access.idl +18 -0
- package/referrer-policy.idl +16 -0
- package/remote-playback.idl +32 -0
- package/reporting.idl +39 -0
- package/requestStorageAccessForOrigin.idl +12 -0
- package/requestidlecallback.idl +20 -0
- package/resize-observer.idl +37 -0
- package/resource-timing.idl +40 -0
- package/sanitizer-api.idl +38 -0
- package/savedata.idl +10 -0
- package/scheduling-apis.idl +57 -0
- package/screen-capture.idl +85 -0
- package/screen-orientation.idl +35 -0
- package/screen-wake-lock.idl +24 -0
- package/scroll-animations.idl +41 -0
- package/scroll-to-text-fragment.idl +12 -0
- package/secure-payment-confirmation.idl +52 -0
- package/selection-api.idl +46 -0
- package/serial.idl +85 -0
- package/server-timing.idl +17 -0
- package/service-workers.idl +240 -0
- package/shape-detection-api.idl +69 -0
- package/speech-api.idl +202 -0
- package/storage-access.idl +9 -0
- package/storage.idl +25 -0
- package/streams.idl +222 -0
- package/svg-animations.idl +68 -0
- package/testutils.idl +9 -0
- package/text-detection-api.idl +18 -0
- package/touch-events.idl +79 -0
- package/trust-token-api.idl +29 -0
- package/trusted-types.idl +71 -0
- package/turtledove.idl +63 -0
- package/ua-client-hints.idl +44 -0
- package/uievents.idl +248 -0
- package/url.idl +44 -0
- package/urlpattern.idl +59 -0
- package/user-timing.idl +34 -0
- package/vibration.idl +10 -0
- package/video-rvfc.idl +27 -0
- package/virtual-keyboard.idl +21 -0
- package/wai-aria.idl +59 -0
- package/wasm-js-api.idl +110 -0
- package/wasm-web-api.idl +11 -0
- package/web-animations-2.idl +102 -0
- package/web-animations.idl +149 -0
- package/web-app-launch.idl +19 -0
- package/web-bluetooth.idl +251 -0
- package/web-locks.idl +50 -0
- package/web-nfc.idl +81 -0
- package/web-otp.idl +21 -0
- package/web-share.idl +16 -0
- package/webaudio.idl +674 -0
- package/webauthn.idl +349 -0
- package/webcodecs-aac-codec-registration.idl +17 -0
- package/webcodecs-avc-codec-registration.idl +17 -0
- package/webcodecs-flac-codec-registration.idl +13 -0
- package/webcodecs-hevc-codec-registration.idl +17 -0
- package/webcodecs-opus-codec-registration.idl +22 -0
- package/webcodecs-vp9-codec-registration.idl +12 -0
- package/webcodecs.idl +500 -0
- package/webcrypto-secure-curves.idl +8 -0
- package/webdriver.idl +9 -0
- package/webgl1.idl +745 -0
- package/webgl2.idl +582 -0
- package/webgpu.idl +1267 -0
- package/webhid.idl +127 -0
- package/webidl.idl +48 -0
- package/webmidi.idl +91 -0
- package/webnn.idl +549 -0
- package/webrtc-encoded-transform.idl +127 -0
- package/webrtc-ice.idl +24 -0
- package/webrtc-identity.idl +97 -0
- package/webrtc-priority.idl +24 -0
- package/webrtc-stats.idl +288 -0
- package/webrtc-svc.idl +8 -0
- package/webrtc.idl +628 -0
- package/websockets.idl +48 -0
- package/webtransport.idl +143 -0
- package/webusb.idl +249 -0
- package/webvtt.idl +40 -0
- package/webxr-ar-module.idl +29 -0
- package/webxr-depth-sensing.idl +57 -0
- package/webxr-dom-overlays.idl +31 -0
- package/webxr-gamepads-module.idl +8 -0
- package/webxr-hand-input.idl +66 -0
- package/webxr-hit-test.idl +69 -0
- package/webxr-lighting-estimation.idl +39 -0
- package/webxr.idl +295 -0
- package/webxrlayers.idl +212 -0
- package/window-controls-overlay.idl +28 -0
- package/window-placement.idl +42 -0
- package/xhr.idl +99 -0
package/webnn.idl
ADDED
|
@@ -0,0 +1,549 @@
|
|
|
1
|
+
// GENERATED CONTENT - DO NOT EDIT
|
|
2
|
+
// Content was automatically extracted by Reffy into webref
|
|
3
|
+
// (https://github.com/w3c/webref)
|
|
4
|
+
// Source: Web Neural Network API (https://webmachinelearning.github.io/webnn/)
|
|
5
|
+
|
|
6
|
+
interface mixin NavigatorML {
|
|
7
|
+
[SecureContext, SameObject] readonly attribute ML ml;
|
|
8
|
+
};
|
|
9
|
+
Navigator includes NavigatorML;
|
|
10
|
+
WorkerNavigator includes NavigatorML;
|
|
11
|
+
|
|
12
|
+
enum MLDeviceType {
|
|
13
|
+
"cpu",
|
|
14
|
+
"gpu"
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
enum MLPowerPreference {
|
|
18
|
+
"default",
|
|
19
|
+
"high-performance",
|
|
20
|
+
"low-power"
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
dictionary MLContextOptions {
|
|
24
|
+
MLDeviceType deviceType = "cpu";
|
|
25
|
+
MLPowerPreference powerPreference = "default";
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
[SecureContext, Exposed=(Window, DedicatedWorker)]
|
|
29
|
+
interface ML {
|
|
30
|
+
Promise<MLContext> createContext(optional MLContextOptions options = {});
|
|
31
|
+
Promise<MLContext> createContext(GPUDevice gpuDevice);
|
|
32
|
+
|
|
33
|
+
[Exposed=(DedicatedWorker)]
|
|
34
|
+
MLContext createContextSync(optional MLContextOptions options = {});
|
|
35
|
+
[Exposed=(DedicatedWorker)]
|
|
36
|
+
MLContext createContextSync(GPUDevice gpuDevice);
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
[SecureContext, Exposed=(Window, DedicatedWorker)]
|
|
40
|
+
interface MLGraph {};
|
|
41
|
+
|
|
42
|
+
enum MLInputOperandLayout {
|
|
43
|
+
"nchw",
|
|
44
|
+
"nhwc"
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
enum MLOperandType {
|
|
48
|
+
"float32",
|
|
49
|
+
"float16",
|
|
50
|
+
"int32",
|
|
51
|
+
"uint32",
|
|
52
|
+
"int8",
|
|
53
|
+
"uint8"
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
dictionary MLOperandDescriptor {
|
|
57
|
+
// The operand type.
|
|
58
|
+
required MLOperandType type;
|
|
59
|
+
|
|
60
|
+
// The dimensions field is only required for tensor operands.
|
|
61
|
+
sequence<unsigned long> dimensions;
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
[SecureContext, Exposed=(Window, DedicatedWorker)]
|
|
65
|
+
interface MLOperand {};
|
|
66
|
+
|
|
67
|
+
[SecureContext, Exposed=(Window, DedicatedWorker)]
|
|
68
|
+
interface MLActivation {};
|
|
69
|
+
|
|
70
|
+
typedef record<DOMString, ArrayBufferView> MLNamedArrayBufferViews;
|
|
71
|
+
|
|
72
|
+
[SecureContext, Exposed=(Window, DedicatedWorker)]
|
|
73
|
+
interface MLContext {};
|
|
74
|
+
|
|
75
|
+
partial interface MLContext {
|
|
76
|
+
[Exposed=(DedicatedWorker)]
|
|
77
|
+
undefined computeSync(
|
|
78
|
+
MLGraph graph, MLNamedArrayBufferViews inputs, MLNamedArrayBufferViews outputs);
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
dictionary MLComputeResult {
|
|
82
|
+
MLNamedArrayBufferViews inputs;
|
|
83
|
+
MLNamedArrayBufferViews outputs;
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
partial interface MLContext {
|
|
87
|
+
Promise<MLComputeResult> compute(
|
|
88
|
+
MLGraph graph, MLNamedArrayBufferViews inputs, MLNamedArrayBufferViews outputs);
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
partial interface MLContext {
|
|
92
|
+
MLCommandEncoder createCommandEncoder();
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
typedef (GPUBuffer or GPUTexture) MLGPUResource;
|
|
96
|
+
|
|
97
|
+
typedef record<DOMString, MLGPUResource> MLNamedGPUResources;
|
|
98
|
+
|
|
99
|
+
[SecureContext, Exposed=(Window, DedicatedWorker)]
|
|
100
|
+
interface MLCommandEncoder {};
|
|
101
|
+
|
|
102
|
+
partial interface MLCommandEncoder {
|
|
103
|
+
undefined initializeGraph(MLGraph graph);
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
partial interface MLCommandEncoder {
|
|
107
|
+
undefined dispatch(MLGraph graph, MLNamedGPUResources inputs, MLNamedGPUResources outputs);
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
partial interface MLCommandEncoder {
|
|
111
|
+
GPUCommandBuffer finish(optional GPUCommandBufferDescriptor descriptor = {});
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
typedef record<DOMString, MLOperand> MLNamedOperands;
|
|
115
|
+
|
|
116
|
+
dictionary MLBufferResourceView {
|
|
117
|
+
required GPUBuffer resource;
|
|
118
|
+
unsigned long long offset = 0;
|
|
119
|
+
unsigned long long size;
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
typedef (ArrayBufferView or MLBufferResourceView) MLBufferView;
|
|
123
|
+
|
|
124
|
+
[SecureContext, Exposed=(Window, DedicatedWorker)]
|
|
125
|
+
interface MLGraphBuilder {
|
|
126
|
+
// Construct the graph builder from the context.
|
|
127
|
+
constructor(MLContext context);
|
|
128
|
+
|
|
129
|
+
// Create an operand for a graph input.
|
|
130
|
+
MLOperand input(DOMString name, MLOperandDescriptor desc);
|
|
131
|
+
|
|
132
|
+
// Create an operand for a graph constant.
|
|
133
|
+
MLOperand constant(MLOperandDescriptor desc, MLBufferView bufferView);
|
|
134
|
+
|
|
135
|
+
// Create a single-value operand from the specified number of the specified type.
|
|
136
|
+
MLOperand constant(double value, optional MLOperandType type = "float32");
|
|
137
|
+
|
|
138
|
+
// Compile the graph up to the specified output operands asynchronously.
|
|
139
|
+
Promise<MLGraph> build(MLNamedOperands outputs);
|
|
140
|
+
|
|
141
|
+
// Compile the graph up to the specified output operands synchronously.
|
|
142
|
+
[Exposed=(DedicatedWorker)]
|
|
143
|
+
MLGraph buildSync(MLNamedOperands outputs);
|
|
144
|
+
};
|
|
145
|
+
|
|
146
|
+
dictionary MLBatchNormalizationOptions {
|
|
147
|
+
MLOperand scale;
|
|
148
|
+
MLOperand bias;
|
|
149
|
+
unsigned long axis = 1;
|
|
150
|
+
float epsilon = 1e-5;
|
|
151
|
+
MLActivation activation;
|
|
152
|
+
};
|
|
153
|
+
|
|
154
|
+
partial interface MLGraphBuilder {
|
|
155
|
+
MLOperand batchNormalization(MLOperand input, MLOperand mean, MLOperand variance,
|
|
156
|
+
optional MLBatchNormalizationOptions options = {});
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
dictionary MLClampOptions {
|
|
160
|
+
float minValue;
|
|
161
|
+
float maxValue;
|
|
162
|
+
};
|
|
163
|
+
|
|
164
|
+
partial interface MLGraphBuilder {
|
|
165
|
+
MLOperand clamp(MLOperand x, optional MLClampOptions options = {});
|
|
166
|
+
MLActivation clamp(optional MLClampOptions options = {});
|
|
167
|
+
};
|
|
168
|
+
|
|
169
|
+
partial interface MLGraphBuilder {
|
|
170
|
+
MLOperand concat(sequence<MLOperand> inputs, unsigned long axis);
|
|
171
|
+
};
|
|
172
|
+
|
|
173
|
+
enum MLConv2dFilterOperandLayout {
|
|
174
|
+
"oihw",
|
|
175
|
+
"hwio",
|
|
176
|
+
"ohwi",
|
|
177
|
+
"ihwo"
|
|
178
|
+
};
|
|
179
|
+
|
|
180
|
+
enum MLAutoPad {
|
|
181
|
+
"explicit",
|
|
182
|
+
"same-upper",
|
|
183
|
+
"same-lower"
|
|
184
|
+
};
|
|
185
|
+
|
|
186
|
+
dictionary MLConv2dOptions {
|
|
187
|
+
sequence<unsigned long> padding;
|
|
188
|
+
sequence<unsigned long> strides;
|
|
189
|
+
sequence<unsigned long> dilations;
|
|
190
|
+
MLAutoPad autoPad = "explicit";
|
|
191
|
+
unsigned long groups = 1;
|
|
192
|
+
MLInputOperandLayout inputLayout = "nchw";
|
|
193
|
+
MLConv2dFilterOperandLayout filterLayout = "oihw";
|
|
194
|
+
MLOperand bias;
|
|
195
|
+
MLActivation activation;
|
|
196
|
+
};
|
|
197
|
+
|
|
198
|
+
partial interface MLGraphBuilder {
|
|
199
|
+
MLOperand conv2d(MLOperand input, MLOperand filter, optional MLConv2dOptions options = {});
|
|
200
|
+
};
|
|
201
|
+
|
|
202
|
+
enum MLConvTranspose2dFilterOperandLayout {
|
|
203
|
+
"iohw",
|
|
204
|
+
"hwoi",
|
|
205
|
+
"ohwi"
|
|
206
|
+
};
|
|
207
|
+
|
|
208
|
+
dictionary MLConvTranspose2dOptions {
|
|
209
|
+
sequence<unsigned long> padding;
|
|
210
|
+
sequence<unsigned long> strides;
|
|
211
|
+
sequence<unsigned long> dilations;
|
|
212
|
+
sequence<unsigned long> outputPadding;
|
|
213
|
+
sequence<unsigned long> outputSizes;
|
|
214
|
+
MLAutoPad autoPad = "explicit";
|
|
215
|
+
unsigned long groups = 1;
|
|
216
|
+
MLInputOperandLayout inputLayout = "nchw";
|
|
217
|
+
MLConvTranspose2dFilterOperandLayout filterLayout = "iohw";
|
|
218
|
+
MLOperand bias;
|
|
219
|
+
MLActivation activation;
|
|
220
|
+
};
|
|
221
|
+
|
|
222
|
+
partial interface MLGraphBuilder {
|
|
223
|
+
MLOperand convTranspose2d(MLOperand input, MLOperand filter,
|
|
224
|
+
optional MLConvTranspose2dOptions options = {});
|
|
225
|
+
};
|
|
226
|
+
|
|
227
|
+
partial interface MLGraphBuilder {
|
|
228
|
+
MLOperand add(MLOperand a, MLOperand b);
|
|
229
|
+
MLOperand sub(MLOperand a, MLOperand b);
|
|
230
|
+
MLOperand mul(MLOperand a, MLOperand b);
|
|
231
|
+
MLOperand div(MLOperand a, MLOperand b);
|
|
232
|
+
MLOperand max(MLOperand a, MLOperand b);
|
|
233
|
+
MLOperand min(MLOperand a, MLOperand b);
|
|
234
|
+
MLOperand pow(MLOperand a, MLOperand b);
|
|
235
|
+
};
|
|
236
|
+
|
|
237
|
+
partial interface MLGraphBuilder {
|
|
238
|
+
MLOperand abs(MLOperand x);
|
|
239
|
+
MLOperand ceil(MLOperand x);
|
|
240
|
+
MLOperand cos(MLOperand x);
|
|
241
|
+
MLOperand exp(MLOperand x);
|
|
242
|
+
MLOperand floor(MLOperand x);
|
|
243
|
+
MLOperand log(MLOperand x);
|
|
244
|
+
MLOperand neg(MLOperand x);
|
|
245
|
+
MLOperand sin(MLOperand x);
|
|
246
|
+
MLOperand tan(MLOperand x);
|
|
247
|
+
};
|
|
248
|
+
|
|
249
|
+
dictionary MLEluOptions {
|
|
250
|
+
float alpha = 1;
|
|
251
|
+
};
|
|
252
|
+
|
|
253
|
+
partial interface MLGraphBuilder {
|
|
254
|
+
MLOperand elu(MLOperand x, optional MLEluOptions options = {});
|
|
255
|
+
MLActivation elu(optional MLEluOptions options = {});
|
|
256
|
+
};
|
|
257
|
+
|
|
258
|
+
dictionary MLGemmOptions {
|
|
259
|
+
MLOperand c;
|
|
260
|
+
float alpha = 1.0;
|
|
261
|
+
float beta = 1.0;
|
|
262
|
+
boolean aTranspose = false;
|
|
263
|
+
boolean bTranspose = false;
|
|
264
|
+
};
|
|
265
|
+
|
|
266
|
+
partial interface MLGraphBuilder {
|
|
267
|
+
MLOperand gemm(MLOperand a, MLOperand b, optional MLGemmOptions options = {});
|
|
268
|
+
};
|
|
269
|
+
|
|
270
|
+
enum MLGruWeightLayout {
|
|
271
|
+
"zrn", // update-reset-new gate ordering
|
|
272
|
+
"rzn" // reset-update-new gate ordering
|
|
273
|
+
};
|
|
274
|
+
|
|
275
|
+
enum MLRecurrentNetworkDirection {
|
|
276
|
+
"forward",
|
|
277
|
+
"backward",
|
|
278
|
+
"both"
|
|
279
|
+
};
|
|
280
|
+
|
|
281
|
+
dictionary MLGruOptions {
|
|
282
|
+
MLOperand bias;
|
|
283
|
+
MLOperand recurrentBias;
|
|
284
|
+
MLOperand initialHiddenState;
|
|
285
|
+
boolean resetAfter = true;
|
|
286
|
+
boolean returnSequence = false;
|
|
287
|
+
MLRecurrentNetworkDirection direction = "forward";
|
|
288
|
+
MLGruWeightLayout layout = "zrn";
|
|
289
|
+
sequence<MLActivation> activations;
|
|
290
|
+
};
|
|
291
|
+
|
|
292
|
+
partial interface MLGraphBuilder {
|
|
293
|
+
sequence<MLOperand> gru(MLOperand input, MLOperand weight, MLOperand recurrentWeight,
|
|
294
|
+
unsigned long steps, unsigned long hiddenSize,
|
|
295
|
+
optional MLGruOptions options = {});
|
|
296
|
+
};
|
|
297
|
+
|
|
298
|
+
dictionary MLGruCellOptions {
|
|
299
|
+
MLOperand bias;
|
|
300
|
+
MLOperand recurrentBias;
|
|
301
|
+
boolean resetAfter = true;
|
|
302
|
+
MLGruWeightLayout layout = "zrn";
|
|
303
|
+
sequence<MLActivation> activations;
|
|
304
|
+
};
|
|
305
|
+
|
|
306
|
+
partial interface MLGraphBuilder {
|
|
307
|
+
MLOperand gruCell(MLOperand input, MLOperand weight, MLOperand recurrentWeight,
|
|
308
|
+
MLOperand hiddenState, unsigned long hiddenSize,
|
|
309
|
+
optional MLGruCellOptions options = {});
|
|
310
|
+
};
|
|
311
|
+
|
|
312
|
+
dictionary MLHardSigmoidOptions {
|
|
313
|
+
float alpha = 0.2;
|
|
314
|
+
float beta = 0.5;
|
|
315
|
+
};
|
|
316
|
+
|
|
317
|
+
partial interface MLGraphBuilder {
|
|
318
|
+
MLOperand hardSigmoid(MLOperand x, optional MLHardSigmoidOptions options = {});
|
|
319
|
+
MLActivation hardSigmoid(optional MLHardSigmoidOptions options = {});
|
|
320
|
+
};
|
|
321
|
+
|
|
322
|
+
partial interface MLGraphBuilder {
|
|
323
|
+
MLOperand hardSwish(MLOperand x);
|
|
324
|
+
MLActivation hardSwish();
|
|
325
|
+
};
|
|
326
|
+
|
|
327
|
+
dictionary MLInstanceNormalizationOptions {
|
|
328
|
+
MLOperand scale;
|
|
329
|
+
MLOperand bias;
|
|
330
|
+
float epsilon = 1e-5;
|
|
331
|
+
MLInputOperandLayout layout = "nchw";
|
|
332
|
+
};
|
|
333
|
+
|
|
334
|
+
partial interface MLGraphBuilder {
|
|
335
|
+
MLOperand instanceNormalization(MLOperand input,
|
|
336
|
+
optional MLInstanceNormalizationOptions options = {});
|
|
337
|
+
};
|
|
338
|
+
|
|
339
|
+
dictionary MLLeakyReluOptions {
|
|
340
|
+
float alpha = 0.01;
|
|
341
|
+
};
|
|
342
|
+
|
|
343
|
+
partial interface MLGraphBuilder {
|
|
344
|
+
MLOperand leakyRelu(MLOperand x, optional MLLeakyReluOptions options = {});
|
|
345
|
+
MLActivation leakyRelu(optional MLLeakyReluOptions options = {});
|
|
346
|
+
};
|
|
347
|
+
|
|
348
|
+
dictionary MLLinearOptions {
|
|
349
|
+
float alpha = 1;
|
|
350
|
+
float beta = 0;
|
|
351
|
+
};
|
|
352
|
+
|
|
353
|
+
partial interface MLGraphBuilder {
|
|
354
|
+
MLOperand linear(MLOperand x, optional MLLinearOptions options = {});
|
|
355
|
+
MLActivation linear(optional MLLinearOptions options = {});
|
|
356
|
+
};
|
|
357
|
+
|
|
358
|
+
enum MLLstmWeightLayout {
|
|
359
|
+
"iofg", // input-output-forget-cell gate ordering
|
|
360
|
+
"ifgo" // input-forget-cell-output gate ordering
|
|
361
|
+
};
|
|
362
|
+
|
|
363
|
+
dictionary MLLstmOptions {
|
|
364
|
+
MLOperand bias;
|
|
365
|
+
MLOperand recurrentBias;
|
|
366
|
+
MLOperand peepholeWeight;
|
|
367
|
+
MLOperand initialHiddenState;
|
|
368
|
+
MLOperand initialCellState;
|
|
369
|
+
boolean returnSequence = false;
|
|
370
|
+
MLRecurrentNetworkDirection direction = "forward";
|
|
371
|
+
MLLstmWeightLayout layout = "iofg";
|
|
372
|
+
sequence<MLActivation> activations;
|
|
373
|
+
};
|
|
374
|
+
|
|
375
|
+
partial interface MLGraphBuilder {
|
|
376
|
+
sequence<MLOperand> lstm(MLOperand input, MLOperand weight, MLOperand recurrentWeight,
|
|
377
|
+
unsigned long steps, unsigned long hiddenSize,
|
|
378
|
+
optional MLLstmOptions options = {});
|
|
379
|
+
};
|
|
380
|
+
|
|
381
|
+
dictionary MLLstmCellOptions {
|
|
382
|
+
MLOperand bias;
|
|
383
|
+
MLOperand recurrentBias;
|
|
384
|
+
MLOperand peepholeWeight;
|
|
385
|
+
MLLstmWeightLayout layout = "iofg";
|
|
386
|
+
sequence<MLActivation> activations;
|
|
387
|
+
};
|
|
388
|
+
|
|
389
|
+
partial interface MLGraphBuilder {
|
|
390
|
+
sequence<MLOperand> lstmCell(MLOperand input, MLOperand weight, MLOperand recurrentWeight,
|
|
391
|
+
MLOperand hiddenState, MLOperand cellState, unsigned long hiddenSize,
|
|
392
|
+
optional MLLstmCellOptions options = {});
|
|
393
|
+
};
|
|
394
|
+
|
|
395
|
+
partial interface MLGraphBuilder {
|
|
396
|
+
MLOperand matmul(MLOperand a, MLOperand b);
|
|
397
|
+
};
|
|
398
|
+
|
|
399
|
+
enum MLPaddingMode {
|
|
400
|
+
"constant",
|
|
401
|
+
"edge",
|
|
402
|
+
"reflection",
|
|
403
|
+
"symmetric"
|
|
404
|
+
};
|
|
405
|
+
|
|
406
|
+
dictionary MLPadOptions {
|
|
407
|
+
MLPaddingMode mode = "constant";
|
|
408
|
+
float value = 0;
|
|
409
|
+
};
|
|
410
|
+
|
|
411
|
+
partial interface MLGraphBuilder {
|
|
412
|
+
MLOperand pad(MLOperand input,
|
|
413
|
+
sequence<unsigned long> beginningPadding,
|
|
414
|
+
sequence<unsigned long> endingPadding,
|
|
415
|
+
optional MLPadOptions options = {});
|
|
416
|
+
};
|
|
417
|
+
|
|
418
|
+
enum MLRoundingType {
|
|
419
|
+
"floor",
|
|
420
|
+
"ceil"
|
|
421
|
+
};
|
|
422
|
+
|
|
423
|
+
dictionary MLPool2dOptions {
|
|
424
|
+
sequence<unsigned long> windowDimensions;
|
|
425
|
+
sequence<unsigned long> padding;
|
|
426
|
+
sequence<unsigned long> strides;
|
|
427
|
+
sequence<unsigned long> dilations;
|
|
428
|
+
MLAutoPad autoPad = "explicit";
|
|
429
|
+
MLInputOperandLayout layout = "nchw";
|
|
430
|
+
MLRoundingType roundingType = "floor";
|
|
431
|
+
sequence<unsigned long> outputSizes;
|
|
432
|
+
};
|
|
433
|
+
|
|
434
|
+
partial interface MLGraphBuilder {
|
|
435
|
+
MLOperand averagePool2d(MLOperand input, optional MLPool2dOptions options = {});
|
|
436
|
+
MLOperand l2Pool2d(MLOperand input, optional MLPool2dOptions options = {});
|
|
437
|
+
MLOperand maxPool2d(MLOperand input, optional MLPool2dOptions options = {});
|
|
438
|
+
};
|
|
439
|
+
|
|
440
|
+
partial interface MLGraphBuilder {
|
|
441
|
+
MLOperand prelu(MLOperand x, MLOperand slope);
|
|
442
|
+
};
|
|
443
|
+
|
|
444
|
+
dictionary MLReduceOptions {
|
|
445
|
+
sequence<unsigned long> axes = null;
|
|
446
|
+
boolean keepDimensions = false;
|
|
447
|
+
};
|
|
448
|
+
|
|
449
|
+
partial interface MLGraphBuilder {
|
|
450
|
+
MLOperand reduceL1(MLOperand input, optional MLReduceOptions options = {});
|
|
451
|
+
MLOperand reduceL2(MLOperand input, optional MLReduceOptions options = {});
|
|
452
|
+
MLOperand reduceLogSum(MLOperand input, optional MLReduceOptions options = {});
|
|
453
|
+
MLOperand reduceLogSumExp(MLOperand input, optional MLReduceOptions options = {});
|
|
454
|
+
MLOperand reduceMax(MLOperand input, optional MLReduceOptions options = {});
|
|
455
|
+
MLOperand reduceMean(MLOperand input, optional MLReduceOptions options = {});
|
|
456
|
+
MLOperand reduceMin(MLOperand input, optional MLReduceOptions options = {});
|
|
457
|
+
MLOperand reduceProduct(MLOperand input, optional MLReduceOptions options = {});
|
|
458
|
+
MLOperand reduceSum(MLOperand input, optional MLReduceOptions options = {});
|
|
459
|
+
MLOperand reduceSumSquare(MLOperand input, optional MLReduceOptions options = {});
|
|
460
|
+
};
|
|
461
|
+
|
|
462
|
+
partial interface MLGraphBuilder {
|
|
463
|
+
MLOperand relu(MLOperand x);
|
|
464
|
+
MLActivation relu();
|
|
465
|
+
};
|
|
466
|
+
|
|
467
|
+
enum MLInterpolationMode {
|
|
468
|
+
"nearest-neighbor",
|
|
469
|
+
"linear"
|
|
470
|
+
};
|
|
471
|
+
|
|
472
|
+
dictionary MLResample2dOptions {
|
|
473
|
+
MLInterpolationMode mode = "nearest-neighbor";
|
|
474
|
+
sequence<float> scales;
|
|
475
|
+
sequence<unsigned long> sizes;
|
|
476
|
+
sequence<unsigned long> axes;
|
|
477
|
+
};
|
|
478
|
+
|
|
479
|
+
partial interface MLGraphBuilder {
|
|
480
|
+
MLOperand resample2d(MLOperand input, optional MLResample2dOptions options = {});
|
|
481
|
+
};
|
|
482
|
+
|
|
483
|
+
partial interface MLGraphBuilder {
|
|
484
|
+
MLOperand reshape(MLOperand input, sequence<unsigned long?> newShape);
|
|
485
|
+
};
|
|
486
|
+
|
|
487
|
+
partial interface MLGraphBuilder {
|
|
488
|
+
MLOperand sigmoid(MLOperand x);
|
|
489
|
+
MLActivation sigmoid();
|
|
490
|
+
};
|
|
491
|
+
|
|
492
|
+
dictionary MLSliceOptions {
|
|
493
|
+
sequence<unsigned long> axes;
|
|
494
|
+
};
|
|
495
|
+
|
|
496
|
+
partial interface MLGraphBuilder {
|
|
497
|
+
MLOperand slice(MLOperand input, sequence<long> starts, sequence<long> sizes,
|
|
498
|
+
optional MLSliceOptions options = {});
|
|
499
|
+
};
|
|
500
|
+
|
|
501
|
+
partial interface MLGraphBuilder {
|
|
502
|
+
MLOperand softmax(MLOperand x);
|
|
503
|
+
MLActivation softmax();
|
|
504
|
+
};
|
|
505
|
+
|
|
506
|
+
dictionary MLSoftplusOptions {
|
|
507
|
+
float steepness = 1;
|
|
508
|
+
};
|
|
509
|
+
|
|
510
|
+
partial interface MLGraphBuilder {
|
|
511
|
+
MLOperand softplus(MLOperand x, optional MLSoftplusOptions options = {});
|
|
512
|
+
MLActivation softplus(optional MLSoftplusOptions options = {});
|
|
513
|
+
};
|
|
514
|
+
|
|
515
|
+
partial interface MLGraphBuilder {
|
|
516
|
+
MLOperand softsign(MLOperand x);
|
|
517
|
+
MLActivation softsign();
|
|
518
|
+
};
|
|
519
|
+
|
|
520
|
+
dictionary MLSplitOptions {
|
|
521
|
+
unsigned long axis = 0;
|
|
522
|
+
};
|
|
523
|
+
|
|
524
|
+
partial interface MLGraphBuilder {
|
|
525
|
+
sequence<MLOperand> split(MLOperand input,
|
|
526
|
+
(unsigned long or sequence<unsigned long>) splits,
|
|
527
|
+
optional MLSplitOptions options = {});
|
|
528
|
+
};
|
|
529
|
+
|
|
530
|
+
dictionary MLSqueezeOptions {
|
|
531
|
+
sequence<unsigned long> axes;
|
|
532
|
+
};
|
|
533
|
+
|
|
534
|
+
partial interface MLGraphBuilder {
|
|
535
|
+
MLOperand squeeze(MLOperand input, optional MLSqueezeOptions options = {});
|
|
536
|
+
};
|
|
537
|
+
|
|
538
|
+
partial interface MLGraphBuilder {
|
|
539
|
+
MLOperand tanh(MLOperand x);
|
|
540
|
+
MLActivation tanh();
|
|
541
|
+
};
|
|
542
|
+
|
|
543
|
+
dictionary MLTransposeOptions {
|
|
544
|
+
sequence<unsigned long> permutation;
|
|
545
|
+
};
|
|
546
|
+
|
|
547
|
+
partial interface MLGraphBuilder {
|
|
548
|
+
MLOperand transpose(MLOperand input, optional MLTransposeOptions options = {});
|
|
549
|
+
};
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
// GENERATED CONTENT - DO NOT EDIT
|
|
2
|
+
// Content was automatically extracted by Reffy into webref
|
|
3
|
+
// (https://github.com/w3c/webref)
|
|
4
|
+
// Source: WebRTC Encoded Transform (https://w3c.github.io/webrtc-encoded-transform/)
|
|
5
|
+
|
|
6
|
+
typedef (SFrameTransform or RTCRtpScriptTransform) RTCRtpTransform;
|
|
7
|
+
|
|
8
|
+
// New methods for RTCRtpSender and RTCRtpReceiver
|
|
9
|
+
partial interface RTCRtpSender {
|
|
10
|
+
attribute RTCRtpTransform? transform;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
partial interface RTCRtpReceiver {
|
|
14
|
+
attribute RTCRtpTransform? transform;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
enum SFrameTransformRole {
|
|
18
|
+
"encrypt",
|
|
19
|
+
"decrypt"
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
dictionary SFrameTransformOptions {
|
|
23
|
+
SFrameTransformRole role = "encrypt";
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
typedef [EnforceRange] unsigned long long SmallCryptoKeyID;
|
|
27
|
+
typedef (SmallCryptoKeyID or bigint) CryptoKeyID;
|
|
28
|
+
|
|
29
|
+
[Exposed=(Window,DedicatedWorker)]
|
|
30
|
+
interface SFrameTransform {
|
|
31
|
+
constructor(optional SFrameTransformOptions options = {});
|
|
32
|
+
Promise<undefined> setEncryptionKey(CryptoKey key, optional CryptoKeyID keyID);
|
|
33
|
+
attribute EventHandler onerror;
|
|
34
|
+
};
|
|
35
|
+
SFrameTransform includes GenericTransformStream;
|
|
36
|
+
|
|
37
|
+
enum SFrameTransformErrorEventType {
|
|
38
|
+
"authentication",
|
|
39
|
+
"keyID",
|
|
40
|
+
"syntax"
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
[Exposed=(Window,DedicatedWorker)]
|
|
44
|
+
interface SFrameTransformErrorEvent : Event {
|
|
45
|
+
constructor(DOMString type, SFrameTransformErrorEventInit eventInitDict);
|
|
46
|
+
|
|
47
|
+
readonly attribute SFrameTransformErrorEventType errorType;
|
|
48
|
+
readonly attribute CryptoKeyID? keyID;
|
|
49
|
+
readonly attribute any frame;
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
dictionary SFrameTransformErrorEventInit : EventInit {
|
|
53
|
+
required SFrameTransformErrorEventType errorType;
|
|
54
|
+
required any frame;
|
|
55
|
+
CryptoKeyID? keyID;
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
// New enum for video frame types. Will eventually re-use the equivalent defined
|
|
59
|
+
// by WebCodecs.
|
|
60
|
+
enum RTCEncodedVideoFrameType {
|
|
61
|
+
"empty",
|
|
62
|
+
"key",
|
|
63
|
+
"delta",
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
dictionary RTCEncodedVideoFrameMetadata {
|
|
67
|
+
unsigned long long frameId;
|
|
68
|
+
sequence<unsigned long long> dependencies;
|
|
69
|
+
unsigned short width;
|
|
70
|
+
unsigned short height;
|
|
71
|
+
unsigned long spatialIndex;
|
|
72
|
+
unsigned long temporalIndex;
|
|
73
|
+
unsigned long synchronizationSource;
|
|
74
|
+
octet payloadType;
|
|
75
|
+
sequence<unsigned long> contributingSources;
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
// New interfaces to define encoded video and audio frames. Will eventually
|
|
79
|
+
// re-use or extend the equivalent defined in WebCodecs.
|
|
80
|
+
[Exposed=(Window,DedicatedWorker)]
|
|
81
|
+
interface RTCEncodedVideoFrame {
|
|
82
|
+
readonly attribute RTCEncodedVideoFrameType type;
|
|
83
|
+
readonly attribute unsigned long timestamp;
|
|
84
|
+
attribute ArrayBuffer data;
|
|
85
|
+
RTCEncodedVideoFrameMetadata getMetadata();
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
dictionary RTCEncodedAudioFrameMetadata {
|
|
89
|
+
unsigned long synchronizationSource;
|
|
90
|
+
octet payloadType;
|
|
91
|
+
sequence<unsigned long> contributingSources;
|
|
92
|
+
short sequenceNumber;
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
[Exposed=(Window,DedicatedWorker)]
|
|
96
|
+
interface RTCEncodedAudioFrame {
|
|
97
|
+
readonly attribute unsigned long timestamp;
|
|
98
|
+
attribute ArrayBuffer data;
|
|
99
|
+
RTCEncodedAudioFrameMetadata getMetadata();
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
[Exposed=DedicatedWorker]
|
|
103
|
+
interface RTCTransformEvent : Event {
|
|
104
|
+
readonly attribute RTCRtpScriptTransformer transformer;
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
partial interface DedicatedWorkerGlobalScope {
|
|
108
|
+
attribute EventHandler onrtctransform;
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
[Exposed=DedicatedWorker]
|
|
112
|
+
interface RTCRtpScriptTransformer {
|
|
113
|
+
readonly attribute ReadableStream readable;
|
|
114
|
+
readonly attribute WritableStream writable;
|
|
115
|
+
readonly attribute any options;
|
|
116
|
+
Promise<unsigned long long> generateKeyFrame(optional DOMString rid);
|
|
117
|
+
Promise<undefined> sendKeyFrameRequest();
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
[Exposed=Window]
|
|
121
|
+
interface RTCRtpScriptTransform {
|
|
122
|
+
constructor(Worker worker, optional any options, optional sequence<object> transfer);
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
partial interface RTCRtpSender {
|
|
126
|
+
Promise<undefined> generateKeyFrame(optional sequence <DOMString> rids);
|
|
127
|
+
};
|
package/webrtc-ice.idl
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// GENERATED CONTENT - DO NOT EDIT
|
|
2
|
+
// Content was automatically extracted by Reffy into webref
|
|
3
|
+
// (https://github.com/w3c/webref)
|
|
4
|
+
// Source: IceTransport Extensions for WebRTC (https://w3c.github.io/webrtc-ice/)
|
|
5
|
+
|
|
6
|
+
partial dictionary RTCIceParameters {
|
|
7
|
+
boolean iceLite;
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
dictionary RTCIceGatherOptions {
|
|
11
|
+
RTCIceTransportPolicy gatherPolicy = "all";
|
|
12
|
+
sequence<RTCIceServer> iceServers;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
[Exposed=Window]
|
|
16
|
+
partial interface RTCIceTransport {
|
|
17
|
+
constructor();
|
|
18
|
+
undefined gather (optional RTCIceGatherOptions options = {});
|
|
19
|
+
undefined start (optional RTCIceParameters remoteParameters = {}, optional RTCIceRole role = "controlled");
|
|
20
|
+
undefined stop ();
|
|
21
|
+
undefined addRemoteCandidate (optional RTCIceCandidateInit remoteCandidate = {});
|
|
22
|
+
attribute EventHandler onerror;
|
|
23
|
+
attribute EventHandler onicecandidate;
|
|
24
|
+
};
|