infer

Function is_video

Source
pub fn is_video(buf: &[u8]) -> bool
Expand description

Determines whether a buffer is a video type.

ยงExamples

use std::fs;
assert!(infer::is_video(&fs::read("testdata/sample.mov").unwrap()));