diff options
-rw-r--r-- | api/current.txt | 1 | ||||
-rw-r--r-- | core/java/android/widget/VideoView.java | 15 |
2 files changed, 15 insertions, 1 deletions
diff --git a/api/current.txt b/api/current.txt index 50d40f2..cca7aec 100644 --- a/api/current.txt +++ b/api/current.txt @@ -39688,6 +39688,7 @@ package android.widget { method public void setOnPreparedListener(android.media.MediaPlayer.OnPreparedListener); method public void setVideoPath(java.lang.String); method public void setVideoURI(android.net.Uri); + method public void setVideoURI(android.net.Uri, java.util.Map<java.lang.String, java.lang.String>); method public void start(); method public void stopPlayback(); method public void suspend(); diff --git a/core/java/android/widget/VideoView.java b/core/java/android/widget/VideoView.java index 8ee0a1b..cb0c3d0 100644 --- a/core/java/android/widget/VideoView.java +++ b/core/java/android/widget/VideoView.java @@ -230,16 +230,29 @@ public class VideoView extends SurfaceView mTargetState = STATE_IDLE; } + /** + * Sets video path. + * + * @param path the path of the video. + */ public void setVideoPath(String path) { setVideoURI(Uri.parse(path)); } + /** + * Sets video URI. + * + * @param uri the URI of the video. + */ public void setVideoURI(Uri uri) { setVideoURI(uri, null); } /** - * @hide + * Sets video URI using specific headers. + * + * @param uri the URI of the video. + * @param headers the headers for the URI request. */ public void setVideoURI(Uri uri, Map<String, String> headers) { mUri = uri; |