| | |
| | | mView = inflater.Inflate(Resource.Layout.fragment_call, container, false); |
| | | |
| | | IniView(); |
| | | |
| | | ReverseCall(param); |
| | | return mView; |
| | | } |
| | | |
| | |
| | | { |
| | | if (v.Equals(rlCall)) |
| | | { |
| | | //TimeStarts(); |
| | | ReverseCall(param); |
| | | //接收来电 |
| | | if (mPhone != null) |
| | | { |
| | | if (mPhone.IsRinging) |
| | | { |
| | | string UserData = "user text"; |
| | | //注意:RequestAudio 请求对方音频,RequestVideo请求对方视频 SendAudio发送本地音频 SendVideo 发送本地视频 一般门口不接收到视频,所以最好设置0,减少流量消耗 |
| | | string param = string.Format("RequestAudio=1\r\n" + "RequestVideo=1\r\n" + "SendAudio=1\r\n" + "SendVideo=1r\n" + "UserData=%s\r\n", UserData); |
| | | mPhone.AcceptRing(param); |
| | | } |
| | | } |
| | | rlCall.Visibility = ViewStates.Gone; |
| | | } |
| | | else if (v.Equals(rlHangup)) |