[vlc-devel] commit: python-ctypes: update README (Olivier Aubert )
git version control
git at videolan.org
Fri Jul 31 17:30:11 CEST 2009
vlc | branch: master | Olivier Aubert <olivier.aubert at liris.cnrs.fr> | Fri Jul 31 17:11:38 2009 +0200| [5fe48f885ce3e681f567f4bb6b4b93a090d2b0fd] | committer: Olivier Aubert
python-ctypes: update README
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5fe48f885ce3e681f567f4bb6b4b93a090d2b0fd
---
bindings/python-ctypes/README | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/bindings/python-ctypes/README b/bindings/python-ctypes/README
index e45c37b..a5516f9 100644
--- a/bindings/python-ctypes/README
+++ b/bindings/python-ctypes/README
@@ -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()
More information about the vlc-devel
mailing list