track-time progress indicator don't move

Bug #424976 reported by jfunez
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Decibel Audio Player
Fix Released
Undecided
Anonym25712
Nominated for Trunk by mobigeek

Bug Description

When I play any track, the time progress-bar/ time elapsed indicator still at 0:00 s.
If I movit, nothing happends.
version: Decibel Audio Player 1.01
Installation with .deb file, from Decibel Audio homepage: http://decibel.silent-blade.org/uploads/Main/decibel-audio-player-1.01.deb

Tags: time track
Revision history for this message
Anonym25712 (anonym25712) wrote :

Does it happen all the time? With all kinds of files (e.g., mp3, ogg)? Do you use the --playbin2 flag? Do you see any error message in the logs or in the terminal (when launched from a terminal)?

Changed in decibel-audio-player:
assignee: nobody → François Ingelrest (athropos)
status: New → Incomplete
Revision history for this message
jfunez (juan-funez) wrote :

Hi François,

Yes, It Happen every time i play a .mp3 file. Tested with .ogg and it's ok.
Now I see an error message in the terminal, and using the --playbin2 flag, the output is the same.

---
~$ decibel-audio-player
~$ Traceback (most recent call last):
  File "/usr/share/decibel-audio-player/src/modules/GSTPlayer.py", line 54, in updateTimerHandler
    remaining = self.player.getDuration() - position
  File "/usr/share/decibel-audio-player/src/media/audioplayer.py", line 205, in getDuration
    return self.player.query_duration(gst.FORMAT_TIME)[0]
gst.QueryError: query failed
--

HTH

Revision history for this message
Anonym25712 (anonym25712) wrote :

Can you actually hear something while the file is being played? Have you installed the required GStreamer plugins to play MP3 files? This error can happen if the file is not being played, which can happen if the plugin is not installed.

Revision history for this message
jfunez (juan-funez) wrote :

Hi François:
  I can hear any .mp3/.ogg file whitout problems. So I suppose I installed codecs correctly.
  i.e. Songbird/totem/vlc players works fine.
  The GStreamer version is : 0.10.24

HTH

Revision history for this message
mobigeek (salazch1) wrote :

Hi, i'm on the same situation.
Gstreamer plugins (bad, ugly, good, very ugly... just kidding), and mp3 issue. it's a great app but it's annoying that the progress bar doesn't move.

Revision history for this message
Ricardo Velhote (rvelhote) wrote :

Also have the same problem.I fixed it by changing media/audioplayer.py

At the end of the file replace the two functions by this code (I'm just adding the exception):

    def getPosition(self):
        """ Return the current position """
        try:
            return self.player.query_position(gst.FORMAT_TIME)[0]
        except gst.QueryError:
            return 0

    def getDuration(self):
        """ Return the duration of the current stream """
        try:
            return self.player.query_duration(gst.FORMAT_TIME)[0]
        except gst.QueryError:
            return 0

and the progress bar will move once more.

Revision history for this message
Ricardo Velhote (rvelhote) wrote :

At the end of media/audioplayer.py add the exceptions

Revision history for this message
Anonym25712 (anonym25712) wrote :

Fixed on trunk.

Changed in decibel-audio-player:
status: Incomplete → Fix Committed
Revision history for this message
Anonym25712 (anonym25712) wrote :

See v1.04

Changed in decibel-audio-player:
status: Fix Committed → Fix Released
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.