@@ -188,7 +188,8 @@ dictionary SFrameTransformOptions {
188
188
SFrameTransformRole role = "encrypt";
189
189
};
190
190
191
- [Exposed=(Window,DedicatedWorker)]
191
+ // FIXME: We plan to expose only in dedicated worker scopes, but may want to discuss extending it in other contexts.
192
+ [Exposed=(Window,Worker)]
192
193
interface SFrameTransform {
193
194
constructor(optional SFrameTransformOptions options = {});
194
195
Promise<undefined> setEncryptionKey(CryptoKey key, optional unsigned long long keyID);
@@ -278,7 +279,8 @@ interface RTCEncodedAudioFrame {
278
279
279
280
// New interfaces to expose JavaScript-based transforms.
280
281
281
- [Global=(Worker,DedicatedWorker),Exposed=DedicatedWorker]
282
+ // FIXME: We want to expose only in dedicated worker scopes.
283
+ [Exposed=Worker]
282
284
interface RTCTransformEvent : Event {
283
285
readonly attribute RTCRtpScriptTransformer transformer;
284
286
};
@@ -287,14 +289,15 @@ partial interface DedicatedWorkerGlobalScope {
287
289
attribute EventHandler onrtctransform;
288
290
};
289
291
290
- [Global=(Worker,DedicatedWorker),Exposed=DedicatedWorker]
292
+ // FIXME: We want to expose only in dedicated worker scopes.
293
+ [Exposed=Worker]
291
294
interface RTCRtpScriptTransformer {
292
295
readonly attribute ReadableStream readable;
293
296
readonly attribute WritableStream writable;
294
297
readonly attribute any options;
295
298
};
296
299
297
- [Exposed=( Window) ]
300
+ [Exposed=Window]
298
301
interface RTCRtpScriptTransform {
299
302
constructor(Worker worker, optional any options);
300
303
// FIXME: add messaging methods.
0 commit comments