cf_make_video¶
Category: video
GitHub: cute_video.h
Opens a video file for playback.
| Parameters | Description |
|---|---|
virtual_path |
A virtual path to an .mp4 or raw .h264 file. See Virtual File System. |
Return Value¶
Returns the video, or NULL on failure -- call cf_video_error for the reason.
Remarks¶
Both container forms are accepted and told apart by their contents, so a file saved by cf_video_encoder_save reopens whichever extension it was given. The first frame is decoded on open -- it is what answers the size and rate -- so cf_video_frame and cf_video_texture work immediately; call cf_video_update or cf_video_next_frame to advance past it. Free it with cf_destroy_video.
Related Pages¶
CF_Video
cf_make_video_from_memory
cf_destroy_video
cf_video_update
cf_video_error