update
This commit is contained in:
@@ -36,12 +36,12 @@ import io.rong.imlib.RongIMClient;
|
||||
import io.rong.imlib.model.Conversation;
|
||||
|
||||
public class CallClientManager {
|
||||
public static final String VIDEO_RECEIVED_CALL = "receivedCall";//接听
|
||||
public static final String VIDEO_CALL = "call";//拨打
|
||||
public static final String VIDEO_FLOAT = "floatWindow";//浮窗
|
||||
public static final String AUDIO_RECEIVED_CALL = "receivedCall";//接听
|
||||
public static final String AUDIO_CALL = "call";//拨打
|
||||
public static final String AUDIO_FLOAT = "floatWindow";//浮窗
|
||||
public static final String VIDEO_RECEIVED_CALL = "receivedVideoCall";//接听
|
||||
public static final String VIDEO_CALL = "callVideo";//拨打
|
||||
public static final String VIDEO_FLOAT = "videoFloatWindow";//浮窗
|
||||
public static final String AUDIO_RECEIVED_CALL = "receivedAudioCall";//接听
|
||||
public static final String AUDIO_CALL = "callAudio";//拨打
|
||||
public static final String AUDIO_FLOAT = "audioFloatWindow";//浮窗
|
||||
private static CallClientManager manager;
|
||||
private SurfaceView localVideo, remoteVideo;
|
||||
private List<OnCallStatusListener> listeners;
|
||||
@@ -347,13 +347,14 @@ public class CallClientManager {
|
||||
@Override
|
||||
public void onReceivedCall(RongCallSession callSession) {
|
||||
Bundle bundle = new Bundle();
|
||||
bundle.putString("model", VIDEO_RECEIVED_CALL);
|
||||
bundle.putString("targetId", callSession.getTargetId());
|
||||
bundle.putString("callId", callSession.getCallId());
|
||||
bundle.putString("sessionId", callSession.getSessionId());
|
||||
if (callSession.getMediaType() == RongCallCommon.CallMediaType.VIDEO) {
|
||||
bundle.putString("model", VIDEO_RECEIVED_CALL);
|
||||
RouteManager.forwardActivity(RouteManager.ACTIVITY_CALL_VIDEO, bundle);
|
||||
} else {
|
||||
bundle.putString("model", AUDIO_RECEIVED_CALL);
|
||||
RouteManager.forwardActivity(RouteManager.ACTIVITY_CALL_AUDIO, bundle);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user