示例#1
0
 /**
  * Sets the path to the video. This path can be a web address (e.g. http://) or an absolute local
  * path (e.g. file://)
  *
  * @param path The path to the video
  */
 public void setVideoPath(String path) {
   setVideoURI(Uri.parse(path));
 }
示例#2
0
 /**
  * Stops the current video playback and resets the listener states so that we receive the
  * callbacks for events like onPrepared
  */
 public void reset() {
   stopPlayback();
   setVideoURI(null);
 }
示例#3
0
 /**
  * Sets the Uri location for the video to play. If the media format cannot be determine MP4 will
  * be assumed. You can also manually specify the media format with {@link #setVideoURI(Uri,
  * MediaUtil.MediaType)}
  *
  * @param uri The video's Uri
  */
 public void setVideoURI(Uri uri) {
   setVideoURI(uri, MediaUtil.MediaType.MP4);
 }