mirror of
https://github.com/CappielloAntonio/tempo.git
synced 2026-02-01 07:03:35 +00:00
Get correct stream uri for downloaded content
This commit is contained in:
@@ -33,9 +33,13 @@ public class MusicUtil {
|
||||
"&t=" + params.get("t") +
|
||||
"&v=" + params.get("v") +
|
||||
"&c=" + params.get("c") +
|
||||
"&id=" + song.getId() +
|
||||
"&maxBitRate=" + getBitratePreference(context, connectivityManager.getActiveNetworkInfo().getType()) +
|
||||
"&format=" + getTranscodingFormatPreference(context, connectivityManager.getActiveNetworkInfo().getType());
|
||||
"&id=" + song.getId();
|
||||
|
||||
if(connectivityManager.getActiveNetworkInfo() != null) {
|
||||
uri = uri + "&maxBitRate="
|
||||
+ getBitratePreference(context, connectivityManager.getActiveNetworkInfo().getType()) + "&format="
|
||||
+ getTranscodingFormatPreference(context, connectivityManager.getActiveNetworkInfo().getType());
|
||||
}
|
||||
|
||||
Log.d(TAG, "getSongStreamUri(): " + uri);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user