mirror of
https://github.com/antebudimir/tempus.git
synced 2026-01-01 09:53:33 +00:00
Check network connection type before choosing the default bitrate and transcoding format
This commit is contained in:
parent
695f406bd6
commit
4a6ea47457
5 changed files with 61 additions and 21 deletions
|
|
@ -23,7 +23,8 @@ public class PreferenceUtil {
|
|||
public static final String MEDIA_CACHE_SIZE = "media_cache_size";
|
||||
public static final String MAX_BITRATE_WIFI = "max_bitrate_wifi";
|
||||
public static final String MAX_BITRATE_MOBILE = "max_bitrate_mobile";
|
||||
public static final String AUDIO_TRANSCODE_FORMAT = "audio_transcode_format";
|
||||
public static final String AUDIO_TRANSCODE_FORMAT_WIFI = "audio_transcode_format_wifi";
|
||||
public static final String AUDIO_TRANSCODE_FORMAT_MOBILE = "audio_transcode_format_mobile";
|
||||
public static final String WIFI_ONLY = "wifi_only";
|
||||
|
||||
private static PreferenceUtil sInstance;
|
||||
|
|
@ -145,8 +146,12 @@ public class PreferenceUtil {
|
|||
return mPreferences.getString(MAX_BITRATE_MOBILE, "0");
|
||||
}
|
||||
|
||||
public final String getAudioTranscodeFormat() {
|
||||
return mPreferences.getString(AUDIO_TRANSCODE_FORMAT, "raw");
|
||||
public final String getAudioTranscodeFormatWifi() {
|
||||
return mPreferences.getString(AUDIO_TRANSCODE_FORMAT_WIFI, "raw");
|
||||
}
|
||||
|
||||
public final String getAudioTranscodeFormatMobile() {
|
||||
return mPreferences.getString(AUDIO_TRANSCODE_FORMAT_MOBILE, "raw");
|
||||
}
|
||||
|
||||
public final boolean isWifiOnly() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue