public class VideoView
extends PercentFrameLayout
Modifier and Type | Class and Description |
---|---|
static class |
VideoView.ScalingType |
Constructor and Description |
---|
VideoView(android.content.Context context,
android.util.AttributeSet attrs)
Constructor will be called inflation from XML
|
Modifier and Type | Method and Description |
---|---|
SMSurfaceViewRenderer |
getRenderer()
Returns Surface Renderer of View
|
float |
getVideoAspectRatio()
Retrieves video aspect ratio from renderer
Returns 0 if renderer is not initialized or released
|
void |
release()
Removes child views and releases surface view renderer
|
void |
setMirror(boolean mirror)
Enables/Disables mirror view
|
void |
setScalingType(VideoView.ScalingType scalingType) |
public VideoView(android.content.Context context, android.util.AttributeSet attrs)
context
- attrs
- public SMSurfaceViewRenderer getRenderer()
public void release()
public void setMirror(boolean mirror)
mirror
- public float getVideoAspectRatio()
public void setScalingType(VideoView.ScalingType scalingType)