You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Added
Support for estimateContentLength parameter in stream operation
Can be set either globally in the SubsonicPreferences or passed with a StreamParams object to the stream method.
Params passed directly to a method will override the global preferences though, so be careful when doing so.
Breaking Changes
All signatures of the methods in media() have changed:
All methods now return an instance of a new class MediaStream instead if an InputStream or URL.
URL methods have been removed all-together because the logic is now implemented in MediaStream.
MediaStreamstream = subsonic.media().stream(1);
InputStreaminputStream = stream.getInputStream();
URLstreamUrl = stream.getUrl();
intcontentLength = stream.getContentLength(); // This value changes based on the estimateContentLength param