private void InitializeIdListFromPlayList(PlayList.PlayList playList) { foreach (var item in playList.Items) { IdList.Add(item.Snippet.ResourceId.VideoId); } }
public async Task DownLoad() { string link = GetStringForChannel(); var stringTask = HttpClient.GetStringAsync(link); string json = await stringTask; PlayList.PlayList playList = GetMediaObject(json); InitializeIdListFromPlayList(playList); ChannelTitle = playList.Items[0].Snippet.ChannelTitle; Download(IdList, ChannelTitle); }
public PlayingList(PlayList.PlayList PlayList) { this.NeedToStopAudio = false; this.NeedToStartAudio = false; this.NeedToDeleteAudio = false; this.AudioIndex = 0; this.Title = PlayList.PlayListInfo.Title; this.Audios = new List <Audio.Audio>(PlayList.Audios.Select(x => x.Value).ToArray()); this.SoundOut = AudioGenerator.GetSoundOut(); this.SoundOut.Stopped += SoundOut_Stopped; ControllingThread = new Thread(ControllingThreadEntryPoint); ControllingThread.Start(); Start(); }