Menu

#12 --status: no information whether a file is playing or not.

open
nobody
None
5
2007-02-12
2004-10-22
Anonymous
No

alsaplayer --status does not output whether there is
currently a file playing or not. Especially if the
playlist has exactly one item, there is no way to find
out whether the file has played completely or not.

To be fixed by adding a play/pause/stop indicator.

Rudolf Polzer <sfnet-tf@durchnull.de>

Discussion

  • Dominique Michel

    • priority: 5 --> 6
     
  • Dominique Michel

    Logged In: YES
    user_id=1402338
    Originator: NO

    Works for me.

    When the file is playing:
    $ alsaplayer --status
    ---------------- Session ----------------
    name: alsaplayer-0
    playlist_length: 1
    volume: 1,00
    speed: 100%
    -------------- Current Track ------------
    title: vencerem.mid
    frames: 1356
    length: 62 seconds
    position: 28
    -----------------------------------------

    When the file in not playing:
    $ alsaplayer --status
    ---------------- Session ----------------
    name: alsaplayer-0
    playlist_length: 1
    volume: 1,00
    speed: 100%
    -------------- Current Track ------------
    title: vencerem.mid
    frames: 1356
    length: 62 seconds
    position: 0
    -----------------------------------------

    The position is 0 when the sound ended, so obviously 0 mean stop.

    But it is no play/pause/stop indicator and no mean to know if a sound is playing or paused.

     
  • Dominique Michel

    Logged In: YES
    user_id=1402338
    Originator: NO

    Or you have to issue at least 2 status command and look if the position is changing. Yes -> playing; no -> paused.

     
  • Dominique Michel

    • priority: 6 --> 5
     

Log in to post a comment.

MongoDB Logo MongoDB