mirror of
https://github.com/antebudimir/tempus.git
synced 2026-01-01 09:53:33 +00:00
Get correct stream uri for downloaded content
This commit is contained in:
parent
f416bfda8f
commit
827dd7d2ae
3 changed files with 59 additions and 19 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue