Collections functions
Encryption functions
General functions
Render functions
Theme permission functions
Video 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 8177 to 8195

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'])
                {
                
$alt_is_ffmpeg_alternative=true;
                return 
$alt_is_ffmpeg_alternative;
                }
            }
        }
    return 
$alt_is_ffmpeg_alternative;
    }

This article was last updated 1st December 2020 08:05 Europe/London time based on the source file dated 30th November 2020 11:55 Europe/London time.