private void CallFriend(string peerId) { NIMVChatInfo info = new NIMVChatInfo(); info.Uids = new System.Collections.Generic.List <string>(); info.Uids.Add(peerId); VChatAPI.Start(NIMVideoChatMode.kNIMVideoChatModeVideo, "C# demo呼叫", info);//邀请test_id进行语音通话 }
public void VideoTest() { NIMVChatInfo info = new NIMVChatInfo(); info.Uids = new System.Collections.Generic.List <string>(); info.Uids.Add(_peerId); VChatAPI.Start(NIMVideoChatMode.kNIMVideoChatModeVideo, "C# demo呼叫", info);//邀请test_id进行语音通话 }
/// <summary> /// 邀请会话 /// </summary> /// <param name="targetId">目标accid</param> /// <param name="mode"></param> public static void Start(string targetId, NIMVideoChatMode mode) { var info = new NIMVChatInfo { Uids = new List <string> { targetId } }; VChatAPI.Start(mode, info); }