Changes

Jump to: navigation, search

An Android Studio VideoView and MediaController Tutorial

15 bytes added, 19:57, 27 October 2016
m
Text replacement - "<table border="0" cellspacing="0">" to "<table border="0" cellspacing="0" width="100%">"
<googlehtmlet>BUY_ANDROID_STUDIOandroidstudio</googlehtmlet>
== Introducing the Android VideoView Class ==
<googlehtmlet>ADSDAQBOX_FLOWadsdaqbox_flow</googlehtmlet>
By far the simplest way to display video within an Android application is to use the VideoView class. This is a visual component which, when added to the layout of an activity, provides a surface onto which a video may be played. Android currently supports the following video formats:
This provides an indication of how easy it can be to integrate video playback into an Android application. Everything so far in this example has been achieved using a VideoView instance and three lines of code.
<googlehtmlet>BUY_ANDROID_STUDIOandroidstudio</googlehtmlet>
== Adding the MediaController to the Video View ==
<googlehtmlet>BUY_ANDROID_STUDIOandroidstudio</googlehtmlet>
 
<htmlet>ezoicbottom</htmlet>
<hr>
<table border="0" cellspacing="0" width="100%">

Navigation menu