To play Youtube videos in JW Player.
Open include/class.video_player.php
Find:
Replace with: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>';
Download the following zip file, extract and upload the extracted file(yt.swf) to your vshare 'player' folder.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';
If you can't do it, open a support ticket at
BuyScripts Helpdesk
with your vshare admin and FTP login details.
Thanks,
Buyscripts Team


Reply With Quote

Bookmarks