videogular / videogular2

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

VgAPI seekTime starts from the wrong position #861

Open wokeydev opened 5 years ago

wokeydev commented 5 years ago

Description

Currently I have installed videogular2 version 6.3.0 and customized. But when I tried to seek audio, it starts from the wrong position(maybe plays 300ms off) When I seek audio, it loads partial content of audio and it doesn't calculate the correct position

wokeydev commented 5 years ago

I think it's because of sample rate of audio. Current audio's sample rate is 44KHz so I converted it to 16KHz and the seekTime function works well as we needed. Unfortunately all of my audios are stored in several clouding storage and I cannot change their sample rate. Is there any option to set the sample rate before playing audio? Thank you.