由youtube制作的播放列表在“ music.youtube.com”中有所不同。如何从此播放列表中获取播放列表标题?

时间:2019-08-13 07:04:00

标签: c# api unity3d youtube

播放列表代码与“ 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_”播放列表中获取标题?

0 个答案:

没有答案