Well, looks like you really have not a lot of experience.
You can have double (normal/HD) videos from some time only,not from beginning, of course you cannot have HD video for youtbe embed code, as this is not even video file, just URL.
Whatever - you cannot assign HD video in playlist if such video file doesn't exist.
Apart of invalid player assign - you have then many 404 errors what is worse.
I appreciate MGR programming skills, but still he's not very experienced, shouldn't offer services until he knows what he does.
FOr youtube videos in file "playlist.php" you should have a line
- Code: Select all
$file = 'http://www.youtube.com/watch?v='.$video_row['embed_id'];
below in new line you should skip HD file then by adding a line;
- Code: Select all
$filehd='';
But that's only for youtube vids and if playlist file was not changed a lot.
For other videos you should check first if hd file exists..
Where you have a line:
- Code: Select all
$filehd = $config['SITE_URL']."/uploads/high/".$video_row['video_id'].".mp4";
you should change it to something like that:
- Code: Select all
if(file_exists($config['BASE_URL']."/uploads/high/".$video_row['video_id'].".mp4")) {
$filehd = $config['SITE_URL']."/uploads/high/".$video_row['video_id'].".mp4";
}