carlin-q-scott / browser-media-keys

Lets you control many web players using the media keys on your keyboard.
Mozilla Public License 2.0
123 stars 31 forks source link

Add Ampache Support #125

Open stonie08 opened 7 years ago

stonie08 commented 7 years ago

Please add support for (self-hosted) Ampache [1] instances.

[1] https://github.com/ampache/ampache

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/43699483-add-ampache-support?utm_campaign=plugin&utm_content=tracker%2F7600490&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F7600490&utm_medium=issues&utm_source=github).
carlin-q-scott commented 7 years ago

I can if you copy the element html for me. To do that, just follow these steps:

  1. Right-click on the button (play, pause, forward, back)
  2. Click "Inspect Element (Q)"
  3. Right click on the blue highlight in the window that opens
  4. Click Copy > Outer HTML
  5. Paste it in your reply
  6. Repeat for each element a. You can skip the step 2 by using the element picker in the upper left corner of the inspection toolbar that you opened with step 2.
stonie08 commented 7 years ago

I might be a bit late but here are the 4 HTML elements you requested:

Previous: <a href="javascript:;" class="jp-previous" tabindex="1">previous</a>

Play: <a href="javascript:;" class="jp-play" tabindex="1" style="display: block;">play</a>

Pause: <a href="javascript:;" class="jp-pause" tabindex="1" style="display: block;">pause</a>

Next: <a href="javascript:;" class="jp-next" tabindex="1">next</a>