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),