diff options
| author | fisharebest <fisharebest@gmail.com> | 2010-05-24 16:12:01 +0000 |
|---|---|---|
| committer | fisharebest <fisharebest@gmail.com> | 2010-05-24 16:12:01 +0000 |
| commit | 65072e6af27a6e8c802073fc560a79392118ed3a (patch) | |
| tree | 19f8e578e5b3d25c0c72cf4da81e253f235e3391 /modules/jw_player/wmvVideo.php | |
| parent | 2bf6a6072a5a4eb89143ffcdb4871d5a8396809b (diff) | |
| download | webtrees-65072e6af27a6e8c802073fc560a79392118ed3a.tar.gz webtrees-65072e6af27a6e8c802073fc560a79392118ed3a.tar.bz2 webtrees-65072e6af27a6e8c802073fc560a79392118ed3a.zip | |
Tables and blocks. Add wt_module_settings, move wt_nextid to wt_next_id, remove html block - just have adv-html block.
Diffstat (limited to 'modules/jw_player/wmvVideo.php')
| -rw-r--r-- | modules/jw_player/wmvVideo.php | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/modules/jw_player/wmvVideo.php b/modules/jw_player/wmvVideo.php new file mode 100644 index 0000000000..b7cb4fd89e --- /dev/null +++ b/modules/jw_player/wmvVideo.php @@ -0,0 +1,70 @@ +<?php +/** + * JW Player module for phpGedView + * + * Display wmv 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 2009 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$ + * @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 Windows Media Videos</title> + <script type="text/javascript" src="modules/jw_player/silverlight.js"></script> + <script type="text/javascript" src="modules/jw_player/wmvplayer.js"></script> +</head> +<body bgcolor="#000000"> +<center> + +<?php +global $pid, $GEDCOM ; +global $wmvVideo, $SERVER_URL; +$wmvVideo=decrypt(safe_GET('wmvVideo')); +?> + +<div id="myplayer">The player will be placed here</div> + +<script type="text/javascript"> + var elm = document.getElementById("myplayer"); + var src = 'modules/jw_player/wmvplayer.xaml'; + var cfg = { + file:'<?php echo $wmvVideo; ?>', + <?php if (preg_match("/\.mp3$/i", $wmvVideo)) { ?> + logo:'modules/jw_player/audio.png', + <?php } ?> + autostart:'true', + overstretch:'true', + width:'480', + height:'365' + }; + var ply = new jeroenwijering.Player(elm,src,cfg); +</script> + +</center> +</body> +</html> |
