public interface QHVCInteractiveVideoSourceEvent
Modifier and Type | Interface and Description |
---|---|
static interface |
QHVCInteractiveVideoSourceEvent.VideoTransMode
视频数据传输可选的模式
|
Modifier and Type | Method and Description |
---|---|
void |
attach() |
void |
createSurfaceTexture(int previewWidth,
int previewHeight)
创建SurfaceTexture
|
void |
deliverFrame(byte[] buf,
int width,
int height,
int cropLeft,
int cropTop,
int cropRight,
int cropBottom,
int rotation,
long ts,
int format)
传输视频帧数据给连麦
|
void |
detach() |
SurfaceTexture |
getSurfaceTexture()
获取SurfaceTexture,使用此surfaceTexture作为视频数据传输媒介。
|
void |
setVideoTransMode(int transMode)
设置视频数据传输模式
|
void attach()
void detach()
void setVideoTransMode(int transMode)
void deliverFrame(byte[] buf, int width, int height, int cropLeft, int cropTop, int cropRight, int cropBottom, int rotation, long ts, int format)
buf
- 视频帧数据width
- 原始视频宽height
- 原始视频宽cropLeft
- 左边裁剪距离cropTop
- 上边裁剪距离cropRight
- 右边裁剪距离cropBottom
- 下边裁剪距离rotation
- 旋转角度ts
- 时间戳format
- 视频格式,支持格式:I420、NV21、RGBA,见QHLiveCloudConstant.VideoFormatvoid createSurfaceTexture(int previewWidth, int previewHeight)
previewWidth
- 预览宽度previewHeight
- 预览高度SurfaceTexture getSurfaceTexture()