带有自己的JSON和Youtube音频库的通用音乐播放器



如此行所述:

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

该文件包含一个list of tracks,由Google在线托管。

所以,我想Jazz_In_Paris.mp3的完整URL应该是

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

但以与我尝试相同的方式获得404 Not Found

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

但同样的结果404 Not Found

下面是我的几个小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

Jazz_In_Paris.mp3album_art.jpg的完整URL是什么

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歌曲

通用音乐播放器:使用谷歌存储客户端存储音乐文件,但您也可以创建自己的you tube频道并制作私人视频。在你的应用中使用它


编辑:

"site"json对象是无用的。这个对象是json,因为他们使用了以前版本的应用程序。目前没有。

youtube频道谷歌存储都是不同的东西。谷歌存储主要用于存储我们可以在应用程序中使用的文件。

在Youtube中,每个人都可以上传私人/公共视频(如果你要在应用程序中使用该视频,请使用私人视频)。有关更多详细信息,请检查您是否支持阿替卡因

我建议你使用谷歌存储API,或者你也可以在自己的服务器上传文件!

最新更新