Ios Voip Kit Changes

development_aamir
Aamir Muhammad 3 years ago
parent f903700639
commit 41e4ec0eee

@ -108,7 +108,7 @@ class _StartCallPageState extends State<StartCallPage> {
if (userLoginResponse.response != null) { if (userLoginResponse.response != null) {
AppState().setchatUserDetails = userLoginResponse; AppState().setchatUserDetails = userLoginResponse;
Utils.saveStringFromPrefs("userLoginChatDetails", jsonEncode(userLoginResponse.response)); Utils.saveStringFromPrefs("userLoginChatDetails", jsonEncode(userLoginResponse.response));
await cProv.startIncomingCallViaKit(inCallData: inCallData.toJson(), isVCall: callType == "video" ? true : false); await cProv.startIncomingCallViaKit(inCallData: inCallData.toJson(), isVCall: callType == "video" ? true : false);
try { try {
AppState().setchatUserDetails = UserAutoLoginModel(response: userLoginResponse.response, errorResponses: null); AppState().setchatUserDetails = UserAutoLoginModel(response: userLoginResponse.response, errorResponses: null);
@ -154,8 +154,7 @@ class _StartCallPageState extends State<StartCallPage> {
RTCVideoView( RTCVideoView(
provider.remoteRenderer!, provider.remoteRenderer!,
objectFit: RTCVideoViewObjectFit.RTCVideoViewObjectFitContain, objectFit: RTCVideoViewObjectFit.RTCVideoViewObjectFitContain,
filterQuality: FilterQuality.high filterQuality: FilterQuality.high,
,
key: const Key('remote'), key: const Key('remote'),
), ),
if (provider.isVideoCall) if (provider.isVideoCall)
@ -370,9 +369,10 @@ class _StartCallPageState extends State<StartCallPage> {
), ),
) )
: provider.isOutGoingCall : provider.isOutGoingCall
? SizedBox( ? Container(
width: double.infinity, width: double.infinity,
height: double.infinity, height: double.infinity,
color: Colors.black,
child: Stack( child: Stack(
alignment: FractionalOffset.center, alignment: FractionalOffset.center,
children: <Widget>[ children: <Widget>[

Loading…
Cancel
Save