feat(video_calls): added new incomng push impl, fixed mic and video sharing while connecting to call

This commit is contained in:
misha
2026-06-09 09:55:20 +03:00
parent 8e2b7147d5
commit 27fe4afd81
17 changed files with 784 additions and 95 deletions

View File

@@ -192,8 +192,11 @@ class VideoCallSessionCubit extends BaseCubit<VideoCallSessionState> {
if (isClosed) return;
if (state.connectPhase != VideoCallConnectPhase.connected) return;
if (state.callStageEntered) return;
final entered = await _videoCallManager.onEnterCallStage();
if (!entered || isClosed) return;
emit(state.copyWith(callStageEntered: true));
await _videoCallManager.onEnterCallStage();
WidgetsBinding.instance.addPostFrameCallback((_) {
if (isClosed) return;
_videoCallManager.scheduleRecordingNoticeOnce();

View File

@@ -33,6 +33,5 @@ abstract class VideoCallSessionState with _$VideoCallSessionState {
@Default(false) bool systemAudioInterrupted,
}) = _VideoCallSessionState;
/// UI for mic control: off while GSM / system audio holds the session.
bool get isMicActiveForUi => micEnabled && !systemAudioInterrupted;
}