-
Notifications
You must be signed in to change notification settings - Fork 71
Open
Labels
enhancementNew feature or requestNew feature or request
Description
It would be useful to be able to take a video file as bytes, and play them back in hxCodec as a video, without having to have the video on the disk, or have the video on a remote server.
The public interface on the video handler for this functionality would look something like this:
public function playVideoFromBytes(videoData:haxe.io.Bytes, shouldLoop:Bool = false);This could be implemented using the following function: https://videolan.videolan.me/vlc/group__libvlc__media.html#ga591c3cbe56444f1949165b2b9b75d8e2
LIBVLC_API libvlc_media_t* libvlc_media_new_callbacks (libvlc_instance_t * instance, libvlc_media_open_cb open_cb, libvlc_media_read_cb read_cb, libvlc_media_seek_cb seek_cb, libvlc_media_close_cb close_cb, void * opaque);
This allows defining your own functions for opening, reading, seeking (fast-forwarding or rewinding) and closing a media file. We just need to incorporate these with Haxe code to access a byte array.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request