samirkumardas / pcm-player

A minimalist javascript audio player for PCM streaming audio
Other
297 stars 85 forks source link

Can i reach audiocontext object without modifying source code? #13

Open ShevKG opened 3 years ago

ShevKG commented 3 years ago

Hello, i want to dead with AudioContext 'ended' event within your player. Can i somehow reach it without modifying your code? p.s And thank you for your great solution with my synchronization struggling :smile: :+1:

samirkumardas commented 3 years ago

The player itself does not have an event option. If you want to access to audioContext instance, you can do it through player. audioCtx where player is an instance of the player.