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:
parent
2e1208e690
commit
5fe48f885c
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user