Ejemplo n.º 1
0
 def on_seek(player, song, pos):
     events.append(pos)
     during_events.append(player.get_position())
Ejemplo n.º 2
0
 def on_started(player, song):
     assert player.get_position() == 0
     player.seek(100)
Ejemplo n.º 3
0
 def on_seek(player, song, pos):
     events.append(pos)
     during_events.append(player.get_position())
Ejemplo n.º 4
0
 def seek_relative(seconds):
     current = player.get_position()
     current += seconds * 1000
     current = min(player.song("~#length") * 1000 -1, current)
     current = max(0, current)
     player.seek(current)
Ejemplo n.º 5
0
 def on_started(player, song):
     assert player.get_position() == 0
     player.seek(100)