Thread Starter
recci
(@recci)
I noticed that in wp-content/plugins/featured-video-plus/php/general.php
line 63 $ext != ‘flv’ was missing from the if statement. Is this bug or left out for a reason?
Adding that allows it to play ,flv files
I also tried to add support for xhamster videos by altering the switch statement in wp-content/plugins/featured-video-plus/php/backend.php get_video_data function. It seems to be passing back the correct data but will not play the videos. Must be something to do with the JavaScript.
case ‘xhamster’:
preg_match(‘/video=([a-zA-Z0-9]+)/’, $url, $url_data);
if( !isset($url_data[1]) )
break;
$video_id = $url_data[1];
$data = array(
‘id’ => $video_id,
‘provider’ => $provider,
‘url’ => ‘http://xhamster.com/xembed.php?video=’,
);
break;
Thread Starter
recci
(@recci)
I got it working with xhamster do ass above then in:
wp-content/plugins/featured-video-plus/php/general.php
after line 139 add this case to the switch statement:
case ‘xhamster’:
$embed = “\n” . ‘<iframe width=”‘.$size[‘width’].'” height=”‘.$size[‘height’].'” src=”//xhamster.com/xembed.php?video=’.$meta[‘id’].'” frameborder=”0″ allowfullscreen></iframe>’;
break;