Oihana PHP

VideoMimeTypeTrait

The trait to register all video mime types.

This trait provides constants for widely used video MIME types, which can be used to validate or set content-type headers safely.

Tags
author

Marc Alcaraz (ekameleon)

since
1.0.0

Table of Contents

Constants

AVI  : string = 'video/x-msvideo'
FLV  : string = 'video/x-flv'
M4V  : array<string|int, mixed> = ['video/x-m4', 'video/mp4v']
MKV  : string = 'video/x-matroska'
MOV  : string = 'video/quicktime'
MP4  : string = 'video/mp4'
MPEG  : string = 'video/mpeg'
MPG  : string = 'video/mpeg'
WEBM  : string = 'video/webm'
WMV  : string = 'video/x-ms-wmv'

Constants

On this page

Search results