VHVideoPlayerView 看直播展示View

类名

VHVideoPlayerView

方法

1、 构造方法

/**
 * 获取View的布局方式,需要现在XML中定义
 */
videoCapture = (VHVideoCaptureView) this.findViewById(R.id.videoCaptureView);

/**
 * XML中定义,代码展示
 */
<com.vhall.lss.push.VHVideoCaptureView
	android:id="@+id/videoCaptureView"
	android:layout_width="match_parent"
	android:layout_height="match_parent">
</com.vhall.lss.push.VHVideoCaptureView>

2、 setDrawMode

/**
 * 设置观看模式
 * VHLivePushFormat.DRAW_MODE_NONE 默认
 * VHLivePushFormat.DRAW_MODE_ASPECTFIT 将图像等比例缩放,适配最长边
 * VHLivePushFormat.DRAW_MODE_ASPECTFILL 将图像等比例铺满整个屏幕
 */
public void setDrawMode(int mode) {}