-
Notifications
You must be signed in to change notification settings - Fork 51
MPRIS metadata is null (again) #82
Comments
Which desktop shell? Which OS? Cannot reproduce. Please try it with the latest commit. Build error is fixed :) |
Latest commit: As you can see, it shows metatag is null just on the first time I start a radio, then it stays (null) even though it doesn't reissue the warning every time I start a new radio. gradio output:
playerctl -l
playerctl status
playerctl metatag artist
playerctl metatag title
|
The two "MPRIS metadata is null" messages are normal. Happens because the MPRIS backend isn't loaded at the startup yet. Yes I should "fix" this. Gradio use following tags:
I've never used i3. But the mpris tray/box (whatever) detects gradio? |
Yes, it detects gradio. My tray uses "playerctl", mpris command-line controller (link here with a quick readme https://github.com/acrisci/playerctl , compatible with spotify, vlc, audacious, bmp, xmms2, and others). You see I posted the output of the command playerctl -l, that means list all active players using the MPRIS D-Bus Interface, and it shows gradio there. Playerctl can also stop and resume playing from cli by issuing the command "playerctl stop/play", and gradio stops/plays correctly. There must be something in gradio because playerctl shows the metadata correctly with vlc and many other players in my system. |
I've read a bit about qdbus
e.g. VLC
output:
If I do the same on gradio:
outputs:
mpris.vala line 209 is commented/incomplete
|
just did a very dirty test on mpris.vala... If I:
it works as long as I quickly click on a radio on opening, otherwise it goes into a segfault:
But this proves that the problem is in gradio. With those mods qdbus works fine on gradio too:
outputs:
So the problem is how the Metadata property is handled inside mpris.vala |
Yeah I know the current mpris implementation is very buggy. But the crazy thing is: MPRIS works flawless for me, but not for you. Nevertheless I have to rewrite the complete mpris class. But exactly these things I want to fix/improve in the 5.0 release. That's why I release betas of 5.0.0 ;). But thanks a lot for your investigation! |
If you copy paste this command in terminal, (one long line): it works to you?
It outputs fine only after I mod mpris.vala as I said before (enabling metadata and deleting every "metadata = null", but then I get a random segfault):
Give a look at vlc/clementine/vocal code on github and compare to yours. It may quicken things. |
I have to admit I have stolen some lines from the vocal source code ^^. (Because it also written in vala) But this evening I will start to code on the new mpris class. |
@crobe87 Could you try this? Thanks. (yes i know: current title is missing) Edit: Forget it. I have also modified other classes. You can't compile. |
make of http://pastebin.com/c6mRAPgX fails with: |
Try again now. I've pushed the latest changes. |
Perfect. It works great now, thank you! Only little thing is that in terminal there is this message that spawns every second:
Just to let you know, don't know if is wanted or not. Attaching terminal output: |
Thanks for quick answer! These messages are just for debugging purposes. |
Apart from the recent master that can't build, I tried a few older commits trees to see if MPRIS was working...
and this is back again:
WARNING **: MPRIS.vala:167: MPRIS metadata is null
tried up to https://github.com/haecker-felix/gradio/tree/eca48a42fd7d69be593795a7e9652d5b0607edcc
old similar issue: #38
The text was updated successfully, but these errors were encountered: