Banshee.Mpris.MediaPlayer.ActivatePlaylist C# (CSharp) Method

ActivatePlaylist() public method

public ActivatePlaylist ( ObjectPath playlist_id ) : void
playlist_id ObjectPath
return void
        public void ActivatePlaylist (ObjectPath playlist_id)
        {
            // TODO: Maybe try to find the playlist if it's not in the dictionary ?
            var playlist = playlist_sources[playlist_id.ToString ()];

            if (playlist != null) {
                Log.DebugFormat ("MPRIS activating playlist {0}", playlist.Name);
                ServiceManager.SourceManager.SetActiveSource (playlist);
                ServiceManager.PlaybackController.Source = playlist;
                ServiceManager.PlaybackController.First ();
            }
        }