Skip to content

0.6.0

Latest
Compare
Choose a tag to compare
@calne-ca calne-ca released this 23 Nov 02:49
7553300

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.
    • 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