feat: added setting to request estimated duration of transcoded file

This commit is contained in:
antonio 2023-09-17 19:12:45 +02:00
parent 0fe4636fe1
commit e762c91ff3
4 changed files with 20 additions and 2 deletions

View file

@ -50,12 +50,11 @@ public class MusicUtil {
uri.append("&maxBitRate=").append(getBitratePreference());
if (!Preferences.isServerPrioritized())
uri.append("&format=").append(getTranscodingFormatPreference());
if (false)
if (Preferences.askForEstimateContentLength())
uri.append("&estimateContentLength=true");
uri.append("&id=").append(id);
Log.d(TAG, "getStreamUri: " + uri);
return Uri.parse(uri.toString());