Commit 5fe48f88 authored by Olivier Aubert's avatar Olivier Aubert

python-ctypes: update README

parent 2e1208e6
...@@ -44,9 +44,17 @@ c:\Program Files\VideoLAN\VLC ). ...@@ -44,9 +44,17 @@ c:\Program Files\VideoLAN\VLC ).
- Using wrapper classes: - Using wrapper classes:
>>> i=vlc.Instance.new() >>> import vlc
>>> i=vlc.Instance('--no-audio', '--fullscreen')
>>> i.audio_get_volume() >>> i.audio_get_volume()
50 50
>>> m=i.media_new('/tmp/foo.avi') >>> m=i.media_new('/tmp/foo.avi')
>>> m.get_mrl() >>> m.get_mrl()
'/tmp/foo.avi' '/tmp/foo.avi'
>>> p=i.media_player_new(m)
>>> p.play()
or shorter:
>>> import vlc
>>> p=vlc.MediaPlayer('/tmp/foo.avi')
>>> p.play()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment