Show active speaker in group calling PiP

This commit is contained in:
Evan Hahn 2020-12-01 17:52:09 -06:00 committed by GitHub
parent b3c161f484
commit f3f2cb2b5e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 144 additions and 13 deletions

View file

@ -52,6 +52,7 @@ import {
import { getOwn } from '../util/getOwn';
import { fetchMembershipProof, getMembershipList } from '../groups';
import { missingCaseError } from '../util/missingCaseError';
import { normalizeGroupCallTimestamp } from '../util/ringrtc/normalizeGroupCallTimestamp';
const RINGRTC_SFU_URL = 'https://sfu.voip.signal.org/';
@ -598,6 +599,9 @@ export class CallingClass {
hasRemoteAudio: !remoteDeviceState.audioMuted,
hasRemoteVideo: !remoteDeviceState.videoMuted,
isSelf: conversationId === ourConversationId,
speakerTime: normalizeGroupCallTimestamp(
remoteDeviceState.speakerTime
),
// If RingRTC doesn't send us an aspect ratio, we make a guess.
videoAspectRatio:
remoteDeviceState.videoAspectRatio ||