• Resolved recci

    (@recci)


    When I try to upload my own .flv files they don’t work. I click the little icon in the video post section select my uploaded video and then its pasts the url back into the video box but the link turns red and video wont play.

    Any idea what’s going wrong? I am a php developer myself so if you point me in the right direction I may be able to fix it myself.

    https://ww.wp.xz.cn/plugins/featured-video-plus/

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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;

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Uploaded .flv files not working’ is closed to new replies.