2.2.0
Adds support for events. You can now write callbacks for events by using the new decorators or the subscribe_event
function:
player = MPyg123Player()
@player.on(MPyg321Events.ANY_STOP)
def callback(context):
print("Any stop event occured")
# or
def my_func(context):
print("Other event subscribed")
player.subscribe_event(MPyg321Events.ANY_STOP, my_func)