A versatile music player with its own JSON and Youtube audio library

As mentioned on this line:

private static final String CATALOG_URL =
"http://storage.googleapis.com/automotive-media/music.json";

This file contains list of trackshosted on Google online.

So, I think the full URL Jazz_In_Paris.mp3will be

https://www.youtube.com/audiolibrary/music/Jazz_In_Paris.mp3

but getting 404 Not Foundin the same way, I tried

https://www.youtube.com/audiolibrary/music/album_art.jpg

but again the result 404 Not Found

So here are my little ones questions:

1. What is the complete URL of `Jazz_In_Paris.mp3` and `album_art.jpg`

2. Where they have used site object "site" : "https://www.youtube.com/audiolibrary/music" in application (in which class and where)

3. Where I have to make changes in my code, If I would like to get JSON from my own Server "http://www.domain.com/services/music.json"

4. How can I create my own Youtube Audio Library, Like in my Library I would like to add my favourite youtube songs
+4
source share
1 answer

What is the full url Jazz_In_Paris.mp3andalbum_art.jpg

http://storage.googleapis.com/automotive-media/album_art.jpg

http://storage.googleapis.com/automotive-media/The_Messenger.mp3


"site": " https://www.youtube.com/audiolibrary/music" ( )

URL- .


, JSON " http://www.domain.com/services/music.json"

, json , ( json)


- Youtube, , youtube

Universal Music Player: Google , you tube .


:

"site" json object . json - , . .

youtube Google - . Google , .

, / ( , ). , articals

Google Storage API !

+4

Source: https://habr.com/ru/post/1622412/


All Articles