mirror of
https://github.com/koush/scrypted.git
synced 2026-02-10 01:02:18 +00:00
sdk: add webrtc screen hints
This commit is contained in:
@@ -23,7 +23,11 @@ export class BrowserSignalingSession implements RTCSignalingSession {
|
||||
codecs: undefined,
|
||||
headerExtensions: undefined,
|
||||
},
|
||||
}
|
||||
},
|
||||
screen: {
|
||||
width: screen.width,
|
||||
height: screen.height,
|
||||
},
|
||||
};
|
||||
|
||||
constructor(public peerConnectionCreated?: (pc: RTCPeerConnection) => Promise<void>, public cleanup?: () => void) {
|
||||
|
||||
@@ -1419,6 +1419,10 @@ export interface RTCSignalingOptions {
|
||||
audio?: RTCRtpCapabilities;
|
||||
};
|
||||
userAgent?: string;
|
||||
screen?: {
|
||||
width: number;
|
||||
height: number;
|
||||
};
|
||||
}
|
||||
|
||||
export interface RTCSessionControl {
|
||||
|
||||
4
sdk/types/index.d.ts
vendored
4
sdk/types/index.d.ts
vendored
@@ -1449,6 +1449,10 @@ export interface RTCSignalingOptions {
|
||||
audio?: RTCRtpCapabilities;
|
||||
};
|
||||
userAgent?: string;
|
||||
screen?: {
|
||||
width: number;
|
||||
height: number;
|
||||
};
|
||||
}
|
||||
export interface RTCSessionControl {
|
||||
getRefreshAt(): Promise<number | void>;
|
||||
|
||||
@@ -2120,6 +2120,10 @@ export interface RTCSignalingOptions {
|
||||
audio?: RTCRtpCapabilities;
|
||||
};
|
||||
userAgent?: string;
|
||||
screen?: {
|
||||
width: number;
|
||||
height: number;
|
||||
};
|
||||
}
|
||||
|
||||
export interface RTCSessionControl {
|
||||
|
||||
Reference in New Issue
Block a user