public class EMVideoCallHelper
extends java.lang.Object
限定符和类型 | 类和说明 |
---|---|
static class |
EMVideoCallHelper.EMVideoOrientation |
限定符和类型 | 方法和说明 |
---|---|
static EMVideoCallHelper |
getInstance()
get global EMVideoCallHelper instance
|
int |
getLocalBitrate()
发送视频比特率,单位为kbps
|
int |
getRemoteBitrate()
接收视频比特率,单位为kbps
|
int |
getVideoFramerate()
帧率
|
int |
getVideoHeight()
对方图像高度
|
int |
getVideoLostcnt()
每一百个包中丢包个数
|
EMVideoCallHelper.EMVideoOrientation |
getVideoOrientation() |
int |
getVideoTimedelay()
//时延,单位是ms
|
int |
getVideoWidth()
对方图像宽度
|
void |
onWindowResize(int width,
int height,
int format)
called when the surface view is changed
|
void |
processPreviewData(int width,
int height,
byte[] data)
notify our video engine to process video input data
|
void |
setRenderFlag(boolean flag)
false为不再显示对方图像
|
void |
setResolution(int width,
int height) |
void |
setSurfaceView(SurfaceView surfaceView)
set the surface view to show receiver's video
|
void |
setVideoBitrate(int bitrate)
设置视频比特率
|
void |
setVideoOrientation(EMVideoCallHelper.EMVideoOrientation orientation) |
void |
startVideoRecord(java.lang.String dirPath)
开始视频录制
|
java.lang.String |
stopVideoRecord()
停止视频录制
|
int |
takePicture(java.lang.String filename) |
public static EMVideoCallHelper getInstance()
public void processPreviewData(int width, int height, byte[] data)
width
- height
- data
- public void onWindowResize(int width, int height, int format)
public void setSurfaceView(SurfaceView surfaceView)
surfaceView
- public void setResolution(int width, int height)
public int takePicture(java.lang.String filename)
public void setVideoOrientation(EMVideoCallHelper.EMVideoOrientation orientation)
public EMVideoCallHelper.EMVideoOrientation getVideoOrientation()
public int getVideoTimedelay()
public int getVideoFramerate()
public int getVideoLostcnt()
public int getVideoWidth()
public int getVideoHeight()
public int getRemoteBitrate()
public int getLocalBitrate()
public void setRenderFlag(boolean flag)
flag
- public void startVideoRecord(java.lang.String dirPath)
dirPath
- 录制的文件存储目录public java.lang.String stopVideoRecord()
public void setVideoBitrate(int bitrate)
bitrate
- 比如想输入150K,对应参数150Copyright © 2014 EaseMob.com. All Rights Reserved.