Fix property access in README example
This commit is contained in:
parent
b71e8a4a55
commit
667ec6f180
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ def my_log(loglevel, component, message):
|
||||||
player = mpv.MPV(log_handler=my_log, ytdl=True, input_default_bindings=True, input_vo_keyboard=True)
|
player = mpv.MPV(log_handler=my_log, ytdl=True, input_default_bindings=True, input_vo_keyboard=True)
|
||||||
|
|
||||||
# Property access, these can be changed at runtime
|
# Property access, these can be changed at runtime
|
||||||
player.observe_property('time-pos', lambda _property, pos: print('Now playing at {:.2f}s'.format(pos)))
|
player.observe_property('time-pos', lambda pos: print('Now playing at {:.2f}s'.format(pos)))
|
||||||
player.fullscreen = True
|
player.fullscreen = True
|
||||||
player.loop = 'inf'
|
player.loop = 'inf'
|
||||||
# Option access, in general these require the core to reinitialize
|
# Option access, in general these require the core to reinitialize
|
||||||
|
|
Loading…
Reference in a new issue