'libvlc_track_description_t*': 'TrackDescription',
'libvlc_audio_output_t*': 'AudioOutput',
'libvlc_media_stats_t*': 'ctypes.POINTER(MediaStats)',
+ 'libvlc_media_es_t**': 'ctypes.POINTER(ctypes.POINTER(MediaES))',
'mediacontrol_Instance*': 'MediaControl',
'mediacontrol_Exception*': 'MediaControlException',
def __str__(self):
return "MediaStats\n%s" % "\n".join( "%s:\t%s" % (n, getattr(self, n)) for n in self._fields_ )
+class MediaES(ctypes.Structure):
+ _fields_= [
+ ('codec' , ctypes.c_uint32),
+ ('type' , EsType),
+ ('profile' , ctypes.c_int),
+ ('level' , ctypes.c_int),
+ ('channels', ctypes.c_uint),
+ ('rate' , ctypes.c_uint),
+ ('height' , ctypes.c_uint),
+ ('width' , ctypes.c_uint),
+ ]
+
+ def __str__(self):
+ return "MediaES \n%s" % "\n".join( "%s:\t%s" % (n, getattr(self, n)) for n in self._fields_ )
+
class PlaylistItem(ctypes.Structure):
_fields_= [
('id', ctypes.c_int),