mudigal-technologies / ngx-audio-player

A library for playing audio using HTML 5 audio for Angular 7/8/9/10/11/12/13/14/15/16.
https://mudigal-technologies.github.io/ngx-audio-player/
MIT License
86 stars 67 forks source link

It would be great if i can get method that logs current time of the ngx-audio-player while playing #4

Closed Pavan-Deepak closed 4 years ago

vmudigal commented 5 years ago

Hi Pavan, but why would anyone need it? Could you please explain one scenario if you have thought about?

Pavan-Deepak commented 5 years ago

Hi Vmudigal, I am using AWS polly Text to speech service and was able to integrate ngx audio player. But now i am integrating Speech mark API while audio is playing it highlights the text in the textarea so i need a method that logs current time of audio so i can match the audio player current time and speech mark time and highlight start and end char of the word.

Doehl commented 5 years ago

Hi Vmudigal,

I have the exact same use case as Pavan-Deepak. But I can even think of a lot other use cases, where you need to actions based on timestamp.

ibtisamniche-vteams commented 5 years ago

@vmudigal I also need a way in the player to get to know if the audio is completed yet or not like there should be an event that would be triggered after audio finished playing. I have a scenario where I am enforcing my users to listen full audio to move on the next one so if you can provide this feature in the player. It would be highly appreciated and good. Seeking for the reply. :)

vmudigal commented 4 years ago

Fixed in https://www.npmjs.com/package/ngx-audio-player/v/9.1.0 for mat-advanced-audio-player. Will take care for mat-basic-audio-player soon.

vmudigal commented 4 years ago

Fixed and available in https://www.npmjs.com/package/ngx-audio-player/v/9.1.1