Code example for VideoView

Methods: seekTo

0
     *  
     * @param   mp    {@link MediaPlayer} instance performing the playback. 
     */ 
    @Override 
    public void onCompletion(MediaPlayer  mp) {
        mVideoPlayer.seekTo(0);
    } 
     
     
    /** 
     * Called when an error in playback occurs. 
     *  
     * @param   mp      {@link MediaPlayer} instance performing the playback. 
     * @param   what    Type of error 
     * @param   extra   Extra code specific to the error 
     */ 
    @Override 
    public boolean onError(MediaPlayer mp, int what, int extra) {
        Log_OC.e(TAG, "Error in video playback, what = " + what + ", extra = " + extra);
         
        if (mMediaController != null) {