|
@@ -221,8 +221,12 @@ public class SocketManager implements IEvent {
|
|
|
// 发送广播
|
|
|
mContext.sendBroadcast(intent);*/
|
|
|
|
|
|
- //直接调起通话界面
|
|
|
- receivedIncomingCall(room, audioOnly, inviteId, userList);
|
|
|
+ //如果设备不带摄像头则只能语音通话
|
|
|
+ if (Constant.supportCamera) {
|
|
|
+ receivedIncomingCall(room, audioOnly, inviteId, userList);
|
|
|
+ } else {
|
|
|
+ receivedIncomingCall(room, true, inviteId, userList);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
private void receivedIncomingCall(String room, boolean audioOnly, String inviteId, String userList) {
|