And use it to track the existence of artwork for the current file. This
could either be a cover.jpg file in the same directory as the currently
playing track or embedded artwork found in the Gst.TagList.
Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
And wire it up to the Player through the Application.
Implements: #45 (Create a new NowPlaying widget)
Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
And make sure we are able to watch for changes when tracks are loaded. I
also export it as mpris' mpris:length metadata field.
Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
These functions are set up to take an unused argument list so they can
be connected to signals directly. I also add a 'playing' property to
track the current state of the playbin and a 'status' property to
translate 'playing' into something mpris understands.
Implements: #7 (Implement MPRIS2 Support)
Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
I set these properties when the bus sends us tag messages, and wire them
up do the mpris2.Player object to notify dbus of their values.
These properties are cleared on both EOS and when a new file is started.
This is to account for the user changing the file mid-playback.
Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
Either through the command line, mpris2, or the open button in the
header.
Implements: #7 (Add MPRIS2 Support)
Implements: #47 (Signal that the track has changed when it actually changes)
Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
This begins to implement the MediaPlayer2.Player interface. The
properties and signals are there, and I expect to fully implement them
as Emmental development goes on.
Implements: #7 ("Add MPRIS2 Support")
Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>