3import androidx.annotation.AttrRes;
4import androidx.annotation.Nullable;
5import android.content.Context;
6import android.content.res.TypedArray;
7import android.util.AttributeSet;
8import android.widget.FrameLayout;
9import android.widget.ImageView;
11import androidx.annotation.NonNull;
13import us.zoom.videomeetings.R;
34 super(context, attrs);
40 super(context, attrs, defStyleAttr);
45 private void initView(@NonNull Context context) {
48 mVideoView.setLayoutParams(
new FrameLayout.LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT));
49 mImageView.setLayoutParams(
new FrameLayout.LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT));
56 private void initAttr(Context context, AttributeSet attrs) {
57 TypedArray typedArray = context.obtainStyledAttributes(attrs, R.styleable.ZoomVideoSDKVideoView);
58 renderTextureView = typedArray.getBoolean(R.styleable.ZoomVideoSDKVideoView_render_textureView,
false);
void initView(@NonNull Context context)
ZoomVideoSDKVideoView mVideoView
ZoomVideoSDKCameraShareView(@NonNull Context context, @Nullable AttributeSet attrs)
void initAttr(Context context, AttributeSet attrs)
boolean renderTextureView
use SurfaceView for performance ,use TextureView for ui animation.
ZoomVideoSDKCameraShareView(@NonNull Context context)
ZoomVideoSDKCameraShareView(@NonNull Context context, @Nullable AttributeSet attrs, @AttrRes int defStyleAttr)
ZoomVideoSDKVideoView getVideoView()
Zoom Video SDK video canvas view.