Coding standards
Security in ResourceSpace
Developer reference
Database
Action functions
Admin functions
Ajax functions
Annotation functions
API functions
Collections functions
Comment functions
Config functions
CSV export functions
Dash functions
Debug functions
Encryption functions
Facial recognition functions
File functions
General functions
Language functions
Log functions
Login functions
Message functions
Migration functions
Node functions
PDF functions
Plugin functions
Render functions
Reporting functions
Request functions
Research functions
Slideshow functions
Theme permission functions
User functions
Video functions
Database functions
Metadata functions
Resource functions
Search functions
Map functions
Job functions
Tab functions
Test 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 8721 to 8738

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 11th December 2024 20:35 Europe/London time based on the source file dated 11th December 2024 15:55 Europe/London time.