/**
   * Video player functionality
   *
   * @param driver - NativeAppDriver instance
   * @param fullscreenButton - Id of Full Screen Button
   * @param lmsButton - Id of LMS Button
   * @param settingsButton - Id of Settings Button
   * @param rewindButton - Id of Rewind Button
   * @param videoHeader - Id of Video header.
   * @param seekBar - Id of seek bar
   * @throws InterruptedException
   */
  public void videoPlayer(
      NativeAppDriver driver,
      String fullscreenButton,
      String lmsButton,
      String settingsButton,
      String rewindButton,
      String seekBar,
      String playPauseButton,
      String videoPlayerId,
      boolean downloaded,
      boolean isAndroid)
      throws InterruptedException {

    if (!downloaded) {
      driver.insertWait(settingsButton);
    }
    Thread.sleep(3500);
    driver.clickElementById(videoPlayerId);
    driver.verifyElementPresentById(settingsButton);
    Thread.sleep(3500);
    driver.clickElementById(videoPlayerId);
    driver.verifyElementPresentById(rewindButton);
    Thread.sleep(3500);
    driver.clickElementById(videoPlayerId);
    driver.verifyElementPresentById(lmsButton);
    Thread.sleep(3500);
    driver.clickElementById(videoPlayerId);
    driver.verifyElementPresentById(playPauseButton);
    Thread.sleep(3500);
    driver.clickElementById(videoPlayerId);
    driver.verifyElementPresentById(fullscreenButton);
    Thread.sleep(3500);
    if (isAndroid) {
      driver.clickElementById(videoPlayerId);
      driver.clickElementById(fullscreenButton);
      driver.clickElementById(videoPlayerId);
      driver.verifyElementPresentById(rewindButton);
      driver.verifyElementPresentById(lmsButton);
      driver.verifyElementPresentById(playPauseButton);
      driver.clickElementById(videoPlayerId);
      driver.clickElementById(fullscreenButton);
    }
  }
 /**
  * Verify videoName, video size, and video length
  *
  * @param driver - NativeAppDriver instance
  * @param videoName - Id of video name
  * @param videoSize - Id of video size
  * @param videoLength - Id of video length
  */
 public void videoInformation(NativeAppDriver driver, String videoName, String videoLength) {
   driver.verifyElementPresentById(videoName);
   driver.verifyElementPresentById(videoLength);
 }