Page Index Toggle Pages: 1 Print
Media Player Video -GameTrailers (Read 3270 times)
Captain John
Ex Member


Media Player Video -GameTrailers
May 15th, 2010 at 2:09pm
Print Post  
GameTrailers (GT) is a media website that specializes in video game related content. It provides free access to original programming (such as reviews and previews), game trailers and recorded game play. Many of the video clips are offered in high definition (960x540) along with standard definition (640x360).

In Mediaplayer.pl
Search for:
Code
Select All
		# file extensions that open flash player  



add after:
Code
Select All
    # GameTrailers.com START
		# added Gametrailers.com url support (user video with .html at the end)
		} elsif ($media_url =~ m/gametrailers\.com/i && $media_url =~ m/user/i && $media_url =~ m/\.html/i) {
			(undef,$temp) = split(/gametrailers.com\//,$media_url);
			(undef,undef,$temp) = split(/\//,$temp);
			($mid,undef) = split(/\./,$temp);
			$media_url = qq~http://www.gametrailers.com/remote_wrap.php?umid=$mid~;
			$video = $embed_flash;
			$controlheight = 36;

		# added GameTrailers.com video url support  (user video without .html at the end)
		} elsif ($media_url =~ m/gametrailers\.com/i && $media_url =~ m/user/i) {
			(undef,$temp) = split(/gametrailers.com\//,$media_url);
			($mid,undef) = split(/\./,$temp);
			(undef,undef,$mid) = split(/\//,$temp);
			$media_url = qq~http://www.gametrailers.com/remote_wrap.php?umid=$mid~;
			$video = $embed_flash;
			$controlheight = 36;

		# added Gametrailers.com url support (normal video with .html at the end)
		} elsif ($media_url =~ m/gametrailers\.com/i && $media_url =~ m/\.html/i) {
			(undef,$temp) = split(/gametrailers.com\//,$media_url);
			(undef,$temp) = split(/\//,$temp);
			($mid,undef) = split(/\./,$temp);
			$media_url = qq~http://www.gametrailers.com/remote_wrap.php?mid=$mid~;
			$video = $embed_flash;
			$controlheight = 36;

		# added GameTrailers.com video url support  (normal video without .html at the end)
		} elsif ($media_url =~ m/gametrailers\.com/i) {
			(undef,$temp) = split(/gametrailers.com\//,$media_url);
			($mid,undef) = split(/\./,$temp);
			(undef,undef,$mid) = split(/\//,$temp);
			$media_url = qq~http://www.gametrailers.com/remote_wrap.php?mid=$mid~;
			$video = $embed_flash;
			$controlheight = 36;
    # GameTrailers.com END
 


The only thing that does not work, are videos from the "GT TV" section, as the ID in the URL is not the real video ID. This can only be found in the code in the "Embed" field under the video

Clipfish Support
add after:
Code
Select All
		# added Clipfish video url support
		} elsif ($media_url =~ m/clipfish\.de/i) {
			(undef,$temp) = split(/video\//,$media_url);
			($videoid,undef) = split(/\//,$temp);
			$media_url = qq~http://www.clipfish.de/cfng/flash/clipfish_player_3.swf?as=0&vid=$videoid&r=1&angebot=extern&c=990000~;
			$video = $embed_flash;
			$controlheight = 36;
 




provided by Homer J. S.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Print
 
  « Board Index ‹ Board  ^Top