Welcome, Guest. Please login or register.
Did you miss your activation email?
May 26, 2012, 03:56:11 AM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
155533 Posts in 21713 Topics by 7739 Members
Latest Member: audillino
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: FLV Video Droplet?  (Read 1552 times)
itprox

Offline Offline

Posts: 1


« on: February 12, 2010, 02:01:20 PM »

Hi,
i have a proble, i need /search for a droplet witch can be use for showing flv video ..

an example: [[videodrop?v=http://www.mysite.com/videos/test.flv]]

maybe its possible to use the JW Player....

Bye bye
PS: Sorry for my bad english...

=> das ganze nochmal auf deutsch:
Ich suche ein Droplet mit welchem ich FLV Video in meine Seiten einbinden kann bei dem ich auch den Player anpassen kann z. B. JW oder Flowplayer...
Logged
instantflorian
Betatester
*
Offline Offline

Posts: 804



WWW
« Reply #1 on: February 12, 2010, 07:39:31 PM »

Hi,

I've written a droplet for embedding the MC media player (http://www.mcmediaplayer.com/)
mcmp_0.8.swf and mcmp_0.8.js have to be copied to a directory "flvplayer" in the root of your WebsiteBaker site. The movies and optional film stills have to be saved in a directory "filme" in the media directory.

Then you can call [[flvplayer?film=beispiel.swf&still=filmstill.jpg&width=400&height=300]]

Code:
$returnvalue = '<script type="text/javascript">';
$returnvalue .= 'playerFile = "'.WB_URL.'/flvplayer/mcmp_0.8.swf";';
$returnvalue .= 'fpFileURL = "'.WB_URL.'/media/filme/'.$film.'";';
if ($still) {
$returnvalue .= 'fpPreviewImageURL = "'.WB_URL.'/media/filme/'.$still.'";';
}
$returnvalue .= 'playerSize = "'.$width.'x'.$height.'";';
$returnvalue .= 'colorScheme = "666666";';
$returnvalue .= '</script>';
$returnvalue .= '<script type="text/javascript" src="'.WB_URL.'/flvplayer/mcmp_0.8.js"></script>';
return $returnvalue;

Have fun
-instantflorian.
Logged
capt_funk

Offline Offline

Posts: 2


WWW
« Reply #2 on: April 10, 2012, 02:07:32 PM »

Maybe a little late but it might help some people here:
I've just finished developing a droplet for the flowplayer. Install the player as described on the webiste (http://flowplayer.org)

Code:
$width = $width?$width:'425';
$height = $height?$height:'300';
$path = $path?$path:WB_URL.'/media/video/';
$output = '<a href="'.$path.$file.'"
style="display:block;width:'.$width.'px;height:'.$height.'px;"
id="player">
</a>
<script language="JavaScript">
      flowplayer("player", "'.WB_URL.'/media/flowplayer/flowplayer-3.2.9.swf", {
      clip: {
      autoPlay: false,
      autoBuffering: true},
      onLoad: function() {
      this.setVolume(50);}
      });
    </script>';
return $output;

Adjust the path to the flowplayer, done!

Call droplet with:
[[flashvideo?file=filename.flv]]
file: file name with extension (.flv) in folder 'media/video'.
Optional:
path: path to file with '/' at the end
width: width of video (in px) Default value: 425
height: height of video (in px) Default value: 300
Example:
[[flashvideo?file=test.flv&path=http://www.test.com/video/&width=320&height=200]]
Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!