mpris-service icon indicating copy to clipboard operation
mpris-service copied to clipboard

Changing property results in EPIPE errors

Open OzymandiasTheGreat opened this issue 4 years ago • 3 comments

What am I doing wrong? I play around with player.js example, with the addition of error handler so I can see errors in console. I'm doing this in an electron app if that makes a difference.

I create Player object and get MPRIS notification for unknown track. I try to change metadata or playbackStatus and it immediately throws EPIPE or write stream after closed errors. If I don't change properties everything works, but it's kinda useless like that.

OzymandiasTheGreat avatar Jul 11 '20 08:07 OzymandiasTheGreat

I've never seen this error before and I'm not sure why it would do this. Can you provide a sample so I can reproduce the issue myself?

acrisci avatar Jul 11 '20 16:07 acrisci

So I did more testing and apparently I missed dbus object path specification. My player plays internet streams and I was using uris as mpris:trackid's, which contained invalid characters. And that caused stream to be closed prematurely. Not really a bug, but it'd be nice if path limitations where mentioned in the readme somewhere.

Anyway, thanks for your time and for this library, saves me a lot of time :)

OzymandiasTheGreat avatar Jul 12 '20 10:07 OzymandiasTheGreat

I really thought I had validators for that to give you good error messages. I'll have to check on that.

acrisci avatar Jul 12 '20 17:07 acrisci