summaryrefslogtreecommitdiff
path: root/js/jw_player/flvVideo.php
blob: db6c6c4e3967a9bc6fa6c1a7c5eee827ecabb286 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<?php
/**
 * JW Player module for phpGedView
 *
 * Display flv video media Items using JW Player in PGV
 *
 * webtrees: Web based Family History software
 * Copyright (C) 2010 webtrees development team.
 *
 * Derived from PhpGedView
 * Copyright (C) 2007 to 2010  PGV Development Team.  All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 *
 * @package webtrees
 * @subpackage Module
 * @version $Id: flvVideo.php 8435 2010-05-24 22:52:51Z greg $
 * @author Brian Holland
 */
 ?>
<html xmlns="http://www.w3.org/1999/xhtml" <?php // echo i18n::html_markup(); ?>>
<head>
	<META HTTP-EQUIV="Expires" CONTENT="Tue, 01 Jan 1980 1:00:00 GMT">
	<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
	<title>JW Player for Flash</title>
	<script type="text/javascript" src="swfobject.js"></script>
</head>
<body bgcolor="#000000">
<center>

<?php
global $pid, $GEDCOM ;
global $flvVideo;
$flvVideo=$_GET['flvVideo'];
$preview="";
// echo "<font color=white>".$flvVideo."</font>";
?>

	<!-- START OF THE PLAYER EMBEDDING TO COPY-PASTE -->
	<!--	
	<object id="player" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" name="player" width="400" height="315">
		<param name="movie" value="player.swf" />
		<param name="allowfullscreen" value="true" />
		<param name="allowscriptaccess" value="always" />
		<param name="flashvars" value="file=video.flv&image=preview.jpg" />
		<embed
			type="application/x-shockwave-flash"
			id="player2"
			name="player2"
			src="player.swf" 
			width="400" 
			height="315"
			allowscriptaccess="always" 
			allowfullscreen="true"
			flashvars="file=http://www.youtube.com/watch?v=TF6cnLnEARo"
		/>
	</object>
	-->
	<!-- END OF THE PLAYER EMBEDDING -->
	

	<div id="container"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.</div>
	<script type="text/javascript">
		var video 	= "<?php print $flvVideo; ?>";
		var preview = "<?php print $preview; ?>";
		var s1 = new SWFObject("player.swf","ply","480","365","9","#000000");
		s1.addParam("allowfullscreen","true");
		s1.addParam("allowscriptaccess","always");
		s1.addParam("stretching","fill");
		s1.addParam("flashvars","file=" +video+ "&image=" +preview+ "&autostart=true" );
		s1.write("container");
  </script> 



</center>
</body>

</html>