播放列表代码与“ music.youtbue.com
”不同
youtube中的前缀“ PL-”
但是在音乐youtube中为“ RDCLAK5uy_
”
我试图从“ RDCLAK5uy_”播放列表中检索标题。
但是直到我现在找到为止,没有任何信息。
public void PlayListTitle()
{
youtubeapi.Search(this.name, 10, YoutubeAPIManager.YoutubeSearchOrderFilter.none, YoutubeAPIManager.YoutubeSafeSearchFilter.none, customFilter, OnSearchDone);
}
void OnSearchDone(YoutubeData[] results)
{
LoadVideosOnUI(results);
Debug.Log("Yes, We have results");
for (int x = 0; x < results.Length; x++)
{
Debug.Log(results[x].snippet.publishedAt);
Debug.Log(results[x].snippet.channelId);
Debug.Log(results[x].snippet.title);
Debug.Log(results[x].snippet.channelTitle);
Debug.Log(results[x].snippet.tags);
}
}
void LoadVideosOnUI(YoutubeData[] videoList)
{
for (int x = 0; x < videoList.Length; x++)
{
if (x==0)
{
titleText.text = videoList[x].snippet.title;
Debug.Log("이프들어옴");
}
}
}
如何从前缀“ RDCLAK5uy_”播放列表中获取标题?