|
NERtc Android SDK
V4.6.20
|
Public 成员函数 | |
| NERtcVideoView (Context context) | |
| NERtcVideoView (Context context, AttributeSet attrs) | |
| void | setScalingType (int type) |
| void | setScalingType (ScalingType type) |
| void | setMirror (boolean mirror) |
| void | setZOrderMediaOverlay (boolean isMediaOverlay) |
| void | clearImage () |
to be added
| com.netease.lava.nertc.sdk.video.NERtcVideoView.NERtcVideoView | ( | Context | context | ) |
| context | context |
| com.netease.lava.nertc.sdk.video.NERtcVideoView.NERtcVideoView | ( | Context | context, |
| AttributeSet | attrs | ||
| ) |
| context | context |
| attrs | context |
| void com.netease.lava.nertc.sdk.video.NERtcVideoView.clearImage | ( | ) |
清除画布。
| void com.netease.lava.nertc.sdk.video.NERtcVideoView.setMirror | ( | boolean | mirror | ) |
设置是否开启镜像模式,即画面是否左右翻转。
如果使用前置摄像头,SDK 默认启用镜像模式;如果使用后置摄像头,SDK 默认关闭镜像模式。
| mirror | 是否开启镜像模式。 |
| void com.netease.lava.nertc.sdk.video.NERtcVideoView.setScalingType | ( | int | type | ) |
设置视频的显示模式。
| type | NERtcConstants.VideoScalingType。 注意:该方法通过 NERtcVideoView 进行设置。 |
| void com.netease.lava.nertc.sdk.video.NERtcVideoView.setScalingType | ( | ScalingType | type | ) |
设置显示模式。
| type | NERtcConstants.VideoScalingType。 |
| void com.netease.lava.nertc.sdk.video.NERtcVideoView.setZOrderMediaOverlay | ( | boolean | isMediaOverlay | ) |
设置视频View是否在Z轴上覆盖。
| isMediaOverlay | true:覆盖 false:不覆盖。 |