mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-11 01:59:58 +00:00
Fix mirror sender and use getDisplayMedia
This commit is contained in:
6
ext/src/global.d.ts
vendored
6
ext/src/global.d.ts
vendored
@@ -29,13 +29,17 @@ declare interface HTMLCanvasElement {
|
||||
}
|
||||
|
||||
declare interface MediaTrackConstraints {
|
||||
mediaSource: "screen" | "window";
|
||||
cursor: "always" | "motion" | "never";
|
||||
}
|
||||
|
||||
declare interface RTCPeerConnection {
|
||||
addStream (mediaStream: MediaStream): void;
|
||||
}
|
||||
|
||||
declare interface MediaDevices {
|
||||
getDisplayMedia(constraints: MediaStreamConstraints): Promise<MediaStream>;
|
||||
}
|
||||
|
||||
|
||||
interface CloneIntoOptions {
|
||||
cloneFunctions?: boolean;
|
||||
|
||||
Reference in New Issue
Block a user