code: public void setVideoPath(String path) throws IOException, IllegalStateException, SecurityException, IllegalArgumentException, RuntimeException {
          Log.d(TAG, "setVideoPath");
          if (mediaPlayer != null) {
              if (currentState != State.IDLE)
                  throw new IllegalStateException("FullscreenVideoView Invalid State: " + currentState);
  
              this.videoPath = path;
              this.videoUri = null;
              this.mediaPlayer.setDataSource(path);
  
              this.currentState = State.INITIALIZED;
              prepare();
          } else throw new RuntimeException("Media Player is not initialized");
      }
docs: VideoView method (setVideoPath)