Results 1 to 9 of 9

Thread: [MOD] Play Youtube videos in JW Player

Hybrid 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.

  2. #2
    Join Date
    Oct 2010
    Posts
    29

    Default

    i use this code and works
    HTML Code:
    <embed type='application/x-shockwave-flash' id='single2' name='single2' src='http://site.com/player.swf' width='728' height='380' bgcolor='#ffffff' allowscriptaccess='always' allowfullscreen='true' flashvars='file=http://www.youtube.com/v/NmTKfdPnzN0&autostart=true'/><br>

  3. #3
    Join Date
    Jan 2008
    Posts
    216

    Default

    Quote Originally Posted by alotp View Post
    i use this code and works
    HTML Code:
    <embed type='application/x-shockwave-flash' id='single2' name='single2' src='http://site.com/player.swf' width='728' height='380' bgcolor='#ffffff' allowscriptaccess='always' allowfullscreen='true' flashvars='file=http://www.youtube.com/v/NmTKfdPnzN0&autostart=true'/><br>
    Thank you for your post but your code it is not relative to this topic, your code is valid for single embed file.

  4. #4
    Join Date
    Oct 2010
    Posts
    29

    Default

    I am just posted how the embed code works. Also Is dependes what JW player version you have. This way work with JW player v4.4.

  5. #5

    Default

    Hi,

    I have modified my above post(http://forums.buyscripts.in/vshare-m...html#post23672). Try again.

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

  6. #6

    Default

    Any idea how to make the youtube video play in high quality or maybe possible to switch between LQ and HQ ?

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
  •