Menu

#87 Additional signals for player active / stopped

closed
nobody
None
5
2023-09-21
2018-03-05
SimonR
No

Could we get additional signals (idjcmonitor.py) for the three main players (left, right, backgroud) for the states playing (i.e., started / active) and stopped?

I would like to use these signals for a custom mixing interface. It will be equipped with lit track start / stop buttons showing the states of the players. Thank you very much!

Discussion

  • Stephen Fairchild

    I have started looking into it.

     
  • Stephen Fairchild

    It is done.

    def player_started_handler(monitor, player):
        print "Player %s has started" % player
    
    def player_stopped_handler(monitor, player):
        print "Player %s has stopped" % player
    
    monitor.connect("player-started", player_started_handler)
    monitor.connect("player-stopped", player_stopped_handler)
    

    Note that the background player is called 'interlude' within the source code.

     

    Last edit: Stephen Fairchild 2018-03-17
  • Stephen Fairchild

    • status: open --> pending
     
  • SimonR

    SimonR - 2018-04-01

    Works very well, does exactly what I needed.
    I found no errors.
    Thank you very much!
    Sorry for the delayed feedback.

     
  • Stephen Fairchild

    • status: pending --> closed
     

Log in to post a comment.