Function __global->is_video
Definitions
sources/images.php
- Find whether the video specified is actually a 'video', based on file extension.
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: bool
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$name | string | required parameter | N/A | N/A | A URL or file path to the video |
$as_admin | boolean | required parameter | N/A | N/A | Whether there are admin privileges, to render dangerous media types (client-side risk only) |
$must_be_true_video | boolean | False | N/A | N/A | Whether it really must be an actual video/audio, not some other kind of rich media which we may render in a video spot |
Return
- Whether the string pointed to a file appeared to be a video
- Type: boolean
- Set: N/A
- Range: N/A