仿QQ音视频通话效果
这是一个用于做音视频效果的View。
头文件中,暴漏了对方的昵称、连接状态、提示信息,是否是被对方挂断、是否已经接听、对方是否开启了摄像头。
暴漏的三个UIImageView分别用于设置头像、视频画面。
示例代码:
RTCView *presentView; if (sender.tag == 1) { presentView = [[RTCView alloc] initWithIsVideo:NO isCallee:NO]; } else if (sender.tag == 2) { presentView = [[RTCView alloc] initWithIsVideo:YES isCallee:NO]; } else if (sender.tag == 3) { presentView = [[RTCView alloc] initWithIsVideo:NO isCallee:YES]; } else { presentView = [[RTCView alloc] initWithIsVideo:YES isCallee:YES]; } presentView.nickName = @"小萝莉"; presentView.connectText = @"通话时长"; presentView.netTipText = @"对方的网络状况不是很好"; [presentView show]; 




