Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mpris Integration #645

Merged
merged 1 commit into from
Jun 19, 2016
Merged

mpris Integration #645

merged 1 commit into from
Jun 19, 2016

Conversation

jakejarrett
Copy link
Member

This adds media key support to linux (32/64bit)

It will remove the existing dbus-node folder from mpris-service's node_modules and then replace it with a patched version that supports nw0.12.3 then builds it. This will be simplified when upstream dbus-node gets patched too.

It currently won't support all the mpris features due to #639, but for now It only provides media key support 😸

@jakejarrett
Copy link
Member Author

@weblancaster this should work "as is", as i'd assume someone with the source code on linux should have git installed, But it can wait until the npm package gets updated with the patch if needed.

@jakejarrett
Copy link
Member Author

This is ready to be tested on OS X / Windows if anyone wants to test it 👍

@weblancaster
Copy link
Member

Anything special I should do to test this? what should I look for @jakejarrett

@jakejarrett
Copy link
Member Author

@weblancaster mainly playing/pausing/next/pause & building, it should act as if nothing has changed from the master for any OS besides linux.

@jakejarrett
Copy link
Member Author

Tested a build on windows, It won't build on systems without dbus headers present (dbus.h)

Will try and solve this over the weekend @weblancaster (preferably without adding dbus as a requirement)

@duraki
Copy link

duraki commented Apr 19, 2016

When can we expect this PR to be on a release? Can't find it in 0.6.4.

@jakejarrett
Copy link
Member Author

@dn5 waiting for node-dbus/119 so cross platform support is preserved

@MarshallOfSound
Copy link

@jakejarrett If you use my fork of mpris-service it has the patch that you are waiting for in that PR

https://github.com/MarshallOfSound/Google-Play-Music-Desktop-Player-UNOFFICIAL-/blob/master/package.json#L88

@jakejarrett
Copy link
Member Author

@MarshallOfSound Thanks! This appears to have fixed a fair few of the bugs i was encountering haha.

@MarshallOfSound
Copy link

@jakejarrett My patched repo also contains patched versions of the node-dbus package so it should just drop in to your current implementation 👍

@jakejarrett jakejarrett force-pushed the mpris branch 2 times, most recently from d6ed748 to 1930d9f Compare April 30, 2016 12:34
@jakejarrett jakejarrett force-pushed the mpris branch 2 times, most recently from 5a34698 to 378e690 Compare April 30, 2016 12:50
@jakejarrett
Copy link
Member Author

Thanks @MarshallOfSound this builds perfectly on windows! 😸

@weblancaster
Copy link
Member

I'm going to test this tomorrow.

@jakejarrett
Copy link
Member Author

@weblancaster any updates?

@jakejarrett
Copy link
Member Author

@weblancaster This builds & works on all supported platforms. Should be good to merge! 👍

@jakejarrett jakejarrett force-pushed the mpris branch 3 times, most recently from 68098dc to 03dae87 Compare June 13, 2016 03:47
Added some abstracted functionality so we don't define 4 of the same if statements
Added proper stop functionality (Set time to 0 & Pause)
Moved mpris keypress events into playerCtrl instead of playerService.
Fixed grunt shell for non-linux os'

This should be much easier to follow whats going on.
@jakejarrett
Copy link
Member Author

Merging this, as i believe this is good to merge & it works fine on all platforms.

@jakejarrett jakejarrett merged commit 05b3b25 into Soundnode:master Jun 19, 2016
@duraki
Copy link

duraki commented Jun 20, 2016

Great job guys! 👍

@dsifford
Copy link

dsifford commented Jul 3, 2016

Can someone package this as a release? Arch linux user here -- Our package manager source builds from the releases of this repo.

Thanks 👍

@easterwood
Copy link

My media key for play/pause won't work with Soundnode. I have a MS Natural 4000 keyboard.

How do I find out whether mpris is working or not? I have version 0.6.5. from the app repository.

@weblancaster
Copy link
Member

@easterwood the latest version on Linux has a bug and users aren't being able to play songs. Now if you are on another OS you should be able to use the media keyboard as long you don't have any other application that makes use of the media keyboard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants