/// <summary> /// /// </summary> /// <param name="sc"></param> /// <param name="track"></param> public override void Play(SoundCloud.SoundCloud sc, Track track) { this._Wmp.URL = $"{track.Uri}/stream?client_id={sc.ClientId}"; this._Wmp.controls.play(); Console.WriteLine($"play is = {track.Title} - {track.Uri}/stream?client_id={sc.ClientId}"); }
public MainWindow() { InitializeComponent(); twitter_client = new Twitter.Twitter(); google_client = new Google.Google(); playlist = new Playlist(); soundcloud_client = new SoundCloud.SoundCloud(APIKeyProvider.Soundcloud_ClientId); youtube_client = new Youtube.Youtube(); playlist.load(youtube_client,soundcloud_client); retriever = new Thread(new ThreadStart(this.retrieveEntries)); retriever.Start(); updater = new Thread(new ThreadStart(this.update)); updater.Start(); //TODO: a supprimer après les tests playlist.add(new PlayListEntry(youtube_client.resolveTrack("https://www.youtube.com/dsjhdsqjsjd"), "cloclo", false)); playlist.add(new PlayListEntry(soundcloud_client.resolveTrack("https://soundcloud.com/chiptune/positive-waves"), "clocla", false)); playlist.add(new PlayListEntry(soundcloud_client.resolveTrack("https://soundcloud.com/prep-school-recordings/eion-hyper-active-original-mix"), "cloclu", false)); //this.playlist.next(); }
/// <summary> /// 再生機能を提供します。 /// </summary> public abstract void Play(SoundCloud.SoundCloud sc, Track track);
/// <summary> /// 再生機能を提供します。 /// </summary> public abstract void Play(SoundCloud.SoundCloud sc, SCFavoriteObjects track);