Skip to content

Commit b971112

Browse files
committed
fixup
1 parent ef942e7 commit b971112

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

globals.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ declare global {
1616
writable: WritableStream<RTCEncodedAudioFrame | RTCEncodedVideoFrame>;
1717
}
1818
}
19+
interface MediaStreamConstraints {
20+
offerToReceiveAudio?: boolean;
21+
offerToReceiveVideo?: boolean;
22+
}
1923
interface MediaStream {
2024
oninactive?: ((this: MediaStream, ev: Event) => void) | ((this: MediaStreamTrack, ev: Event) => void) | null;
2125
}

modules/xmpp/JingleSessionPC.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2428,8 +2428,8 @@ export default class JingleSessionPC extends JingleSession {
24282428
* @inheritDoc
24292429
*/
24302430
public override terminate(
2431-
success: () => void,
2432-
failure: (error: IJingleError) => void,
2431+
success?: () => void,
2432+
failure?: (error: IJingleError) => void,
24332433
options: ITerminateOptions = {}) {
24342434
if (this.state === JingleSessionState.ENDED) {
24352435
return;

0 commit comments

Comments
 (0)