public class VideoSurfaceView
extends SurfaceView
| Constructor and Description |
|---|
VideoSurfaceView(Context context) |
VideoSurfaceView(Context context,
AttributeSet attrs) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
onMeasure(int widthMeasureSpec,
int heightMeasureSpec) |
void |
setAspectRatio(float widthHeightRatio)
Set the aspect ratio that this
VideoSurfaceView should satisfy. |
public VideoSurfaceView(Context context)
public VideoSurfaceView(Context context,
AttributeSet attrs)
public void setAspectRatio(float widthHeightRatio)
VideoSurfaceView should satisfy.widthHeightRatio - The width to height ratio.protected void onMeasure(int widthMeasureSpec,
int heightMeasureSpec)