An Android View to manage and display a video file.
The VideoView class can load images from various sources (such as resources or content providers), takes care of computing its measurement from the video so that it can be used in any layout manager, and provides various display options such as scaling and tinting.
Methods of this class
void setVideoPath(String pth)
: This method will set the absolute path of the video file which is going to be play.
void setMediaController(MediaController cntlor)
: This method is used to set the controller for the controls of playback .
void start()
: This method is used to start the playback of video file.
void pause()
: This method is used to pause the current playback.
boolean canPause()
: This method will tell whether video view is able to pause.
boolean canSeekForward()
: This method will return true value if video view is able to seek forward.
int getDuration()
: This method is used to get the total duration of video view.
boolean isPlaying()
: This method will return true value if the current video view is in play state.
void resume()
: This method is used to play the resumed file.