Code example for VideoView

Methods: seekTostart

0
     * @param   mp    {@link MediaPlayer} instance performing the playback. 
     */ 
    @Override 
    public void onPrepared(MediaPlayer mp) {
        Log_OC.e(TAG, "ACTIVITY\t\tonPrepare");
        mVideoPlayer.seekTo(mSavedPlaybackPosition);
        if (mAutoplay) { 
            mVideoPlayer.start();
        } 
        mMediaController.show(5000);  
    } 
     
     
    /** 
     * Called when the file is finished playing. 
     *   
     * Rewinds the video 
     *  
     * @param   mp    {@link MediaPlayer} instance performing the playback. 
     */ 
    @Override