Bingo.
51<http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/4.1.1_r1/android/widget/VideoView.java#51> *public* *class* VideoView *extends* SurfaceView<http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/4.1.1_r1/android/view/SurfaceView.java#SurfaceView> *implements* MediaPlayerControl<http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/4.1.1_r1/android/widget/MediaController.java#MediaController.MediaPlayerControl> { 52<http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/4.1.1_r1/android/widget/VideoView.java#52> *private* String<http://grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/6-b14/java/lang/String.java#String> TAG = "VideoView"; 53<http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/4.1.1_r1/android/widget/VideoView.java#53> // settable by the client 54<http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/4.1.1_r1/android/widget/VideoView.java#54> *private* Uri<http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/4.1.1_r1/android/net/Uri.java#Uri> mUri; 55<http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/4.1.1_r1/android/widget/VideoView.java#55> *private* Map<http://grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/6-b14/java/util/Map.java#Map> <String<http://grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/6-b14/java/lang/String.java#String> , String<http://grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/6-b14/java/lang/String.java#String> > mHeaders; 56<http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/4.1.1_r1/android/widget/VideoView.java#56> *private* *int* mDuration; 57<http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/4.1.1_r1/android/widget/VideoView.java#57> 58<http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/4.1.1_r1/android/widget/VideoView.java#58> // all possible internal states 59<http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/4.1.1_r1/android/widget/VideoView.java#59> *private* *static* *final* *int* STATE_ERROR = -1; 60<http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/4.1.1_r1/android/widget/VideoView.java#60> *private* *static* *final* *int* STATE_IDLE = 0; 61<http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/4.1.1_r1/android/widget/VideoView.java#61> *private* *static* *final* *int* STATE_PREPARING = 1; 62<http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/4.1.1_r1/android/widget/VideoView.java#62> *private* *static* *final* *int* STATE_PREPARED = 2; 63<http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/4.1.1_r1/android/widget/VideoView.java#63> *private* *static* *final* *int* STATE_PLAYING = 3; 64<http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/4.1.1_r1/android/widget/VideoView.java#64> *private* *static* *final* *int* STATE_PAUSED = 4; 65<http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/4.1.1_r1/android/widget/VideoView.java#65> *private* *static* *final* *int* STATE_PLAYBACK_COMPLETED = 5; 66<http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/4.1.1_r1/android/widget/VideoView.java#66> 67<http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/4.1.1_r1/android/widget/VideoView.java#67> // mCurrentState is a VideoView object's current state. 68<http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/4.1.1_r1/android/widget/VideoView.java#68> // mTargetState is the state that a method caller intends to reach. 69<http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/4.1.1_r1/android/widget/VideoView.java#69> // For instance, regardless the VideoView object's current state, 70<http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/4.1.1_r1/android/widget/VideoView.java#70> // calling pause() intends to bring the object to a target state 71<http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/4.1.1_r1/android/widget/VideoView.java#71> // of STATE_PAUSED. 72<http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/4.1.1_r1/android/widget/VideoView.java#72> *private* *int* mCurrentState = STATE_IDLE<http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/4.1.1_r1/android/widget/VideoView.java#VideoView.0STATE_IDLE> ; 73<http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/4.1.1_r1/android/widget/VideoView.java#73> *private* *int* mTargetState = STATE_IDLE<http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/4.1.1_r1/android/widget/VideoView.java#VideoView.0STATE_IDLE> ; 74<http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/4.1.1_r1/android/widget/VideoView.java#74> 75<http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/4.1.1_r1/android/widget/VideoView.java#75> // All the stuff we need for playing and showing a video 76<http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/4.1.1_r1/android/widget/VideoView.java#76> *private* SurfaceHolder<http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/4.1.1_r1/android/view/SurfaceHolder.java#SurfaceHolder> mSurfaceHolder = *null*; *77<http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/4.1.1_r1/android/widget/VideoView.java#77> private MediaPlayer<http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/4.1.1_r1/android/media/MediaPlayer.java#MediaPlayer> mMediaPlayer = null;* On Thursday, September 20, 2012 10:30:38 AM UTC-5, MagouyaWare wrote: > > Look at the source code... > > Thanks, > Justin Anderson > MagouyaWare Developer > http://sites.google.com/site/magouyaware > > > On Wed, Sep 19, 2012 at 12:16 PM, bob <[email protected]<javascript:> > > wrote: > >> Can someone help me understand the relationship between VideoView and >> MediaPlayer? >> >> Does one use the other "under the hood"? >> >> I'm partly wondering this because MediaPlayer has >> setOnSeekCompleteListener, and I would like to do something like this with >> a VideoView. >> >> -- >> You received this message because you are subscribed to the Google >> Groups "Android Developers" group. >> To post to this group, send email to >> [email protected]<javascript:> >> To unsubscribe from this group, send email to >> [email protected] <javascript:> >> For more options, visit this group at >> http://groups.google.com/group/android-developers?hl=en > > > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

