Loading core/java/android/widget/VideoView.java +11 −1 Original line number Original line Diff line number Diff line Loading @@ -55,7 +55,17 @@ import java.util.Vector; * can load images from various sources (such as resources or content * can load images from various sources (such as resources or content * providers), takes care of computing its measurement from the video so that * providers), takes care of computing its measurement from the video so that * it can be used in any layout manager, and provides various display options * it can be used in any layout manager, and provides various display options * such as scaling and tinting. * such as scaling and tinting.<p> * * <em>Note: VideoView does not retain its full state when going into the * background.</em> In particular, it does not restore the current play state, * play position, selected tracks, or any subtitle tracks added via * {@link #addSubtitleSource addSubtitleSource()}. Applications should * save and restore these on their own in * {@link android.app.Activity#onSaveInstanceState} and * {@link android.app.Activity#onRestoreInstanceState}.<p> * Also note that the audio session id (from {@link #getAudioSessionId}) may * change from its previously returned value when the VideoView is restored. */ */ public class VideoView extends SurfaceView public class VideoView extends SurfaceView implements MediaPlayerControl, SubtitleController.Anchor { implements MediaPlayerControl, SubtitleController.Anchor { Loading Loading
core/java/android/widget/VideoView.java +11 −1 Original line number Original line Diff line number Diff line Loading @@ -55,7 +55,17 @@ import java.util.Vector; * can load images from various sources (such as resources or content * can load images from various sources (such as resources or content * providers), takes care of computing its measurement from the video so that * providers), takes care of computing its measurement from the video so that * it can be used in any layout manager, and provides various display options * it can be used in any layout manager, and provides various display options * such as scaling and tinting. * such as scaling and tinting.<p> * * <em>Note: VideoView does not retain its full state when going into the * background.</em> In particular, it does not restore the current play state, * play position, selected tracks, or any subtitle tracks added via * {@link #addSubtitleSource addSubtitleSource()}. Applications should * save and restore these on their own in * {@link android.app.Activity#onSaveInstanceState} and * {@link android.app.Activity#onRestoreInstanceState}.<p> * Also note that the audio session id (from {@link #getAudioSessionId}) may * change from its previously returned value when the VideoView is restored. */ */ public class VideoView extends SurfaceView public class VideoView extends SurfaceView implements MediaPlayerControl, SubtitleController.Anchor { implements MediaPlayerControl, SubtitleController.Anchor { Loading