zero-perfoliate
zero-perfoliate

Author Topic: I have this working...well sort of.. Please help  (Read 218 times)

Offline cowboysdude

  • New PHP Members
  • Posts: 4
  • Karma: +0/-0
I have this working...well sort of.. Please help
« on: August 19, 2009, 04:23:27 AM »
What I have is a video player with a menu.  Click on a video on the menu and it plays...in the same window.  What I'm trying to do is just show the menu, have a greybox popup and play the video... here is what I have so far... The box pops up but does not load the video...

Suggestion would be great!!  Many Thanks!

Code: [Select]
<?php
//don't allow other scripts to grab and execute our file
defined('_JEXEC') or die('Direct Access to this location is not allowed.');
// Include the syndicate functions only once
require_once (dirname(__FILE__).DS.'helper.php');
require_once (
dirname(__FILE__).DS.'mod_flowplayv.css');

?>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script type="text/javascript">var GB_ROOT_DIR = "modules/mod_flowplay/greybox/";</script>
<script type="text/javascript" src="modules/mod_flowplay/greybox/AJS.js"></script>
<script type="text/javascript" src="modules/mod_flowplay/greybox/AJS_fx.js"></script>
<script type="text/javascript" src="modules/mod_flowplay/greybox/gb_scripts.js"></script>
<!-- DO NOT CHANGE THIS -->
<c:if test="true">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script src="<?php echo $baseurl ?>/modules/mod_flowplay/js/flowplayer-3.0.5.min.js"></script>
</c:if>

<script src="<?php echo $baseurl ?>/modules/mod_flowplay/js/flowplayer.playlist-3.0.5.pack.js"></script>


<script>
$(function() {

// setup player
$f("player", "/modules/mod_flowplay/swf/flowplayer-3.1.1.swf",{

clip: {baseUrl: '<?php echo $baseurl ?>'}

// playlist plugin
}).playlist("#playlist");

plugins: {
        lighttpd: { 
            url: "/modules/mod_flowplay/swf/flowplayer.pseudostreaming-3.1.1.swf" 
        }


    }

});

</script>


<!-- player container -->
<a id="player" class="player plain">
<img src="modules/mod_flowplay/images/logo.png" />
</a>


<!-- the playlist. simple HTML controlled with CSS -->
<div id="playlist">
<?php

$lines 
file('modules/mod_flowplay/edit/file.txt'FILE_IGNORE_NEW_LINES FILE_SKIP_EMPTY_LINES);
foreach(
$lines as $line)
{
    list(
$filename$title$time) = explode('-'$line);
    echo 
"<a href='$path/$filename' rel='gb_page_center[500, 300]'> $title <br />$time";

?>

</div>

<!-- let the rest of the page float normally -->
<br clear="all" />

<!-- END DO NOT CHANGE THIS -->