ngx-plyr
ngx-plyr copied to clipboard
currentTime getter always returns 0
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);
}