epoupon / lms

Lightweight Music Server. Access your self-hosted music using a web interface.
http://lms-demo.poupon.dev
GNU General Public License v3.0
1.14k stars 62 forks source link

Handle "estimateContentLength" on stream endpoint in subsonic api #244

Closed thelinkin3000 closed 2 years ago

thelinkin3000 commented 2 years ago

Hi!

I noticed LMS doesn't handle the "estimateContentLength" parameter on the stream endpoint while using the subsonic api.

The reference for the endpoint is here http://subsonic.org/pages/api.jsp#stream

The handling of this parameter is useful for players such as VLC. Wihtout the Content-Length HTTP header set to some reasonable value, VLC does not report a current position while playing, thus the client can't report the current position nor seek to a desired position.

Note that this only happens when transcoding. If I disable transcoding on the server the error goes away and VLC reports position as expected.

epoupon commented 2 years ago

Hello,

Just tried this, and I am a bit puzzled:

Do you know how other servers handle these problems?

epoupon commented 2 years ago

Some updates:

epoupon commented 2 years ago

Well let's go for a basic guess for Content-Length for now...