diff options
author | Ronghua Wu <ronghuawu@google.com> | 2014-08-20 16:24:52 -0700 |
---|---|---|
committer | Ronghua Wu <ronghuawu@google.com> | 2014-08-22 10:56:36 -0700 |
commit | 0e9e3b213e70fd4be044524d2151e8585bf0acd8 (patch) | |
tree | 496b87c4ec442de900df8e6513ed558e15909596 /core/java/android/widget/VideoView.java | |
parent | 705e9879fc295fbb04ac3c1ba98ad37bb852379f (diff) | |
download | frameworks_base-0e9e3b213e70fd4be044524d2151e8585bf0acd8.zip frameworks_base-0e9e3b213e70fd4be044524d2151e8585bf0acd8.tar.gz frameworks_base-0e9e3b213e70fd4be044524d2151e8585bf0acd8.tar.bz2 |
VideoView: unhide setVideoURI api and add document.
Bug: 16899444
Change-Id: I576a4b334d8b1fe89f93df3587386ac7f9455687
Diffstat (limited to 'core/java/android/widget/VideoView.java')
-rw-r--r-- | core/java/android/widget/VideoView.java | 15 |
1 files changed, 14 insertions, 1 deletions
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; |