X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=bindings%2Fpython-ctypes%2Foverride.py;h=8cf379e013c520c219b5e63d388104943e4fc7b2;hb=d2a714c1e4f5337e9d602dc7e81f875fc29e0305;hp=9f9d6a844ec737e3756680aeef965d0bb5743f05;hpb=c57811067847c2644c2487a749f149057fb448cf;p=vlc diff --git a/bindings/python-ctypes/override.py b/bindings/python-ctypes/override.py index 9f9d6a844e..8cf379e013 100644 --- a/bindings/python-ctypes/override.py +++ b/bindings/python-ctypes/override.py @@ -168,6 +168,19 @@ class MediaControl: e=MediaControlException() return mediacontrol_get_stream_information(self, key, e).contents +class Media: + def add_options(self, *list_of_options): + """Add a list of options to the media. + + Options must be written without the double-dash, e.g.: + m.add_options('sub-filter=marq@test{marquee=Hello}', 'video-filter=invert') + + Note that you also can directly pass these options in the Instance.media_new method: + m=instance.media_new( 'foo.avi', 'sub-filter=marq@test{marquee=Hello}', 'video-filter=invert') + """ + for o in list_of_options: + self.add_option(o) + class MediaPlayer: """Create a new MediaPlayer instance.