/// <summary> /// Play the next song in the playlist based on last played video from that playlist /// </summary> /// <param name="playlistId"></param> /// <param name="lastPlayedVideoId"></param> /// <returns></returns> private bool LoadNextPlaylistVideo(string playlistId, string lastPlayedVideoId) { string nextRequestedVideoId = _youTubeClientInstance.GetNextPlaylistVideoId(playlistId, lastPlayedVideoId); if (!string.IsNullOrEmpty(nextRequestedVideoId)) { Browser.GetMainFrame().LoadUrl($"https://www.youtube.com/watch?v={nextRequestedVideoId}&list={playlistId}"); return(true); } return(false); }