Releases: calne-ca/subsonic-java-client
Releases · calne-ca/subsonic-java-client
0.6.0
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.
- Can be set either globally in the SubsonicPreferences or passed with a StreamParams object to the stream method.
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.
- Before:
InputStream stream = subsonic.media().stream(1); URL streamUrl = subsonic.media().streamUrl(1);
- Now:
MediaStream stream = subsonic.media().stream(1); InputStream inputStream = stream.getInputStream(); URL streamUrl = stream.getUrl(); int contentLength = stream.getContentLength(); // This value changes based on the estimateContentLength param