Skip to content

cf_video_duration

Category: video
GitHub: cute_video.h


How long the video runs, in seconds.

float cf_video_duration(CF_Video* video);
Parameters Description
video The video.

Return Value

Returns the length, or 0 if the file does not state a frame rate -- the frame count is always known, but seconds need a rate to divide by.

CF_Video
cf_video_frame_count
cf_video_fps