hyphenate_SDK3.0
3.5.6
hyphenatejavaIMSDK
|
Public Member Functions | |
void | setIsSendPushIfOffline (boolean isSend) |
boolean | getIsSendPushIfOffline () |
long | getVideoResolutionWidth () |
long | getVideoResolutionHeight () |
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) |
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.
void com.hyphenate.chat.EMCallOptions.enableFixedVideoResolution | ( | boolean | enable | ) |
enable/disable auto adjust resolution
boolean com.hyphenate.chat.EMCallOptions.getIsSendPushIfOffline | ( | ) |
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
void com.hyphenate.chat.EMCallOptions.setAudioSampleRate | ( | int | sampleRate | ) |
config audio sample rate optional values: 8000Hz, 11025Hz, 22050Hz, 16000Hz, 44100Hz
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
source | audio source |
void com.hyphenate.chat.EMCallOptions.setEnableExternalVideoData | ( | boolean | enable | ) |
config video stream come from the external
void com.hyphenate.chat.EMCallOptions.setIsSendPushIfOffline | ( | boolean | isSend | ) |
When remote is not online, whether to send offline push default NO
void com.hyphenate.chat.EMCallOptions.setLocalVideoViewMirror | ( | @EMMirror.MIRROR int | mirror | ) |
Set local video view mirror, can be set during a video call.
mirror |
void com.hyphenate.chat.EMCallOptions.setMaxAudioKbps | ( | int | maxAudioKbps | ) |
set audio bitrate, 6 ~ 510
maxAudioKbps | max audio bitrate |
void com.hyphenate.chat.EMCallOptions.setMaxVideoFrameRate | ( | int | frameRate | ) |
config maximum of frame rate
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.
kbps |
void com.hyphenate.chat.EMCallOptions.setMinVideoKbps | ( | int | minVideoKbps | ) |
config minimum of bit rate
void com.hyphenate.chat.EMCallOptions.setPingInterval | ( | int | interval | ) |
set ping interval, default 30s, min 10s
interval | ping interval |
void com.hyphenate.chat.EMCallOptions.setRotation | ( | int | angel | ) |
set video rotational angel
angel | angel can be 0, 90, 180, 270 |
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.
width | |
height |