hyphenate_SDK3.0  3.8.1
hyphenatejavaIMSDK
Public 成员函数 | Protected 属性 | 所有成员列表
com.hyphenate.chat.EMStreamParam类 参考

Public 成员函数

String getName ()
 
void setName (String name)
 
boolean isVideoOff ()
 
void setVideoOff (boolean videoOff)
 
boolean isAudioOff ()
 
void setAudioOff (boolean audioOff)
 
void setUseBackCamera (boolean useBackCamera)
 
boolean isUseBackCamera ()
 
int getVideoWidth ()
 
void setVideoWidth (int videoWidth)
 
int getVideoHeight ()
 
void setVideoHeight (int videoHeight)
 
String getExtension ()
 
void setExtension (String extension)
 
View getShareView ()
 
void setShareView (View shareView)
 
EMConferenceStream.StreamType getStreamType ()
 
void setStreamType (EMConferenceStream.StreamType streamType)
 
int getMaxVideoKbps ()
 
void setMaxVideoKbps (int maxVideoKbps)
 
int getMinVideoKbps ()
 
void setMinVideoKbps (int minVideoKbps)
 
int getMaxAudioKbps ()
 
void setMaxAudioKbps (int maxAudioKbps)
 
int getAudioSampleRate ()
 
void setAudioSampleRate (int audioSampleRate)
 
boolean isEnableFixedVideoResolution ()
 
void setEnableFixedVideoResolution (boolean enableFixedVideoResolution)
 
boolean isUsingExternalSource ()
 
void setUsingExternalSource (boolean usingExternalSource)
 
boolean isClarityFirst ()
 

Protected 属性

String name
 
boolean videoOff
 
boolean audioOff
 
boolean useBackCamera
 
int videoWidth
 
int videoHeight
 
String extension
 
View shareView
 
EMConferenceStream.StreamType streamType
 
int maxVideoKbps
 
int minVideoKbps
 
int maxAudioKbps
 
int audioSampleRate
 
boolean enableFixedVideoResolution
 
boolean isClarityFirst = false
 
boolean usingExternalSource
 

详细描述

Created by lzan13 on 2017/8/16.

本地推流配置信息类

类成员变量说明

boolean com.hyphenate.chat.EMStreamParam.audioOff
protected

是否静音

int com.hyphenate.chat.EMStreamParam.audioSampleRate
protected

设置音频采样频率,需要在第一次通话之前设置 参考值8000Hz、11025Hz、22050Hz、16000Hz、44100Hz、48000Hz

boolean com.hyphenate.chat.EMStreamParam.enableFixedVideoResolution
protected

开启或关闭自动调节分辨率

String com.hyphenate.chat.EMStreamParam.extension
protected

扩展字段

boolean com.hyphenate.chat.EMStreamParam.isClarityFirst = false
protected

是否设置清晰度优先(false 不需要操作 ,true 设置最小视频码率为500)

int com.hyphenate.chat.EMStreamParam.maxAudioKbps
protected

设置最大音频比特率,取值范围 6 ~ 510

参数
maxAudioKbps最大音频码率
int com.hyphenate.chat.EMStreamParam.maxVideoKbps
protected

最大视频码率 范围 50 < videoKbps < 5000, 默认0, 0为自适应 建议设置为0

int com.hyphenate.chat.EMStreamParam.minVideoKbps
protected

设置最小的网络带宽

String com.hyphenate.chat.EMStreamParam.name
protected

推流配置名称

View com.hyphenate.chat.EMStreamParam.shareView
protected

分享的 view

EMConferenceStream.StreamType com.hyphenate.chat.EMStreamParam.streamType
protected

|~chinese 推送 stream 类型

boolean com.hyphenate.chat.EMStreamParam.useBackCamera
protected

使用后置摄像头 默认为 false

boolean com.hyphenate.chat.EMStreamParam.usingExternalSource
protected

开启或关闭用户自定义数据

int com.hyphenate.chat.EMStreamParam.videoHeight
protected

视频高度

boolean com.hyphenate.chat.EMStreamParam.videoOff
protected

是否关闭视频

int com.hyphenate.chat.EMStreamParam.videoWidth
protected

视频宽度


该类的文档由以下文件生成: