Closed shockpast closed 3 months ago
https://www.npmjs.com/package/react-use-audio-player#gotcha-streaming-audio
It won't help neither fix any issues, since current and replied libraries are using howler.js
under the hood, and HTML5 pretty much does all the work for audio streaming by itself.
getSongAudio
requires to be rewritten, to make it send audio as chunks, and not whole audio, but it's still will cause alot of latency, since it's serverless solution.
Audio is being downloaded entirely, also filling up RAM (for obvious reasons)