public void LoadPlaylist(string url)
 {
     _youtubeManager.GetPlaylistItems(
         YouTubeUtils.GetPlaylistIdFromUrl(url)
         , _maxNumberOfItemsInPlaylist
         , OnListDataLoaded
         );
 }
Esempio n. 2
0
    public void GetPlaylist()
    {
        //youtubeapi.GetPlaylistItems(searchField.text, 50, OnGetPlaylistDone);

        youtubeapi.GetPlaylistItems(searchField.text, 50, "", OnGetPlaylistPart);
    }
 public void GetPlaylist()
 {
     youtubeapi.GetPlaylistItems(searchField.text, 10, OnGetPlaylistDone);
 }
Esempio n. 4
0
 void OnGetPlaylistPart(YoutubePlaylistItems[] results)
 {
     playListItems.AddRange(results.ToList());
     apiManager.GetPlaylistItems(PLAYLIST_URL, 50, OnGetPlaylistPart);
 }
Esempio n. 5
0
 // Start is called before the first frame update
 void Start()
 {
     apiManager = GetComponent <YoutubeAPIManager>();
     apiManager.GetPlaylistItems(PLAYLIST_URL, 50, OnGetPlaylistPart);
 }