ngx-plyr icon indicating copy to clipboard operation
ngx-plyr copied to clipboard

currentTime getter always returns 0

Open jhayg12 opened this issue 3 years ago • 2 comments

Hi there,

I'm trying to get the currentTime value of the video that was currently playing on pause event but it always returns 0.

@ViewChild(PlyrComponent) plyr: PlyrComponent;

videoPlayer: Plyr;

pause(event: Plyr.PlyrEvent) {
  console.log(this.videoPlayer.currentTime);
}

jhayg12 avatar Oct 12 '20 01:10 jhayg12