reportHolder method
这个进程开始或停止持有一个通话的媒体连接:开始持有的停止代发心跳;断开而本人仍在通话中的开始代发。
Implementation
void reportHolder(String callId, bool holding) {
if (holding) {
_stopLeaderBeat(callId);
return;
}
final s = _handles[callId]?.snapshot;
if (s != null && s.call.status != 'ended' && s.self?.state == 'joined') _startLeaderBeat(callId);
}