Java android.widget VideoView fields, constructors, methods, implement or subclass

Example usage for Java android.widget VideoView fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.widget VideoView.

The text is from its open source code.

Constructor

Method

intgetHeight()
Return the height of your view.
ViewGroup.LayoutParamsgetLayoutParams()
Get the LayoutParams associated with this view.
ViewParentgetParent()
Gets the parent of this view.
booleanisPlaying()
booleanrequestFocus()
Call this to try to give focus to a specific view or to one of its descendants.
voidseekTo(int msec)
voidsetKeepScreenOn(boolean keepScreenOn)
Controls whether the screen should remain on, modifying the value of #KEEP_SCREEN_ON .
voidsetLayoutParams(ViewGroup.LayoutParams params)
Set the layout parameters associated with this view.
voidsetMediaController(MediaController controller)
voidsetMinimumHeight(int minHeight)
Sets the minimum height of the view.
voidsetMinimumWidth(int minWidth)
Sets the minimum width of the view.
voidsetOnCompletionListener(OnCompletionListener l)
Register a callback to be invoked when the end of a media file has been reached during playback.
voidsetOnErrorListener(OnErrorListener l)
Register a callback to be invoked when an error occurs during playback or setup.
voidsetOnPreparedListener(MediaPlayer.OnPreparedListener l)
Register a callback to be invoked when the media file is loaded and ready to go.
voidsetOnTouchListener(OnTouchListener l)
Register a callback to be invoked when a touch event is sent to this view.
voidsetVideoPath(String path)
Sets video path.
voidsetVideoURI(Uri uri)
Sets video URI.
voidsetVisibility(int visibility)
voidsetZOrderMediaOverlay(boolean isMediaOverlay)
Control whether the surface view's surface is placed on top of another regular surface view in the window (but still behind the window itself).
voidstart()
voidstopPlayback()