Collections functions
General functions
Node functions
Render functions
Theme permission functions
User functions
Resource functions

alt_is_ffmpeg_alternative()

Description

Determine if a video alternative was created from $ffmpeg_alternatives settings.
Places in this file because get_resource_path relies on it

Parameters

ColumnTypeDefaultDescription
$alternative array Record line from resource_alt_files

Return

boolean True means alternative was created from $ffmpeg_alternatives settings

Location

include/resource_functions.php lines 8510 to 8527

Definition

 
function alt_is_ffmpeg_alternative($alternative)
    {
    global 
$ffmpeg_alternatives;

    
$alt_is_ffmpeg_alternative=false;

    if(isset(
$ffmpeg_alternatives) && !empty($ffmpeg_alternatives))
        {
        foreach(
$ffmpeg_alternatives as $alt_setting)
            {
            if(
$alternative['name']==$alt_setting['name'] && $alternative['file_name']==$alt_setting['filename'] . '.' $alt_setting['extension'])
                {
                return 
true;
                }
            }
        }
    return 
$alt_is_ffmpeg_alternative;
    }

This article was last updated 19th March 2024 06:05 Europe/London time based on the source file dated 11th March 2024 14:25 Europe/London time.