Get correct stream uri for downloaded content
This commit is contained in:
1 parent
f416bfda8f
commit
827dd7d2ae
3 files changed
+59
-19
No files matched your search
@@ -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