public class RemonCall
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
RemonCall.Builder |
static interface |
RemonCall.onCloseCallback |
static interface |
RemonCall.onCompleteCallback |
static interface |
RemonCall.onConnectCallback |
static interface |
RemonCall.onErrorCallback |
static interface |
RemonCall.onFetchCallback |
static interface |
RemonCall.onInitCallback |
static interface |
RemonCall.onMessageCallback |
static interface |
RemonCall.onStatCallback |
static class |
RemonCall.RemonCallInternalBuilder |
Constructor and Description |
---|
RemonCall() |
RemonCall(SurfaceViewRenderer localView,
SurfaceViewRenderer remoteView,
java.lang.String serviceId,
java.lang.String key,
java.lang.String restUrl,
java.lang.String wsUrl,
java.lang.String wssUrl,
int videoWidth,
int videoHeight,
int videoFps,
java.lang.String iceServers,
int logLevel,
java.lang.String videoCodec,
int firstVideoBitrate,
int firstAudioBitrate,
int statInterval,
boolean isVideoCall,
boolean debugMode,
boolean useHwAcc,
java.lang.String speakerPhone,
java.lang.String logFilePath,
RemonCall.onInitCallback onInit,
RemonCall.onConnectCallback onConnect,
RemonCall.onCompleteCallback onComplete,
RemonCall.onCloseCallback onClose,
RemonCall.onStatCallback onStat,
RemonCall.onMessageCallback onMessage,
RemonCall.onFetchCallback onFetch,
RemonCall.onErrorCallback onError,
int streamType,
Config config,
Remon remon,
android.content.Context context,
RemonCall.onInitCallback initCallback,
android.widget.TextView tvStatView) |
Modifier and Type | Method and Description |
---|---|
static RemonCall.Builder |
builder()
Builder to create RemonCall for communication
|
void |
close()
Remon resource release and communication termination function
Disable websocket, mediamanager, videocapturer, audiocapturer, etc.
|
void |
connect(java.lang.String channelId)
It is used to start communication using option values generated by Builder.
|
void |
connect(java.lang.String channelId,
Config config)
It is used to start communication by using the configured Config.
|
void |
enableStatView(boolean isShow,
android.widget.RelativeLayout rlRemoteView)
Create a view that populates the stat information of remonCall.
|
void |
fetchCalls()
Retrieve communications that are currently generated from the same serviceId.
|
Config |
getBuildedConfig()
Retrieves the default config.
|
int |
getHealth()
Returns the condition of the current communication state as a number between 1 and 5, 1(very good) ~ 5(very bad)
|
java.lang.String |
getId()
Returns the connected channelId.
|
java.lang.String |
getToken() |
void |
hardClose()
A function that releases all resources of remon and terminates communication
OnClose is called when the release is complete.
|
void |
onClose(RemonCall.onCloseCallback callback)
Called when communication is successfully terminated.
|
void |
onComplete(RemonCall.onCompleteCallback callback)
Called when fully connected and ready for communication.
|
void |
onConnect(RemonCall.onConnectCallback callback)
Called when RemonCall is Init.
|
void |
onError(RemonCall.onErrorCallback callback)
When an error occurs during remon use, description comes in with an error code.
|
void |
onFetch(RemonCall.onFetchCallback callback)
A list of communications currently retrieved from the same serviceId comes in.
|
void |
onInit(RemonCall.onInitCallback callback)
Called when RemonCall is Init.
|
void |
onMessage(RemonCall.onMessageCallback callback)
Receive when the other party has done sendMessage.
|
void |
onStat(RemonCall.onStatCallback callback)
The stat information about the communication status comes in.
|
void |
pauseLocalVideo(boolean isPause)
Specifies video on / off
|
static RemonCall.RemonCallInternalBuilder |
remonBuilder() |
void |
sendMessage(java.lang.String msg)
You can send a message of a certain character format to each other while connected to each other by communication.
|
void |
setAudioVolume(int volume)
Adjust remote audio volume from 0 to 10
|
void |
setContext(android.content.Context context)
A setter that creates RemonCall and specifies the context used to set the compatibility.
|
void |
setVolumeControlStream(android.app.Activity activity,
int streamType)
Setting media stream type to be controlled by volume hardware key during webRtc usage
Must be set before communication starts.
|
void |
showLocalVideo()
If you want to create a RemonCall object and want to see my local camera screen in advance before executing the connect method, perform this method
|
void |
switchCamera()
Function to change the front and rear of the RemonCall's camera
|
RemonCall.RemonCallInternalBuilder |
toBuilder() |
void |
volumeDown()
Decrease audio volume by 1
|
void |
volumeUp()
Increase audio volume by 1
|
public RemonCall()
public RemonCall(SurfaceViewRenderer localView, SurfaceViewRenderer remoteView, java.lang.String serviceId, java.lang.String key, java.lang.String restUrl, java.lang.String wsUrl, java.lang.String wssUrl, int videoWidth, int videoHeight, int videoFps, java.lang.String iceServers, int logLevel, java.lang.String videoCodec, int firstVideoBitrate, int firstAudioBitrate, int statInterval, boolean isVideoCall, boolean debugMode, boolean useHwAcc, java.lang.String speakerPhone, java.lang.String logFilePath, RemonCall.onInitCallback onInit, RemonCall.onConnectCallback onConnect, RemonCall.onCompleteCallback onComplete, RemonCall.onCloseCallback onClose, RemonCall.onStatCallback onStat, RemonCall.onMessageCallback onMessage, RemonCall.onFetchCallback onFetch, RemonCall.onErrorCallback onError, int streamType, Config config, Remon remon, android.content.Context context, RemonCall.onInitCallback initCallback, android.widget.TextView tvStatView)
public static RemonCall.Builder builder()
public void setVolumeControlStream(android.app.Activity activity, int streamType)
activity
- streamType
- public Config getBuildedConfig()
public void connect(java.lang.String channelId)
channelId
- public void connect(java.lang.String channelId, Config config)
channelId
- public void close()
public void hardClose()
public void switchCamera()
public void sendMessage(java.lang.String msg)
msg
- A textual message to send to the other party. public void setAudioVolume(int volume)
volume
- public void volumeUp()
public void volumeDown()
public void pauseLocalVideo(boolean isPause)
isPause
- public void showLocalVideo()
public int getHealth()
public java.lang.String getId()
public java.lang.String getToken()
public void setContext(android.content.Context context)
context
- public void enableStatView(boolean isShow, android.widget.RelativeLayout rlRemoteView)
isShow
- rlRemoteView
- public void fetchCalls()
public void onInit(RemonCall.onInitCallback callback)
callback
- onInitCallbackpublic void onConnect(RemonCall.onConnectCallback callback)
callback
- onCreateCallbackpublic void onComplete(RemonCall.onCompleteCallback callback)
callback
- onCompleteCallbackpublic void onStat(RemonCall.onStatCallback callback)
callback
- onStatCallbackpublic void onClose(RemonCall.onCloseCallback callback)
callback
- onCloseCallbackpublic void onMessage(RemonCall.onMessageCallback callback)
callback
- onMessageCallbackpublic void onFetch(RemonCall.onFetchCallback callback)
callback
- onFetchCallbackpublic void onError(RemonCall.onErrorCallback callback)
callback
- onErrorCallbackpublic static RemonCall.RemonCallInternalBuilder remonBuilder()
public RemonCall.RemonCallInternalBuilder toBuilder()