Loading api/current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -39689,6 +39689,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(); core/java/android/widget/VideoView.java +14 −1 Original line number Diff line number Diff line Loading @@ -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; Loading Loading
api/current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -39689,6 +39689,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();
core/java/android/widget/VideoView.java +14 −1 Original line number Diff line number Diff line Loading @@ -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; Loading