1
mirror of https://code.videolan.org/videolan/vlc synced 2024-10-11 06:21:30 +02:00

python-ctypes: update README

This commit is contained in:
Olivier Aubert 2009-07-31 17:11:38 +02:00
parent 2e1208e690
commit 5fe48f885c

View File

@ -44,9 +44,17 @@ c:\Program Files\VideoLAN\VLC ).
- Using wrapper classes:
>>> i=vlc.Instance.new()
>>> import vlc
>>> i=vlc.Instance('--no-audio', '--fullscreen')
>>> i.audio_get_volume()
50
>>> m=i.media_new('/tmp/foo.avi')
>>> m.get_mrl()
'/tmp/foo.avi'
>>> p=i.media_player_new(m)
>>> p.play()
or shorter:
>>> import vlc
>>> p=vlc.MediaPlayer('/tmp/foo.avi')
>>> p.play()