Group calling: tell RingRTC about our rendered resolutions for perf

This commit is contained in:
Evan Hahn 2020-12-01 19:52:01 -06:00 committed by GitHub
parent b30b83ed57
commit d1866a0e5d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 211 additions and 7 deletions

View file

@ -27,6 +27,7 @@ import {
RingRTC,
UserId,
VideoFrameSource,
VideoRequest,
} from 'ringrtc';
import { uniqBy, noop } from 'lodash';
@ -526,6 +527,13 @@ export class CallingClass {
return this.getDirectCall(conversationId)?.callId;
}
public setGroupCallVideoRequest(
conversationId: string,
resolutions: Array<VideoRequest>
): void {
this.getGroupCall(conversationId)?.requestVideo(resolutions);
}
// See the comment in types/Calling.ts to explain why we have to do this conversion.
private convertRingRtcConnectionState(
connectionState: ConnectionState