Function __global->video_get_default_thumb_url
Definitions
sources/galleries2.php
- Create a video thumbnail.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: string
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $url | URLPATH | No | No | Blank (empty string) | N/A | N/A | URL to the video (blank: not known yet) |
| $thumb_url | URLPATH | No | No | Blank (empty string) | N/A | N/A | URL to the thumbnail image (blank: not known yet, calculate here if possible) |
| $filename | ?string | No | No | Null | N/A | N/A | Filename of video (null: not known yet, calculate here if possible) |
Returns
- Thumbnail URL (blank: could not generate)
- Type: URLPATH
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Create a video thumbnail.
*
* @param URLPATH $url URL to the video (blank: not known yet)
* @param URLPATH $thumb_url URL to the thumbnail image (blank: not known yet, calculate here if possible)
* @param ?string $filename Filename of video (null: not known yet, calculate here if possible)
* @return URLPATH Thumbnail URL (blank: could not generate)
*/
function video_get_default_thumb_url(string $url = '', string $thumb_url = '', ?string $filename = null) : string
* Create a video thumbnail.
*
* @param URLPATH $url URL to the video (blank: not known yet)
* @param URLPATH $thumb_url URL to the thumbnail image (blank: not known yet, calculate here if possible)
* @param ?string $filename Filename of video (null: not known yet, calculate here if possible)
* @return URLPATH Thumbnail URL (blank: could not generate)
*/
function video_get_default_thumb_url(string $url = '', string $thumb_url = '', ?string $filename = null) : string

