Giter Club home page Giter Club logo

soundcloud-player's Introduction

SoundCloud Player

Control Soundcloud from your toolbar, with ease.

One of my favourite sites at the moment is SoundCloud.com; I’m playing my ever growing stream all day long while coding, so I knew exactly what to build: sound player controls in Australis style!

I was in for a pleasant surprise. Not only were the APIs straightforward to use, but the Addon-SDK APIs were also pleasantly well-documented.

Time for a couple of screenshots of the end result:

You can find the add-on on AMO at https://addons.mozilla.org/en-US/firefox/addon/soundcloud-player/

License: MPL.

Sources and build instructions of the binary components can be found at https://github.com/mstange/mediakeysappleremotesimfy/tree/895c6b9a86ab919feb4d4b93481e78db3aff8ae5

Features:

  • Looks up the first open SoundCloud tab and starts playing the first song in it.
  • Opens a new tab when it can’t find one
  • Skip to next or previous song
  • Polls the SoundCloud page structure to track player status
  • Localizable (standard SDK feature)
  • Support for OSX media keys and Apple Remote - thanks to Markus Stange!
  • Repo contains some tools that I built around it to make creating future add-ons easier:
    • CSS pre-processor, so you can write Mozilla-style CSS(tm): %define, %ifdef…else…endif
    • variable substitution
    • and more fun stuff.
    • Simple abstraction for writing wide-widget add-ons.
    • No docs. Yet. :-/

Cheers and have fun!

Mike.

soundcloud-player's People

Contributors

mikedeboer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

soundcloud-player's Issues

FF57

possible update for firefox 57 ?

Crash on exit

After using it, it's crashes Firefox on exit.

If you doesn't call any of it's functions, it won't hurt. Meaning you may use only soundcloud page's controls to start/stop music it doesn't affects.
Tried with FF 33.1.1 and 41.0 (english), with or without any add-ons, with use of media key on/off. No matter the combinations of these, if these it will crash.

Global hotkey/mediakey support

More a question/suggestion than an issue, but here goes.

I've been using your plugin for a long time, and I'm especially grateful for you making this. I have however a kind of a request to improve the plugin, but this might be something difficult considering the browser. It would be amazing if we could have global (as in system-wide) hotkeying/media-keying. I'm often listening to a track when someone walks in and wants my full attention, most of the time (as most people, I assume) I'm not looking at soundcloud while I'm listening, and I'd really love to use a shortcut (hotkey/mediakey) to pause my music when the window is not active.

I'm sure there will be a lot of other web applications/situations where this would be super nice to have from a user experience point of view. I understand you work at Mozilla, so I'm sure you'd be the kind of guy to get this done. Thanks for your time/consideration.

jpm does not work with this addon

I just started to learn about ff addons, and I don't know much. But somehow I can't run or debug this addon with jpm (1.0.4):

$ jpm run -b `which firefox`
JPM [info] Starting jpm run on Soundcloud Player
JPM [warning] The `version` entry must be specified, and it should follow semantic
versioning rules. For example, it must be a string containing three
values indicating major, minor, and patch versions. For example:

"1.4.56"
"0.0.1"
"1.0.0rc4"

http://semver.org

JPM [error] Error: The addon has no valid entry point. Either create an entry point
at `./index.js`, or set the `main` property to a valid path in
your addon.

Do you know, why this isn't working?

Windows Media Keys

The Windows Media Keys on my Microsoft Keyboard are not support. Are there any API's for it to add this feature?

Like & Repost Button

It would be nice to have the like and repost button beneath play/next/prev which can be optionally enabled/disabled

Thanks!

Thank you & question

I just want to say thank you for this addon. This addon works just flawlessly.
And, can i ask, how can i make the hotkeys on my keyboard to work globally? (for example, when i'm in the game). Currently hotkeys only work when i have browser window activated
(sorry for my russki)

QuickInfo

Add a QuickInfo Button to show the current song title/artist/image within a small dropdown window.

As used for e.g. Ghostery: Ghostery Img

Or the Youtube Player: Youtube Img

SoundCloud Player doesn't work anymore

Since a couple of days the Firefox add-on doesn't communicate with the Soundcloud website anymore, and I have been unable to control my music using the add-on. I'm using Firefox 33.0 on Windows 7.

Perhaps a recent Soundcloud API update/change broke the functionality. I hope this can be fixed.

Rename keys on Linux

Hi @mikedeboer,

Many thanks for your add-on!

I added version 0.8 to Firefox 34.0.5 on Arch Linux 64-bit.

A slight design flaw that I would like to report.

I am wondering whether the buttons could be renamed to just Previous, Play, and Next instead of prev-button, etc.

Screenshot:

screenshot

Thankfully,

Robert

Exclude unloaded tabs

As it seems, the player looks for the first tab with sound cloud. Would it be possible to exclude unloaded tabs? To distinguish such I have this style in Stylish:

.tabbrowser-tab[pending] {
    opacity:0.5 !important;
}

Firefox Q

This addon is not currently compatible w/ Firefox Quantum (57.0)

Media Keys not working

I am using the Microsoft Sculpt Ergonomic Keyboard on Windows 8.1 but the Media Keys (Play / Pause) does not work. If I launch other applications like Spotify the key is working. Also I enabled the "Use Media Keys" checkbox in the addon settings.

Can I provide any logs or something else when pressing the key?

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.