Collections functions
Encryption functions
General functions
Theme permission 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 7990 to 8008

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 7th July 2020 09:35 Europe/London time based on the source file dated 6th July 2020 18:09 Europe/London time.