@scaleflex/widget-screen-capture 0.0.1

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.
@@ -0,0 +1,25 @@
1
+ import Filerobot = require("@scaleflex/widget-core");
2
+
3
+ declare module ScreenCapture {
4
+ // https://developer.mozilla.org/en-US/docs/Web/API/MediaTrackConstraints#Properties_of_shared_screen_tracks
5
+ interface DisplayMediaStreamConstraints {
6
+ audio?: boolean | MediaTrackConstraints;
7
+ video?:
8
+ | boolean
9
+ | (MediaTrackConstraints & {
10
+ cursor?: "always" | "motion" | "never";
11
+ displaySurface?: "application" | "browser" | "monitor" | "window";
12
+ logicalSurface?: boolean;
13
+ });
14
+ }
15
+
16
+ export interface ScreenCaptureOptions extends Filerobot.PluginOptions {
17
+ displayMediaConstraints?: DisplayMediaStreamConstraints;
18
+ userMediaConstraints?: MediaStreamConstraints;
19
+ preferredVideoMimeType?: string;
20
+ }
21
+ }
22
+
23
+ declare class ScreenCapture extends Filerobot.Plugin<ScreenCapture.ScreenCaptureOptions> {}
24
+
25
+ export = ScreenCapture;