XFileSharing Pro - Flowplayer

Message
Author
FlyLight
Posts: 18
Joined: Dec 25, 2011 7:08 am

Flowplayer

#1 Postby FlyLight » Mar 04, 2012 10:32 pm

Can I use it in the script?

How do I use?

ikky
Posts: 14
Joined: Jan 30, 2012 2:08 pm

#2 Postby ikky » Mar 05, 2012 10:46 pm

Yes, you can.

modify index_dl file

PowerChaos
Posts: 521
Joined: Dec 19, 2009 5:12 pm

#3 Postby PowerChaos » Mar 08, 2012 11:57 am

search in index_dl.pm for the following text

Code: Select all

mp4
then add your code like my below code

Code: Select all

         my $code="var s1 = new SWFObject('$c->{site_url}/player/player.swf','player','$file->{vid_width}','$file->{vid_height}','9');
s1.addParam('allowfullscreen','true');
s1.addParam('wmode','opaque');
s1.addParam('allowscriptaccess','always');
s1.addVariable('duration','$file->{vid_length}');
s1.addVariable('file','$file->{direct_link}');
s1.addVariable('image','$file->{video_img_url}');
s1.addVariable('provider','http');
s1.addVariable('http.startparam','start');
s1.addVariable('streamer','$file->{direct_link}');
s1.addVariable('bufferlength','5');
s1.addVariable('skin','http://boosterking.com/player/control/controlpanel.swf');
s1.addVariable('controlbar','over');
s1.addVariable('plugins', 'like-1,newsticker-1');
s1.addVariable('newsticker.text', 'Embed Video&#39s and Premium members Can skip parts of the movie');
s1.write('flvplayer');";
         //some text removed for security
         $file->{video_code}="<span id='flvplayer'></span>
<script type='text/javascript' src='$c->{site_url}/player/swfobject.js'></script>
$code
<br>";
as soon that is done , then you can see your new player :D

Same way apply for other players or custom players

please note , depending on player it can only work for flv files or for flv and mp4 files

but to fully enjoy mp4 files you need to install pseudostreaming

Greetings From PowerChaos