Search e01
One query across the encyclopedia, books, dictionary, papers, Wikidata and the developer library. Every hit carries its source.
6 results across 6 corpora for CaptureController.
Developer library 6
CaptureController
Screen Capture API The **`CaptureController`** interface provides methods that can be used to further manipulate a captured display surface (captured via MediaDevices.getDisplayMedia()) A `CaptureController` object is associated with a captured display surface by passing it into a `getDisplayMedia()` call as the value of the options object's `controller` property. ## Constructor - CaptureController() - : Creat
CaptureController: CaptureController() constructor
Screen Capture API The CaptureController constructor creates a new `CaptureController` object instance. ## Syntax ```js-nolint CaptureController() ``` ### Parameters None. ## Examples ```js // Create a new CaptureController instance const controller = new CaptureController(); // Prompt the user to share a tab, window, or screen. const stream = await navigator.mediaDevices.getDisplayMedia({ controller }); //
CaptureController: decreaseZoomLevel() method
Screen Capture API The CaptureController interface's **`decreaseZoomLevel()`** method decreases the captured display surface's zoom level by one increment. The `decreaseZoomLevel()` method must be invoked via [transient activation](/docs/Glossary/Transient_activation). In addition, the user is asked for permission to share tabs when screen capture is first attempted; if the user denies permission the zoom level can
CaptureController: getSupportedZoomLevels() method
Screen Capture API The CaptureController interface's **`getSupportedZoomLevels()`** method returns the different zoom levels that the captured display surface supports. ## Syntax ```js-nolint getSupportedZoomLevels() ``` ### Parameters None. ### Return value An array of numbers representing the different zoom levels that the captured display surface supports. ### Exceptions - `InvalidStateError` DOMException
CaptureController: zoomlevelchange event
Screen Capture API The **`zoomlevelchange`** event of the CaptureController interface is fired when the captured display surface's zoom level changes. Specifically, this occurs when: - The increaseZoomLevel(), decreaseZoomLevel(), or resetZoomLevel() methods are called on a controller that is actively controlling a captured display surface. - The user changes the zoom level in the captured surface. - The user chan
CaptureController: forwardWheel() method
Screen Capture API The CaptureController interface's **`forwardWheel()`** method starts forwarding wheel events fired on the referenced element to the viewport of an associated captured display surface. The `forwardWheel()` method must be invoked via [transient activation](/docs/Glossary/Transient_activation). Specifically, the only events that can successfully invoke it are `click` and `input`. In addition, the us