Go Back   BuyScripts Forums > vShare YouTube Clone > Installation Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-20-2009, 10:53 PM
Member
 
Join Date: Jul 2009
Posts: 32
Default anyone help me if code is available

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
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 02:25 PM.


Powered by vBulletin. Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO