Ejemplo n.º 1
0
 //This is called by the web server to get the current information and status of what is playing in the browser
 public DynamicItems(Player player)
 {
     StationList = player.Stations;
     Skin = player.Skin;
     Song = player.Song;
     ThumbUp = player.IsThumbsUp;
     Paused = player.IsPaused;
 }
Ejemplo n.º 2
0
        public Tuner()
        {
            InitializeComponent();
            player = new Player(PandoraBrowser.Handle);
            locator.Enabled = true;

            //Setup
            //Start Keyboard Hook
            try
            {
                actHook = new UserActivityHook();
                actHook.KeyDown += new KeyEventHandler(MyKeyDown);
                actHook.Start();
            }
            catch (Exception)
            {
                MessageBox.Show("Error setting up media keys. They will not work. Try to restart PandoraKeys");
            }
        }
Ejemplo n.º 3
0
        public Tuner()
        {
            InitializeComponent();

            //Create the player wrapper around the WebBrowser
            _player = new Player(PandoraBrowser);
               _webServerEnabled = Settings.Default.WebserverEnabled;

            StartWebServer();

               //Setup
            //Start Keyboard Hook
            try
            {
                _actHook = new UserActivityHook();
                _actHook.KeyDown += new KeyEventHandler(MyKeyDown);
                _actHook.Start();
            }
            catch (Exception)
            {
                MessageBox.Show("Error setting up media keys. They will not work. Try to restart PandoraKeys");
            }
        }