XFileSharing Pro - FLV Player skin

Message
Author
hdshare
Posts: 7
Joined: Nov 14, 2010 3:48 am

FLV Player skin

#1 Postby hdshare » Nov 14, 2010 3:52 am

Does anybody know how to change skin in flv player?

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

#2 Postby PowerChaos » Nov 14, 2010 4:43 am

first search this code in index_dl.pm
find this line of text wrote: elsif($file->{vid_codec}=~/(flv|h264)/i || $file->{file_name}=~/\.(flv|mp4)$/i)
it is around line 558

then add this code to it , be sure to keep everything on it like it is as it is the player generating code of jwplayer

here you can get the skins you need
http://www.longtailvideo.com/addons/skins

then you see below this code , the red text is what i added to show a skin (should work , else use the swf file instead zip)
edited swf player code wrote: 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('allowscriptaccess','always');
s1.addParam('wmode','opaque');
s1.addVariable('duration','$file->{vid_length}');
s1.addVariable('file','$file->{direct_link}');
s1.addVariable('image','$file->{video_img_url}');
s1.addVariable('provider','video');
s1.addVariable('skin', 'path/to/your/skin.zip');
s1.write('flvplayer');";
$code = &encodeJS($code);
i can not test it as i do not have the video mod
but if i am not wrong , it should work

please note , i use version 1.8

hopely this helped you

Greetings From PowerChaos

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

#3 Postby PowerChaos » Feb 14, 2011 9:51 am

this is how it looks after editing the above line

http://www.boosterking.com/r4c086hekf7q ... v.mp4.html

so it does works :D

here is my code in case of intrests
flashplayer settings wrote: s1.addParam('allowfullscreen','true');
s1.addParam('allowscriptaccess','always');
s1.addParam('wmode','opaque');
s1.addVariable('duration','$file->{vid_length}');
s1.addVariable('file','$file->{direct_link}');
s1.addVariable('image','$file->{video_img_url}');
s1.addVariable('provider','video');
s1.addVariable('skin','http://demonpower.com/player/alien/alien.xml');
s1.addVariable('controlbar','over');
s1.write('flvplayer');";
Greets From PowerChaos

Dulci
Posts: 112
Joined: Jun 10, 2010 6:45 am

#4 Postby Dulci » Feb 14, 2011 1:33 pm

i dont see any changes ?

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

#5 Postby PowerChaos » Feb 14, 2011 1:36 pm

there is basicly not any change ( there is 1 line extra in my example and skin is to xml file as zip file will not work)

but it is to show how it need to be done with a example this time

the lines in red are the things to add

on that way you can add plugins and a lot of differend stuff to ( complete customize it)

but as it never got a response and because i wrote this before
i can not test it as i do not have the video mod
but if i am not wrong , it should work

please note , i use version 1.8
dit i wanted to post it again but with a example to show that it realy works :D

and it was basicly to confirm a old question that it is possible

Greets From PowerChaos

Dulci
Posts: 112
Joined: Jun 10, 2010 6:45 am

#6 Postby Dulci » Feb 14, 2011 1:45 pm

i mean on your site :)

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

#7 Postby PowerChaos » Feb 14, 2011 1:51 pm

it goes about the player on the download site , not the pre download site ( to select free or premium )

do you not see that alien on it ??

normal is it just a bare player with a bar below it
but in my case it got a skin around it and the player bar is floating a little bit above the movie ( basicly hovering over the movie )

but thats only when you click on free download ... as that page you now see is the pre download page and i can not skip that part for just 1 link

Greets From PowerChaos

adiga
Posts: 177
Joined: Jul 23, 2009 2:27 am

#8 Postby adiga » Oct 15, 2011 9:50 am

how i can change mp3 player skin also?

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

#9 Postby PowerChaos » Oct 15, 2011 2:44 pm

adiga wrote:how i can change mp3 player skin also?
please go to your template folder ( cgi/templates)
download1.html wrote:

Code: Select all

<TMPL_IF song_url>
<TMPL_IF mp3_artist><tr><td align=right><b>Song Artist:</b></td><td><TMPL_VAR mp3_artist></td></tr></TMPL_IF>
<TMPL_IF mp3_title><tr><td align=right><b>Song Title:</b></td><td><TMPL_VAR mp3_title></td></tr></TMPL_IF>
<TMPL_IF mp3_album><tr><td align=right><b>Song Album:</b></td><td><TMPL_VAR mp3_album> <TMPL_IF mp3_year>(<TMPL_VAR mp3_year>)</TMPL_IF></td></tr></TMPL_IF>
<tr><td align=center colspan=2>
<script language='JavaScript' src='<TMPL_VAR site_url>/mp3/audio-player.js'></script>
<object type='application/x-shockwave-flash' data='<TMPL_VAR site_url>/mp3/player.swf' id='mpl' height='20' width='420'>
<param name='movie' value='<TMPL_VAR site_url>/mp3/player.swf'>
<param name='FlashVars' value='playerID=mpl&soundFile=<TMPL_VAR song_url>'>
<param name='quality' value='high'>
<param name='menu' value='false'>
<param name='wmode' value='transparent'>
<TMPL_IF mp3_mod_autoplay><param name='autostart' value='true'></TMPL_IF>
</object>
</td></tr>
</TMPL_IF>
and just replace the mp3/player.swf with your flash player you like to use

do not forget to change embed_mp3.html to , else it will only show on your site

here is a example

Toy Box - The Sailor Song.mp3 - 5.6 MB

enjoy
Greetings From PowerChaos

adiga
Posts: 177
Joined: Jul 23, 2009 2:27 am

#10 Postby adiga » Oct 15, 2011 8:02 pm

Installed a new player and now works correctly
Thank you