def libvlc_media_new_callbacks(instance, open_cb, read_cb, seek_cb, close_cb, opaque):
 f = (_Cfunctions.get('libvlc_media_new_callbacks', None) or _Cfunction('libvlc_media_new_callbacks', ((1,), (1,), (1,), (1,), (1,), (1,)), class_result(Media), ctypes.c_void_p, Instance, MediaOpenCb, MediaReadCb, MediaSeekCb, MediaCloseCb, ctypes.c_void_p))
 return f(instance, open_cb, read_cb, seek_cb, close_cb, opaque)

def libvlc_media_new_callbacks ( instance , open_cb , read_cb , seek_cb , close_cb , opaque ) : f = ( _Cfunctions . get ( 'libvlc_media_new_callbacks' , None ) or _Cfunction ( 'libvlc_media_new_callbacks' , ( ( 1 , ) , ( 1 , ) , ( 1 , ) , ( 1 , ) , ( 1 , ) , ( 1 , ) ) , class_result ( Media ) , ctypes . c_void_p , Instance , MediaOpenCb , MediaReadCb , MediaSeekCb , MediaCloseCb , ctypes . c_void_p ) ) return f ( instance , open_cb , read_cb , seek_cb , close_cb , opaque )
create a media with custom callbacks to read the data from .