-
Notifications
You must be signed in to change notification settings - Fork 106
Unity webapps and Youtube #126
Comments
My extension looks at CanPause, CanNext, CanPrevious MPRIS properties. They might be set to False so that's why the buttons are insensitive. |
Play/stop button is sensitive, but it doesn't work. Unity has play/pause and it works. Is it because Unity does is in some nonstandard way? Controlling YouTube trough sound menu would be very useful for me, since I often use it as a music player and it sits in different tab group :) |
Unity had a nonstandard "Ayatana Sound Menu" API, but later switched to MPRIS2, so it's unlikely that new software would use the custom API... especially if it already implements enough of MPRIS2 to show up in this extension. Could you start Unity, run (Maybe also try this mpris script (requires libnet-dbus-perl) – run |
There is no pause button because CanPause is False so it fallback on the Play() method instead of using the PlayPause() method. Maybe Play() is not implemented in this app. As @grawity said, dbus-monitor would help to see what's going on |
It produces tons of output, I set terminal history to 1024 lines and it was not enough. I had to set unlimited! http://pastebin.com/EQqiyLs9 (Oh, I'm stupid. I could just redirect output to file...) EDIT: EDIT2: Overall this "webapp" is buggy, even on Unity. When two youtube tabs are open, it goes crazy. I have filed a bug: https://bugs.launchpad.net/ubuntu/+source/unity-webapps-youtube/+bug/1174682 |
Thanks. So the
Which makes sense, since Sound Menu only has a single play/pause button, iTunes-style. So it could actually be that the webapp didn't bother to implement separate Do I understand correctly that |
Yes |
Then it's really a bug in the Youtube webapp, which violates the MPRISv2 spec by:
|
OK, I've updated my bug report (linked above). I guess this can be closed now. |
After installing Youtube webapp on Ubuntu, I see album art and video title, just like YT was a music player. But previous/next buttons are insensitive (they don't do anything anyway, so that's not a problem), there is no pause button, and stop/play button doesn't do anything.
But play/pause do work correctly in Unity (sound menu). How hard would it be to make it work with your extension?
The text was updated successfully, but these errors were encountered: