hyphenate_SDK3.0
3.8.1
hyphenatejavaIMSDK
|
Public 成员函数 | |
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) |
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 | ) |
开启或关闭自动调节分辨率
boolean com.hyphenate.chat.EMCallOptions.getIsSendPushIfOffline | ( | ) |
long com.hyphenate.chat.EMCallOptions.getMaxVideoKbps | ( | ) |
最大视频码率 范围 50 < videoKbps < 5000, 默认0, 0为自适应 建议设置为0
void com.hyphenate.chat.EMCallOptions.setAudioSampleRate | ( | int | sampleRate | ) |
设置音频采样频率,需要在第一次通话之前设置 参考值8000Hz、11025Hz、22050Hz、16000Hz、44100Hz、48000Hz
void com.hyphenate.chat.EMCallOptions.setCallAudioSource | ( | int | source | ) |
设置音视频通话时音频源 参数表示采集语音时所设置的音频源类型,具体值参考android.media.MediaRecorder.AudioSource 默认值 VOICE_COMMUNICATION
source | 音频源类型 |
void com.hyphenate.chat.EMCallOptions.setClarityFirst | ( | boolean | clarityFirst | ) |
设置是否清晰度优先(默认为流畅度优先)
void com.hyphenate.chat.EMCallOptions.setEnableExternalVideoData | ( | boolean | enable | ) |
配置是否通过外面输入视频数据流
void com.hyphenate.chat.EMCallOptions.setExternalAudioParam | ( | boolean | enable, |
int | sampleRate, | ||
int | channel | ||
) |
开启输入外部自定义音频数据功能,请在加入会议成功后调用.(该功能目前只支持单声道)
enable | 是否使用自定义音频数据 true为 使用外部音频数据功能,SDK不启动设备麦克风采集音频 false为 不使用外部音频数据功能,SDK启动设备麦克风采集音频 |
sampleRate | 音频采样率 比如 16000 ,44100, 48000等 |
channel | 音频采集声道 目前只支持单声道 |
void com.hyphenate.chat.EMCallOptions.setIsSendPushIfOffline | ( | boolean | isSend | ) |
被叫方不在线时,是否推送来电通知 如果设置为NO,不推送通知,返回EMErrorCallRemoteOffline 默认NO
void com.hyphenate.chat.EMCallOptions.setLocalVideoViewMirror | ( | @EMMirror.MIRROR int | mirror | ) |
设置本地视频view镜像,可在通话过程中动态设置
mirror |
void com.hyphenate.chat.EMCallOptions.setMaxAudioKbps | ( | int | maxAudioKbps | ) |
设置最大音频比特率,取值范围 6 ~ 510
maxAudioKbps | 最大音频码率 |
void com.hyphenate.chat.EMCallOptions.setMaxVideoFrameRate | ( | int | frameRate | ) |
设置最大的视频帧率
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 | ) |
设置最小的网络带宽
void com.hyphenate.chat.EMCallOptions.setPingInterval | ( | int | interval | ) |
设置ping 间隔,默认为30s,最小为10s
interval | ping 间隔市场 |
void com.hyphenate.chat.EMCallOptions.setRotation | ( | int | 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 |