Hello, my site is installed with AGRIYA player, it is playing fine now, my only concerns is i modify the functions_file.php to work with video that is uploaded or hotlinked with the ADD FLV/EMBED in command in the VSHARE ADMIN SECTION. my concerns is i there a code that will play or the command will look which file URL is Available, this is the command use to run with AGRIYA PLAYER for video that is hotlinked with ADD FLV/EMBED in the VSHARE ADMIN SECTION,

functions_file.php - Use for agriya player

<?php

function get_file_url($server_id, $folder, $name, $embed)
{
if ($server_id == 0)
{
$file_url = $embed;
return $file_url;
}

-----------------------------------------------------------------------

original functions_file.php


<?php

function get_file_url($server_id, $folder, $name)
{
if ($server_id == 0)
{
$file_url = VSHARE_URL . '/flvideo/' . $folder . $name;
return $file_url;
}

-----------------------------------------------------------------------

i have a video server, if i turn it off, the video will be move to the FLVIDEO folder of server id 0, and it will cause me a problem when my VIDEO SERVER is down, is there a code that will make the script choose what is the available source for the video it must be

$file_url = VSHARE_URL . '/flvideo/' . $folder . $name;

or

$file_url = $embed;

where the video is available,

Regards