Priority given to the transcoding mode. If set to "Direct play" the bitrate of the file will not be changed

This commit is contained in:
CappielloAntonio 2021-09-13 17:32:39 +02:00
parent 5d5a0eb653
commit 93d6aafbcc
2 changed files with 22 additions and 18 deletions

View file

@ -137,6 +137,10 @@ public class MusicUtil {
}
private static String getBitratePreference(Context context, int connectionType) {
String audioTranscodeFormat = getTranscodingFormatPreference(context, connectionType);
if(audioTranscodeFormat.equals("0")) return "0";
switch (connectionType) {
case ConnectivityManager.TYPE_WIFI:
return PreferenceUtil.getInstance(context).getMaxBitrateWifi();