hyphenate_SDK3.0 3.7.6.3
hyphenate java IM SDK
Public Member Functions | List of all members
com.hyphenate.chat.EMCallOptions Class Reference

Public Member Functions

void setIsSendPushIfOffline (boolean isSend)
 
boolean getIsSendPushIfOffline ()
 
long getVideoResolutionWidth ()
 
long getVideoResolutionHeight ()
 
void setExternalAudioParam (boolean enable, int sampleRate, int channel)
 
long getMaxVideoKbps ()
 
void setVideoResolution (int width, int height)
 
void setMaxVideoKbps (long kbps)
 
void enableFixedVideoResolution (boolean enable)
 
void setMaxVideoFrameRate (int frameRate)
 
void setMinVideoKbps (int minVideoKbps)
 
void setAudioSampleRate (int sampleRate)
 
void setMaxAudioKbps (int maxAudioKbps)
 
void setEnableExternalVideoData (boolean enable)
 
void setRotation (int angel)
 
void setCallAudioSource (int source)
 
void setPingInterval (int interval)
 
void setLocalVideoViewMirror (@EMMirror.MIRROR int mirror)
 
void setClarityFirst (boolean clarityFirst)
 
boolean isClarityFirst ()
 
void setUse2channelsInput (boolean use)
 

Detailed Description

Contains call related options. Those configure options works like preference which exists in memory, take effect when make call. Call 'SetXXX' method doesn't take effect during call.

Member Function Documentation

◆ enableFixedVideoResolution()

void com.hyphenate.chat.EMCallOptions.enableFixedVideoResolution ( boolean  enable)

enable/disable auto adjust resolution

◆ getIsSendPushIfOffline()

boolean com.hyphenate.chat.EMCallOptions.getIsSendPushIfOffline ( )
See also
setIsSendPushIfOffline
Returns

◆ getMaxVideoKbps()

long com.hyphenate.chat.EMCallOptions.getMaxVideoKbps ( )

Video kbps range: 50 < videoKbps < 5000. Default value is 0, which is adaptive bitrate streaming. recommend use default value

◆ setAudioSampleRate()

void com.hyphenate.chat.EMCallOptions.setAudioSampleRate ( int  sampleRate)

config audio sample rate optional values: 8000Hz, 11025Hz, 22050Hz, 16000Hz, 44100Hz

◆ setCallAudioSource()

void com.hyphenate.chat.EMCallOptions.setCallAudioSource ( int  source)

set call audio source The parameter indicates the type of audio source set when collecting voice, the specific value is referenced android.media.MediaRecorder.AudioSource The default value VOICE_COMMUNICATION

Parameters
sourceaudio source

◆ setClarityFirst()

void com.hyphenate.chat.EMCallOptions.setClarityFirst ( boolean  clarityFirst)

Whether to set clarity first (default is fluency first)

◆ setEnableExternalVideoData()

void com.hyphenate.chat.EMCallOptions.setEnableExternalVideoData ( boolean  enable)

config video stream come from the external

◆ setExternalAudioParam()

void com.hyphenate.chat.EMCallOptions.setExternalAudioParam ( boolean  enable,
int  sampleRate,
int  channel 
)

Enable the function of input external custom audio data, please call it after joining the meeting successfully. (this function only supports mono channel at present.)

Parameters
enableWhether to use custom audio data True to use external audio data capabilities, the SDK does not start the device microphone to collect audio False is to enable the device microphone to collect audio without using external audio data
sampleRateAudio sampling rates such as 16,000, 44,100, 48,000 and so on
channelThe channel currently supports only mono channels

◆ setIsSendPushIfOffline()

void com.hyphenate.chat.EMCallOptions.setIsSendPushIfOffline ( boolean  isSend)

When remote is not online, whether to send offline push default NO

◆ setLocalVideoViewMirror()

void com.hyphenate.chat.EMCallOptions.setLocalVideoViewMirror ( @EMMirror.MIRROR int  mirror)

Set local video view mirror, can be set during a video call.

Parameters
mirror

◆ setMaxAudioKbps()

void com.hyphenate.chat.EMCallOptions.setMaxAudioKbps ( int  maxAudioKbps)

set audio bitrate, 6 ~ 510

Parameters
maxAudioKbpsmax audio bitrate

◆ setMaxVideoFrameRate()

void com.hyphenate.chat.EMCallOptions.setMaxVideoFrameRate ( int  frameRate)

config maximum of frame rate

◆ setMaxVideoKbps()

void com.hyphenate.chat.EMCallOptions.setMaxVideoKbps ( long  kbps)

default is 0, which means auto adjust encoding bit rate. This kbps can be viewed as a threshold, help to adjust video bit rate.

Parameters
kbps

◆ setMinVideoKbps()

void com.hyphenate.chat.EMCallOptions.setMinVideoKbps ( int  minVideoKbps)

config minimum of bit rate

◆ setPingInterval()

void com.hyphenate.chat.EMCallOptions.setPingInterval ( int  interval)

set ping interval, default 30s, min 10s

Parameters
intervalping interval

◆ setRotation()

void com.hyphenate.chat.EMCallOptions.setRotation ( int  angel)

set video rotational angel

Parameters
angelangel can be 0, 90, 180, 270

◆ setVideoResolution()

void com.hyphenate.chat.EMCallOptions.setVideoResolution ( int  width,
int  height 
)

Set camera capture resolution If width and height are both set to 0, SDK will use default resolution configured in console. will auto adjust the encoding bit rate, and use appropriate value for video width and height.

Parameters
width
height

The documentation for this class was generated from the following file: