vlc.MediaOpenCb =============== .. py:class:: vlc.MediaOpenCb Bases: :py:obj:`ctypes.c_void_p` Callback prototype to open a custom bitstream input media. The same media item can be opened multiple times. Each time, this callback is invoked. It should allocate and initialize any instance-specific resources, then store them in **datap*. The instance resources can be freed in the :class:`MediaCloseCb` callback. .. note:: For convenience, **datap* is initially None and **sizep* is initially 0. :param opaque: private pointer as passed to :func:`libvlc_media_new_callbacks`. :param datap: storage space for a private data pointer [OUT]. :param sizep: byte length of the bitstream or UINT64_MAX if unknown [OUT]. :return: 0 on success, non-zero on error. In case of failure, the other. callbacks will not be invoked and any value stored in **datap* and **sizep* is. discarded. Initialize self. See help(type(self)) for accurate signature.