GithubHelp home page GithubHelp logo

plumpmath / shutupify Goto Github PK

View Code? Open in Web Editor NEW

This project forked from krizzzn/shutupify

0.0 0.0 0.0 516 KB

An application to globally control the playback of your favorite audio player (currently Spotify, iTunes, VLC and Html5 media elements using a Chrome Extension).

C# 81.45% Ruby 10.61% CoffeeScript 7.94%

shutupify's Introduction

shutupify

An application to control the playback of your favorite player. Shutupify for windows can control Spotify, VLC (experimental), some HTML elements using a Chrome extension and iTunes. While running the application listens for events from various sources and controls the music player. The application has no GUI - which is intended. I wanted it as uncluttered as possible.

These three triggers control the playback.

  • Global hotkeys - play, pause, next and previous track is controlled by CTRL + SHIFT + ALT + cursor-keys.
  • pause on lock - the player pauses when you lock your workstation and starts when you come back
  • pause on call - play back is pause as soon as you receive a call on lync.

If multiple players are found at the same time, shutupify will route the commands to the currently playing player. If there are no music players playing the events are routed to the last known player.

shutupify for Chrome

The chrome extension is built in coffeescript. It can run on any OS that runs Chrome. Besides of communicating to the shutupify windows application, the extension can control the browser playback using a button next to the address bar. The button toggles play and pause commands.

build

To build shutupify install ruby and get the albacore, rake, and coffeescript gems.
Then call >rake build. This builds the application and the chrome extension.
>rake chrome:build builds the Chrome extension.
>rake win:build_app builds the Windows application.

references

Before building the application you need to place a few dlls into the Lib folder. Here's the shopping list:

  • ManagedWinapi.dll - used for the hotkey probe

  • Microsoft.Lync.Model.dll and Microsoft.Office.Uc.dll - used for the Lync call probe

  • Alchemy.dll - used for the web socket player, that controls the Chrome extension.

  • Interop.iTunesLib.dll - control iTunes

  • nunit.framework.dll - used by the unit test

  • FluentAssertions.dll - used by the unit test

  • Moq.dll - used by the unit test

There's no need to supply all of these dlls. The built application will not include the parts that rely on missing dlls.

configure and run

Configure the application with the shutupify-settings file placed in the apps directory. Edit it with you favorite text editor. Changes to the configuration are not reflected in a running instance of shutupify.

License and stuff

Shutupify contains some code from the toastify project from codeplex.

shutupify

Contributions are welcome!

Copyright (c) 2013 Christian Peterek

MIT License

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

shutupify's People

Contributors

krizzzn avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.