# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
#
+"""This module provides bindings for the
+U{libvlc<http://wiki.videolan.org/ExternalAPI>} and
+U{MediaControl<http://wiki.videolan.org/MediaControlAPI>} APIs.
+
+You can find documentation at U{http://www.advene.org/download/python-ctypes/}.
+
+Basically, the most important class is L{Instance}, which is used to
+create a libvlc Instance. From this instance, you can then create
+L{MediaPlayer} and L{MediaListPlayer} instances.
+"""
+
import ctypes
import sys
('message', ctypes.c_char_p),
]
+ def __str__(self):
+ print "vlc.LogMessage(%d:%s): %s" % (self.severity, self.type, self.message)
+
class MediaControlPosition(ctypes.Structure):
_fields_= [
('origin', ctypes.c_ushort),
def free(self):
mediacontrol_RGBPicture__free(self)
-# Decorator for callback methods
-callbackmethod=ctypes.CFUNCTYPE(None, ctypes.c_void_p, ctypes.c_void_p)
-
def check_vlc_exception(result, func, args):
"""Error checking method for functions using an exception in/out parameter.
"""