Expand description
Magic-byte sniffing and MIME mapping for guest video containers.
Constants§
- VIDEO_
FORMAT_ AV1 - AV1 bitstream (often in MP4 or WebM; hint only).
- VIDEO_
FORMAT_ MP4 - MP4 / ISO BMFF (
ftyp). - VIDEO_
FORMAT_ UNKNOWN - Unknown or not recognized as a supported Oxide video format.
- VIDEO_
FORMAT_ WEBM - WebM / Matroska (EBML).
- VIDEO_
HTTP_ ACCEPT Acceptheader forsuper::capabilitiesURL fetches (progressive + adaptive).
Functions§
- is_
likely_ non_ video_ document - MIME types that usually indicate an HTML/JSON error body rather than media.
- mime_
to_ video_ format - Map
Content-Typeto aVIDEO_FORMAT_*constant (for exampleVIDEO_FORMAT_MP4). - sniff_
video_ format - Inspect leading bytes to guess container (does not validate full file).
- suffix_
for_ format - File suffix for temp files when saving bytes (
.mp4,.webm, …).