You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm creating a node package to control mpv via the Json IPC protocol right now and stumbled into some bug, or at least I think it is one.
I use the observe_property to keep track of various properties, such as "playlist-count"
If I remove a song or add a song to the playlist, I would expect to get a property-change message.
Actual behavior
I don't get any message. But when I get a "playlist-pos" property-change message (which I have observed as well), receive a property-change message for "playlist-count", too.
When I only observe "playlist-pos", a playlist-remove command triggers a property-change message. 'load file' (appending) however does not.
I checked with get_property that "playlist-count" was correctly updated.
Reproduction steps
Open a running instance of mpv with more than 1 song.
Yeah, that has to be explicitly handled in the mpv code. I suppose currently it only triggers a notification if you actually start/end playback of a file.
mpv version and platform
Expected behavior
I'm creating a node package to control mpv via the Json IPC protocol right now and stumbled into some bug, or at least I think it is one.
I use the
observe_property
to keep track of various properties, such as "playlist-count"If I remove a song or add a song to the playlist, I would expect to get a property-change message.
Actual behavior
I don't get any message. But when I get a "playlist-pos" property-change message (which I have observed as well), receive a property-change message for "playlist-count", too.
When I only observe "playlist-pos", a
playlist-remove
command triggers a property-change message. 'load file' (appending) however does not.I checked with
get_property
that "playlist-count" was correctly updated.Reproduction steps
Open a running instance of mpv with more than 1 song.
In another terminal open Socat
and enter the commands to observe the property
In a 3rd terminal send a
playlist-remove
and aloadfile
message.Log files
http://sprunge.us/bgAg
The text was updated successfully, but these errors were encountered: