videogular / videogular2

The HTML5 video player for Angular 2
https://videogular.github.io/videogular2-showroom/#/
MIT License
672 stars 211 forks source link

I cannot update the currentTime value. #852

Open paulaolileal opened 5 years ago

paulaolileal commented 5 years ago

Description

When trying to assign any value to currentTime, the value always remains zero.

Expected Behavior

That by assigning value to currentTime the progress is updated.

Actual Behavior

The value always remains as zero.

Steps to Reproduce

  1. Step 1 console.log( this.api.getDefaultMedia( ).currentTime ) // 0
  2. Step 2
      this.api.getDefaultMedia().currentTime = 5000;
      this.api.getDefaultMedia().play();

    3; Step 3 console.log( this.api.getDefaultMedia( ).currentTime ) // 0

NavjotKumar commented 5 years ago

use seekTime function to change current time.