34,333
edits
Changes
→Introducing the Android MediaController Class
* '''setMediaController(MediaController)''' – Designates a MediaController instance allowing playback controls to be displayed to the user.
== Introducing Introducing the Android MediaController Class ==
If a video is simply played using the VideoView class, the user will not be given any control over the playback, which will run until the end of the video is reached. This issue can be addressed by attaching an instance of the MediaController class to the VideoView instance. The MediaController will then provide a set of controls allowing the user to manage the playback (such as pausing and seeking backwards/forwards in the video time-line).