Example usage for Java android.widget VideoView fields, constructors, methods, implement or subclass
The text is from its open source code.
int | getHeight() Return the height of your view. |
ViewGroup.LayoutParams | getLayoutParams() Get the LayoutParams associated with this view. |
ViewParent | getParent() Gets the parent of this view. |
boolean | isPlaying() |
boolean | requestFocus() Call this to try to give focus to a specific view or to one of its descendants. |
void | seekTo(int msec) |
void | setKeepScreenOn(boolean keepScreenOn) Controls whether the screen should remain on, modifying the value of #KEEP_SCREEN_ON . |
void | setLayoutParams(ViewGroup.LayoutParams params) Set the layout parameters associated with this view. |
void | setMediaController(MediaController controller) |
void | setMinimumHeight(int minHeight) Sets the minimum height of the view. |
void | setMinimumWidth(int minWidth) Sets the minimum width of the view. |
void | setOnCompletionListener(OnCompletionListener l) Register a callback to be invoked when the end of a media file has been reached during playback. |
void | setOnErrorListener(OnErrorListener l) Register a callback to be invoked when an error occurs during playback or setup. |
void | setOnPreparedListener(MediaPlayer.OnPreparedListener l) Register a callback to be invoked when the media file is loaded and ready to go. |
void | setOnTouchListener(OnTouchListener l) Register a callback to be invoked when a touch event is sent to this view. |
void | setVideoPath(String path) Sets video path. |
void | setVideoURI(Uri uri) Sets video URI. |
void | setVisibility(int visibility) |
void | setZOrderMediaOverlay(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). |
void | start() |
void | stopPlayback() |