コード例 #1
0
        public void SetViewCall(CallPCL call)
        {
            if (linphoneCore.CallsNb > 0)
            {
                Call currentCall = linphoneCore.Calls.Where(lcall => lcall.RemoteAddress.Username == call.UsernameCaller).FirstOrDefault();
                if (currentCall != null)
                {
                    linphoneCore.VideoDisplayEnabled          = true;
                    linphoneCore.VideoAdaptiveJittcompEnabled = true;
                    CallParams param = linphoneCore.CreateCallParams(currentCall);

                    param.VideoEnabled   = true;
                    param.VideoDirection = MediaDirection.RecvOnly;
                    param.AudioDirection = MediaDirection.SendRecv;

                    currentCall.AcceptEarlyMediaWithParams(param);
                }
                else
                {
                    Log($"SetViewCall()_Android, call from: {call.UsernameCaller} is not call in linphoneCore");
                }
                //lc.UpdateCall(call, param);
            }
        }