Skip to content

Commit

Permalink
Replace DedicatedWorker by Worker for now and remove global which is …
Browse files Browse the repository at this point in the history
…wrong as well (#78)

Remove DedicatedWorker for now and remove global which is wrong as well
  • Loading branch information
youennf committed Mar 11, 2021
1 parent eac51f0 commit 11c8f9f
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,8 @@ dictionary SFrameTransformOptions {
SFrameTransformRole role = "encrypt";
};

[Exposed=(Window,DedicatedWorker)]
// FIXME: We plan to expose only in dedicated worker scopes, but may want to discuss extending it in other contexts.
[Exposed=(Window,Worker)]
interface SFrameTransform {
constructor(optional SFrameTransformOptions options = {});
Promise<undefined> setEncryptionKey(CryptoKey key, optional unsigned long long keyID);
Expand Down Expand Up @@ -278,7 +279,8 @@ interface RTCEncodedAudioFrame {

// New interfaces to expose JavaScript-based transforms.

[Global=(Worker,DedicatedWorker),Exposed=DedicatedWorker]
// FIXME: We want to expose only in dedicated worker scopes.
[Exposed=Worker]
interface RTCTransformEvent : Event {
readonly attribute RTCRtpScriptTransformer transformer;
};
Expand All @@ -287,14 +289,15 @@ partial interface DedicatedWorkerGlobalScope {
attribute EventHandler onrtctransform;
};

[Global=(Worker,DedicatedWorker),Exposed=DedicatedWorker]
// FIXME: We want to expose only in dedicated worker scopes.
[Exposed=Worker]
interface RTCRtpScriptTransformer {
readonly attribute ReadableStream readable;
readonly attribute WritableStream writable;
readonly attribute any options;
};

[Exposed=(Window)]
[Exposed=Window]
interface RTCRtpScriptTransform {
constructor(Worker worker, optional any options);
// FIXME: add messaging methods.
Expand Down

0 comments on commit 11c8f9f

Please sign in to comment.