sdk: add webrtc screen hints

This commit is contained in:
Koushik Dutta
2022-04-18 21:40:03 -07:00
parent 2ae0077ed4
commit a7355aebad
4 changed files with 17 additions and 1 deletions

View File

@@ -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) {

View File

@@ -1419,6 +1419,10 @@ export interface RTCSignalingOptions {
audio?: RTCRtpCapabilities;
};
userAgent?: string;
screen?: {
width: number;
height: number;
};
}
export interface RTCSessionControl {

View File

@@ -1449,6 +1449,10 @@ export interface RTCSignalingOptions {
audio?: RTCRtpCapabilities;
};
userAgent?: string;
screen?: {
width: number;
height: number;
};
}
export interface RTCSessionControl {
getRefreshAt(): Promise<number | void>;

View File

@@ -2120,6 +2120,10 @@ export interface RTCSignalingOptions {
audio?: RTCRtpCapabilities;
};
userAgent?: string;
screen?: {
width: number;
height: number;
};
}
export interface RTCSessionControl {