jaseg / python-mpv

Python interface to the awesome mpv media player
https://git.jaseg.de/python-mpv.git
Other
550 stars 68 forks source link

How to apply mpv command options to python-mpv ?!? #237

Closed gsool9988 closed 1 year ago

gsool9988 commented 1 year ago

mpv --keep-open --idle --no-window-dragging I want to apply mpv options to my python-mpv script, but I've still not found that way. Can anyone help show me some example?

jaseg commented 1 year ago

All options are mapped as constructor arguments like shown in this example. In your case, that would be mpv.MPV(keep_open=True, idle=True, no_window_dragging=True).

gsool9988 commented 1 year ago

Thanks for your answer by which now I understand the way of applying original mpv options to python-mpv python script. Thank you.

2022년 10월 11일 (화) 오후 10:00, jaseg @.***>님이 작성:

All options are mapped as constructor arguments like shown in this example https://github.com/jaseg/python-mpv#using-external-subtitles. In your case, that would be mpv.MPV(keep_open=True, idle=True, no_window_dragging=True).

— Reply to this email directly, view it on GitHub https://github.com/jaseg/python-mpv/issues/237#issuecomment-1274651977, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYHLHZUM2G5XYHVSTESXNDLWCVQHBANCNFSM6AAAAAAQ7N6MTU . You are receiving this because you authored the thread.Message ID: @.***>