Results 1 to 9 of 9

Thread: [MOD] Play Youtube videos in JW Player

  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
    213

    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 ?

  7. #7

    Default

    This way work with JW player v4.4.
    only vShare sites allowed in signature.

  8. #8
    Join Date
    Sep 2010
    Location
    Pokhara Nepal
    Posts
    49

    Default

    Hello there
    i tried to find out about installing news jwplayer on vshare. I am having new version of vshare (2.8.1) and still old version of JWplayer used. how can i use new JWplayer with new skin or HTML5 option in existing vshare installation? Do anyone have idea? Admin or developer of vshare should have think of this before releasing new version of script. I am waiting for someone to respond.
    Nepal's Largest video community portal. share wisely at WWW.CLONEVIDEOS.COM

  9. #9

    Default

    Quote Originally Posted by clonevideos View Post
    Hello there
    i tried to find out about installing news jwplayer on vshare. I am having new version of vshare (2.8.1) and still old version of JWplayer used. how can i use new JWplayer with new skin or HTML5 option in existing vshare installation? Do anyone have idea? Admin or developer of vshare should have think of this before releasing new version of script. I am waiting for someone to respond.
    Upload your new jwplayer and skin(.zip file) to your 'vShare/player' folder.

    Then open vShare/include/player.inc file and find
    Code:
    so.write('vshare_player');
    Replace with
    Code:
    so.addVariable("skin", "{$config['baseurl']}/player/NEW_SKIN.zip");
    so.write('vshare_player');
    You must replace text 'NEW_SKIN' with your uploaded skin name.

    If you can't get it, open a support ticket at BuyScripts Helpdesk with your cpanel login details.

    Thanks,

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
  •