public class Remon
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static EglBase |
rootEglBase |
java.lang.String |
TAG |
static java.lang.String |
version |
Constructor and Description |
---|
Remon(android.content.Context ctx,
Config config)
Remon constructor.
|
Remon(android.content.Context ctx,
Config config,
RemonObserver observer)
A constructor that takes a Remon object by one call and connects to the RemoteMonster API to complete the authentication
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Remon Releases all resources owned by the object.
|
void |
connectChannel(java.lang.String channelId)
If you enter a channel (room) already opened or if there is no room already opened, open the room with the name of the room you entered.
|
void |
createRoom(java.lang.String name)
Create channel for broadcasting function.
|
boolean |
equals(java.lang.Object o) |
void |
fetchCalls() |
void |
fetchCasts() |
static Config |
getConfig() |
MediaManager |
getMediaManager() |
static Remon |
getRemon() |
RemonContext |
getRemonContext() |
int |
hashCode() |
void |
init() |
void |
init(RemonObserver observer)
If you have created a Remon object without RemonObserver, you must run this init to register the Callback class RemonObserver.
|
void |
joinRoom(java.lang.String id)
Connect to broadcast channel and receive in viewonly mode
|
void |
pauseLocalVideo() |
void |
searchChannels(java.lang.String channelId)
Searching for channels.
|
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 |
sendMessage(java.lang.String code,
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 |
setAudioEnabled(boolean audio)
Can not hear audio
|
void |
setAudioVolume(int volume)
Adjust remote audio volume from 0 to 10
|
void |
setAudioVolumeDown() |
void |
setAudioVolumeUp() |
void |
setLocalVideoEnabled(boolean video)
Specify local video on / off
|
void |
setMicMute(boolean mute)
Turn your microphone off / on so that the other person can hear or not hear you
|
void |
setRemoteVideoEnabled(boolean video)
Specifies remote video on / off
|
void |
setVideoEnabled(boolean video)
Makes videos in both local and remote invisible
|
boolean |
showLocalvideo()
If you want to create a Remon object and display my local camera screen
before executing the connectChannel method, perform this method
|
void |
softClose()
If you are in a situation where you need to terminate the communication and need a new communication again,
running the softClose command instead of close is also helpful for faster connections.
|
void |
startLocalVideo() |
void |
startVideoSource() |
void |
stopVideoSource() |
void |
switchCamera()
Changed the front camera of the front of his smartphone camera (toggle method)
|
public static final java.lang.String version
public final java.lang.String TAG
public static EglBase rootEglBase
public Remon(android.content.Context ctx, Config config) throws RemonException
ctx
- Android Context. Usually we pass Context of Activity. It is usually necessary to handle processing related to Mediaconfig
- Various configuration information needed to create RemoteMonster. RemonException
public Remon(android.content.Context ctx, Config config, RemonObserver observer) throws RemonException
ctx
- Android Context. Usually, we pass the context of Activity. It is usually necessary to handle processing related to Mediaconfig
- Various configuration information needed to create RemoteMonster.observer
- Callback class for RemoteMonster APIRemonException
- public static Remon getRemon()
public static Config getConfig()
public MediaManager getMediaManager()
public void init()
public void init(RemonObserver observer)
observer
- Callback class for RemoteMonster API public void searchChannels(java.lang.String channelId)
channelId
- The name of the room or channel. Searchable part of all. public void fetchCasts()
public void fetchCalls()
public void sendMessage(java.lang.String msg)
msg
- A textual message to send to the other party. public void sendMessage(java.lang.String code, java.lang.String msg)
code
- Can specify the kind of messagemsg
- A textual message to send to the other party. public void createRoom(java.lang.String name)
name
- The name of the broadcast channel public void joinRoom(java.lang.String id)
id
- Room id value of broadcasting. Not name public void connectChannel(java.lang.String channelId)
channelId
- The name of the room to enter or open. public void setAudioEnabled(boolean audio)
audio
- public void setAudioVolume(int volume)
volume
- public void setVideoEnabled(boolean video)
video
- public void setLocalVideoEnabled(boolean video)
video
- public void setRemoteVideoEnabled(boolean video)
video
- public void pauseLocalVideo()
public void setMicMute(boolean mute)
mute
- public void startLocalVideo()
public boolean showLocalvideo()
public void switchCamera()
public RemonContext getRemonContext()
public void stopVideoSource()
public void startVideoSource()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public void softClose()
public void close()
public void setAudioVolumeUp()
public void setAudioVolumeDown()