//FlvPlayer by Matt Hobbs (based on FlashPlayer snippet by Mark & Bugaev and using Flash Video Player 2.3 at http://www.jeroenwijering.com/?item=Flash_Video_Player)
//Usage: [[FlvPlayer?file=filename.flv&width=width&height=height]] (add 20 pixels onto video height to allow for player controls).
//The videos are stored in 'assets/flash/video'. This is customisable with $videoPath
//(note: for some reason I had to insert the full path on my server for the videos to work, you may not require 'http://www.yourwebsite.com/'.
//The player file is placed in 'assets/flash/video' but this can be customised with $playerPath.
//SETTINGS
$autoPlay="true";
$playerPath="assets/flash/video";
$videoPath="http://www.yourwebsite.com/assets/flash/video";
//END SETTINGS
$output = '<object type="application/x-shockwave-flash" width='. $width .' height=' . $height . ' wmode="transparent"
data="'.$playerPath.'/flvplayer.swf?file='.$videoPath.'/'.$file.'&autoStart='.$autoPlay.'">
<param name="movie" value="'.$playerPath.'/flvplayer.swf?file='.$videoPath.'/'.$file.'&autoStart='.$autoPlay.'" />
<param name="wmode" value="transparent" />
</object>';
return $output;<object type="application/x-shockwave-flash data="c.swf?path=movie.swf" width="400" height="300"> <param name="movie" value="c.swf?path=movie.swf" /> <img src="noflash.gif" width="200" height="100" alt="" /> </object>
That one
After messing with the FlashVideo i decided to make my own using Flash Video Player 2.3.
...
You can get the video player files at http://www.jeroenwijering.com/?item=Flash_Video_Player
...
This may be interesting for people in this thread ( credit to Susan once again ).
Drew McLellan over at aListApart had in the process of developing a method of imbedding Flash that validates, discovered a very tidy alternative manner.
<object type="application/x-shockwave-flash data="c.swf?path=movie.swf" width="400" height="300"> <param name="movie" value="c.swf?path=movie.swf" /> <img src="noflash.gif" width="200" height="100" alt="" /> </object>
What is particularly nice is that it doesn’t delve into Flash detection, you just simply get a "background" image if your browser doesn’t have the player.
One does have to know a little about actionscripting however, as there is a "container"’ movie that holds the real movie in it’s "_root".
source
<head>
...
<script src="assets/flashobject.js" type="text/javascript"></script>
</head>
...
<div id="flashcontent"></div><script type="text/javascript">
var fo = new FlashObject("assets/images/yer-movie.swf", "name", "width", "height", "version", "bgcolor");
fo.write("flashcontent");
</script>
...
<head> ... <script src="assets/QTobject.js" type="text/javascript"></script> </head> ... <script type="text/javascript"> QT_WriteOBJECT_XHTML ( 'assets/videos/yer-video.mov', 'width', 'height', '', 'autoplay', 'true', 'controller', 'true', 'emb#bgcolor', '#ffffff' ); </script> ...
<object type="application/x-shockwave-flash data="assets/flash/c.swf?path=assets/flash/movie.swf" width="400" height="300"> <param name="movie" value="assets/flash/c.swf?path=assets/flash/movie.swf" /> <img src="assets/flash/noflash.gif" /> </object>