Results 1 to 9 of 9

Thread: [MOD] Play Youtube videos in JW Player

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default [MOD] Play Youtube videos in JW Player

    To play Youtube videos in JW Player.

    Open include/class.video_player.php

    Find:
    Code:
    $vshare_player = '
            <object width="' . $config['player_width'] . '" height="' . $config['player_height'] . '">
            <param name="movie" value="http://www.youtube.com/v/' . $this->video_info['video_name'] . '&autoplay=' . $config['player_autostart'] . '&hl=en&fs=1"></param>
            <param name="allowFullScreen" value="true"></param>
            <param name="allowscriptaccess" value="always"></param>
            <embed src="http://www.youtube.com/v/' . $this->video_info['video_name'] . '&autoplay=' . $config['player_autostart'] . '&hl=en&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true"
            width="' . $config['player_width'] . '" height="' . $config['player_height'] . '"></embed>
            </object>';
    Replace with:
    Code:
                global $servers;
                $video_folder = $this->video_info['video_folder'];
                $file = 'http://www.youtube.com/v/' . $this->video_info['video_name'];
                $video_id = $this->video_info['video_id'];
                $video_thumb_url = $servers[$this->video_info['video_thumb_server_id']];
    
                require VSHARE_DIR . '/include/player.inc';
    Download the following zip file, extract and upload the extracted file(yt.swf) to your vshare 'player' folder.

    If you can't do it, open a support ticket at

    BuyScripts Helpdesk

    with your vshare admin and FTP login details.

    Thanks,

    Buyscripts Team
    Last edited by vshare2; 11-27-2010 at 09:41 AM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •