forked from eatvio/eatvio_app
feat(video_calls): added new incomng push impl, fixed mic and video sharing while connecting to call
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user