Releases: 4br3mm0rd/mpyg321
Releases · 4br3mm0rd/mpyg321
2.2.1
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)
2.1.1
2.1.0
2.0.1
2.0.0
v2.0.0:
- We now have 2 separate classes for mpg123 and mpg321
- This allows the players to only contain the functions that they support
Breaking changes:
- mute and unmute are only available for mpg123
- MPyg321Player only supports mpg321. People using mpg123 should migrate to
MPyg123Player
which has more features for mpg123.