noaione / spotilava

An implementation of Native Spotify player for Lavalink/Lavaplayer with Webserver as is intermediary.
MIT License
6 stars 0 forks source link

[Bug]: when stream end, lavaplayer throw error #4

Open KagChi opened 2 years ago

KagChi commented 2 years ago

when the spotify stream end, lavaplayer throw error "Stream is not positioned at a page header.", is this expected if yes have any temp fix? (only occur on ogg vorbis quality)

noaione commented 2 years ago

Currently no fix and expected to happen on some songs

noaione commented 2 years ago

I've pushed this following commit: https://github.com/noaione/spotilava/commit/eb4e871b041d8321d17e4896727a64e5d4678d9c

Please see if it's fixed

See comment below

noaione commented 2 years ago

Okay, it's not likely to be fixed by that commit.

The reason is most likely because for some reason lavaplayer expect a new page header at almost the end of the "frame". It doesn't returns the expected header (which is OggS) so it failed.

I'll try to find a workaround for it.

KagChi commented 2 years ago

any updates?

noaione commented 2 years ago

Not yet, tried some stuff but it's still broken. I've been busy dealing with Uni so I haven't done any other changes yet