ch1ller0 / fridgefm-radio-core

Simple lightweight package for creating your own radio station via NodeJS heavily inspired by Shoutcast and Icecast.
https://fridgefm.com
MIT License
47 stars 9 forks source link

Fix prebuffer storage length (#160) #252

Closed ch1ller0 closed 3 years ago

ch1ller0 commented 3 years ago

Affects https://github.com/ch1ller0/fridgefm-radio-core/issues/160 This fix makes prebuffer.getStorage method return value containing the last added chunk. It is hard to believe that previous logic made your radio miss a whole chunk between switching from prebuffer to actual stream. However, it does not fully solve the issue with syncing