DBus/MPRIS2: Totem says it is "Paused" even the stream has ended "Stopped"

Bug #1827735 reported by moma
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Totem
Fix Released
Unknown
totem (Ubuntu)
Triaged
Low
Unassigned

Bug Description

Hello,

Question 1:
===========
When asking status of Totem via DBus/MPRIS2, it says "Paused" even the song has ended. Shouldn't it return "Stopped" state.

I am using a small bash-script to see the DBus-messages.

$ ./debug1.sh

org.mpris.MediaPlayer2.rhythmbox says: I AM PLAYING.
Confirmed state is: (<'Playing'>,)
-------------------------

Then the song ends.

org.mpris.MediaPlayer2.rhythmbox says: I AM PAUSED.
Confirmed state is: (<'Paused'>,)
----

Question 2:
===========
GNOME's Music player is "org.gnome.Music".

GNOME's Video player is: "org.mpris.MediaPlayer2.totem"

Why this difference?

I like both products.

ProblemType: Bug
DistroRelease: Ubuntu 19.04
Package: totem 3.32.0-1ubuntu1
Uname: Linux 5.0.1-050001-generic x86_64
ApportVersion: 2.20.10-0ubuntu27
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Sat May 4 19:24:02 2019
InstallationDate: Installed on 2019-03-06 (58 days ago)
InstallationMedia: Ubuntu 19.04 "Disco Dingo" - Alpha amd64 (20190203)
SourcePackage: totem
UpgradeStatus: No upgrade log present (probably fresh install)
XorgLog: Error: [Errno 2] No such file or directory: '/var/log/Xorg.0.log'

Revision history for this message
moma (osmoma) wrote :
Revision history for this message
moma (osmoma) wrote :

Re-hi,
Sorry for this nitpicking.
The results (from debug1.sh) were from Rhythmbox.
I meant this:

$ ./debug1.sh
org.mpris.MediaPlayer2.totem says: I AM PLAYING.
Confirmed state is: (<'Playing'>,)

Then the *LAST* song ends.

org.mpris.MediaPlayer2.totem says: I AM PAUSED.
Confirmed state is: (<'Paused'>,)
-------------------------

Nope. You should say stopped!

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for your bug report, indeed that's an issue, I've reported it upstream on https://gitlab.gnome.org/GNOME/totem/issues/326

Changed in totem (Ubuntu):
importance: Undecided → Low
status: New → Triaged
Changed in totem:
status: Unknown → New
Revision history for this message
Sebastien Bacher (seb128) wrote :

Upstream added this comment

'It is paused back at the beginning of the playlist, not stopped. I'm not sure what problem this causes, if any.'

Changed in totem:
status: New → Fix Released
Revision history for this message
moma (osmoma) wrote :

Hello,
Some applications monitor the DBus for Start/Pause/Stop-messages from media players.
When an audio track ends (in Totem), it should send a "Stop" message so other applications can update their status properly.

For example, audio-recorder shows "Paused" status for Totem even Totem has Stopped.
Audio-recorder can stop/pause/continue/stop recording based on messages on DBus.

Audio-recorder is now quite old and ought to be re-written. There is now PipeWire that replaces Pulseaudio, and it is now possible to record individual streams (audio from individual applications).
Ref. https://launchpad.net/audio-recorder

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.