예제 #1
0
        /// <summary>
        /// Play first song in the playlist
        /// </summary>
        /// <param name="playlistId"></param>
        private void LoadFirstPlaylistVideo(string playlistId)
        {
            string firstVideoId = _youTubeClientInstance.GetFirstPlaylistVideoId(playlistId);

            if (!string.IsNullOrEmpty(firstVideoId))
            {
                Browser.GetMainFrame().LoadUrl($"https://www.youtube.com/watch?v={firstVideoId}&list={playlistId}");
            }
        }