diff --git a/BUILD.gn b/BUILD.gn index d7a4e85fb9..a7d8a92156 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -348,6 +348,7 @@ source_set("electron_lib") { "//device/bluetooth", "//device/bluetooth/public/cpp", "//gin", + "//media/blink:blink", "//media/capture/mojom:video_capture", "//media/mojo/mojom", "//net:extras", diff --git a/docs/api/protocol.md b/docs/api/protocol.md index f37c06802b..d922f3f88a 100644 --- a/docs/api/protocol.md +++ b/docs/api/protocol.md @@ -63,8 +63,8 @@ The `protocol` module has the following methods: module gets emitted and can be called only once. Registers the `scheme` as standard, secure, bypasses content security policy for -resources, allows registering ServiceWorker and supports fetch API. Specify a -privilege with the value of `true` to enable the capability. +resources, allows registering ServiceWorker, supports fetch API, and streaming +video/audio. Specify a privilege with the value of `true` to enable the capability. An example of registering a privileged scheme, that bypasses Content Security Policy: @@ -103,6 +103,11 @@ cookies) are disabled for non standard schemes. So in general if you want to register a custom protocol to replace the `http` protocol, you have to register it as a standard scheme. +Protocols that use streams (http and stream protocols) should set `stream: true`. +The `