public class RTCVideoCallActivity extends AppCompatActivity implements RTCClient.SignalingEvents, RTCPeerConnection.PeerConnectionEvents, RTCCallingDialogFragment.ActionListener, RTCCallDialogFragment.ActionListener
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ACTION_INCOMING_CALL |
static java.lang.String |
ACTION_OUTGOING_CALL |
static java.lang.String |
EXTRA_AUDIO_BITRATE |
static java.lang.String |
EXTRA_CAMERA2 |
static java.lang.String |
EXTRA_VIDEO_BITRATE |
static java.lang.String |
EXTRA_VIDEO_FPS |
static java.lang.String |
EXTRA_VIDEO_HEIGHT |
static java.lang.String |
EXTRA_VIDEO_WIDTH |
| Constructor and Description |
|---|
RTCVideoCallActivity() |
| Modifier and Type | Method and Description |
|---|---|
void |
abortCall(java.lang.String pid) |
void |
acceptCall(java.lang.String pid) |
static android.content.Intent |
createIntent(android.content.Context context,
java.lang.String aes,
java.lang.String pid,
java.lang.String name,
java.lang.String[] ices,
boolean initiator) |
static void |
createVideoCallNotification(android.content.Context context,
java.lang.String aes,
java.lang.String pid,
java.lang.String name,
java.lang.String[] ices) |
void |
failCall(java.lang.String pid) |
void |
onCameraSwitch() |
void |
onChannelAccepted(java.lang.String[] ices) |
void |
onChannelBusy()
Callback fired once channel is busy.
|
void |
onChannelClose()
Callback fired once channel is closed.
|
void |
onChannelOffer(SessionDescription offerSdp)
Callback fired once the room's signaling parameters
SignalingParameters are extracted.
|
void |
onChannelReject() |
void |
onChannelTimeout() |
void |
onConnected()
Callback fired once DTLS connection is established (PeerConnectionState
is CONNECTED).
|
void |
onCreate(android.os.Bundle savedInstanceState) |
protected void |
onDestroy() |
void |
onDisconnected()
Callback fired once DTLS connection is disconnected (PeerConnectionState
is DISCONNECTED).
|
void |
onEnableFabs(boolean enabled) |
void |
onIceCandidate(IceCandidate candidate)
Callback fired once local Ice candidate is generated.
|
void |
onIceCandidatesRemoved(IceCandidate[] candidates)
Callback fired once local ICE candidates are removed.
|
void |
onIceConnected()
Callback fired once connection is established (IceConnectionState is
CONNECTED).
|
void |
onIceDisconnected()
Callback fired once connection is disconnected (IceConnectionState is
DISCONNECTED).
|
void |
onLocalDescription(SessionDescription sdp)
Callback fired once local SDP is created and set.
|
protected void |
onNewIntent(android.content.Intent intent) |
void |
onPeerConnectionClosed()
Callback fired once peer connection is closed.
|
void |
onPeerConnectionError(java.lang.String description)
Callback fired once peer connection error happened.
|
void |
onRemoteDescription(SessionDescription sdp)
Callback fired once remote SDP is received.
|
void |
onRemoteIceCandidate(IceCandidate candidate)
Callback fired once remote Ice candidate is received.
|
void |
onRemoteIceCandidateRemoved(IceCandidate candidate)
Callback fired once remote Ice candidate removals are received.
|
void |
onRequestPermissionsResult(int requestCode,
java.lang.String[] permissions,
int[] grantResults) |
protected void |
onResume() |
void |
onStart() |
void |
onStop() |
boolean |
onToggleMic() |
void |
onToggleSpeaker() |
void |
onWindowFocusChanged(boolean hasFocus) |
void |
receiveUserCall() |
void |
rejectCall(java.lang.String pid) |
void |
timeoutCall(java.lang.String pid) |
public static final java.lang.String ACTION_INCOMING_CALL
public static final java.lang.String ACTION_OUTGOING_CALL
public static final java.lang.String EXTRA_CAMERA2
public static final java.lang.String EXTRA_VIDEO_WIDTH
public static final java.lang.String EXTRA_VIDEO_HEIGHT
public static final java.lang.String EXTRA_VIDEO_FPS
public static final java.lang.String EXTRA_VIDEO_BITRATE
public static final java.lang.String EXTRA_AUDIO_BITRATE
public static void createVideoCallNotification(android.content.Context context,
java.lang.String aes,
java.lang.String pid,
java.lang.String name,
java.lang.String[] ices)
public static android.content.Intent createIntent(android.content.Context context,
java.lang.String aes,
java.lang.String pid,
java.lang.String name,
java.lang.String[] ices,
boolean initiator)
protected void onNewIntent(android.content.Intent intent)
protected void onResume()
public void onCreate(android.os.Bundle savedInstanceState)
public void onEnableFabs(boolean enabled)
public void onWindowFocusChanged(boolean hasFocus)
public void onRequestPermissionsResult(int requestCode,
java.lang.String[] permissions,
int[] grantResults)
public void receiveUserCall()
public void onStop()
public void onStart()
protected void onDestroy()
public void onCameraSwitch()
public boolean onToggleMic()
public void onToggleSpeaker()
public void onChannelOffer(SessionDescription offerSdp)
RTCClient.SignalingEventsonChannelOffer in interface RTCClient.SignalingEventspublic void onRemoteDescription(SessionDescription sdp)
RTCClient.SignalingEventsonRemoteDescription in interface RTCClient.SignalingEventspublic void onRemoteIceCandidate(IceCandidate candidate)
RTCClient.SignalingEventsonRemoteIceCandidate in interface RTCClient.SignalingEventspublic void onRemoteIceCandidateRemoved(IceCandidate candidate)
RTCClient.SignalingEventsonRemoteIceCandidateRemoved in interface RTCClient.SignalingEventspublic void onChannelAccepted(java.lang.String[] ices)
onChannelAccepted in interface RTCClient.SignalingEventspublic void onLocalDescription(SessionDescription sdp)
RTCPeerConnection.PeerConnectionEventsonLocalDescription in interface RTCPeerConnection.PeerConnectionEventspublic void onIceCandidate(IceCandidate candidate)
RTCPeerConnection.PeerConnectionEventsonIceCandidate in interface RTCPeerConnection.PeerConnectionEventspublic void onIceCandidatesRemoved(IceCandidate[] candidates)
RTCPeerConnection.PeerConnectionEventsonIceCandidatesRemoved in interface RTCPeerConnection.PeerConnectionEventspublic void onIceConnected()
RTCPeerConnection.PeerConnectionEventsonIceConnected in interface RTCPeerConnection.PeerConnectionEventspublic void onIceDisconnected()
RTCPeerConnection.PeerConnectionEventsonIceDisconnected in interface RTCPeerConnection.PeerConnectionEventspublic void onConnected()
RTCPeerConnection.PeerConnectionEventsonConnected in interface RTCPeerConnection.PeerConnectionEventspublic void onChannelClose()
RTCClient.SignalingEventsonChannelClose in interface RTCClient.SignalingEventspublic void onChannelBusy()
RTCClient.SignalingEventsonChannelBusy in interface RTCClient.SignalingEventspublic void onChannelTimeout()
onChannelTimeout in interface RTCClient.SignalingEventspublic void onChannelReject()
onChannelReject in interface RTCClient.SignalingEventspublic void onDisconnected()
RTCPeerConnection.PeerConnectionEventsonDisconnected in interface RTCPeerConnection.PeerConnectionEventspublic void onPeerConnectionClosed()
RTCPeerConnection.PeerConnectionEventsonPeerConnectionClosed in interface RTCPeerConnection.PeerConnectionEventspublic void onPeerConnectionError(java.lang.String description)
RTCPeerConnection.PeerConnectionEventsonPeerConnectionError in interface RTCPeerConnection.PeerConnectionEventspublic void acceptCall(java.lang.String pid)
acceptCall in interface RTCCallingDialogFragment.ActionListenerpublic void rejectCall(java.lang.String pid)
rejectCall in interface RTCCallingDialogFragment.ActionListenerpublic void abortCall(java.lang.String pid)
abortCall in interface RTCCallDialogFragment.ActionListenerpublic void timeoutCall(java.lang.String pid)
timeoutCall in interface RTCCallDialogFragment.ActionListenertimeoutCall in interface RTCCallingDialogFragment.ActionListenerpublic void failCall(java.lang.String pid)
failCall in interface RTCCallDialogFragment.ActionListener