|
|||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Member To Member Support Have a question? Need some help? Technical support questions only please |
|
|
Thread Tools | Display Modes |
|
|
|
#1
|
|||
|
|||
|
I have worked extensively with the flv player/media player. It has two options, show full screen and show stopbutton.
Neither work on this script, even when I change it to the media player version. Is there a reason for this or a workaround? thanks |
|
#2
|
||||
|
||||
|
It's easy when you know how
![]() Use the FLV player from here. Put the following files in these locations: swfobject.js in the includes/ folder player.swf in the misc/flash/ Then use replace the code in includes/play.inc (around line 446) with this: $mediaPlayer = '<p id="player1"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.</p> <script type="text/javascript" src="'.$sitepath.'includes/swfobject.js"></script> <script type="text/javascript"> var s1 = new SWFObject("'.$sitepath.'misc/flash/player.swf","ply","436","346","9","#FFFFFF"); s1.addParam("allowfullscreen","true"); s1.addParam("allowscriptaccess","always"); s1.addParam("flashvars","file='.$sitepath.'uploads/'.$row['mediaurl'].'&autostart=true&fullscreen=true"); s1.write("player1"); </script></p>'; That should show you the full screen button it's a quick job really takes a couple of minutes. By default this will not show a stop button, but clicking the video when it's playing will pause. You can change that behavior, but I won't list the mediaplayer options here as you said you have extensive knowledge of it. Ian (VidiI)
__________________
Powerful Tools For Your VidiScript Powered Website - Click Here For Details Need Hosting? We Recommend These Top Hosts |
|
#3
|
|||
|
|||
|
aha!
![]() I was getting javascript errors the way I had it. I changed the above a little, version 4 doesn't have the stop button, and I preferr it as visitors can stop the download. I moved the script up to where ufo is as it's best above the id. then used: Code:
$mediaPlayer = '<p id="player1">
<a href="http://www.macromedia.com/go/getflashplayer">
Get the Flash Player</a> to see this player.</p>
<script type="text/javascript">
var s1 = new SWFObject("'.$sitepath.'misc/flash/mediaplayer.swf","ply",
"436","346","9","#FFFFFF");
s1.addParam("allowfullscreen","true");
s1.addVariable("showstop","true");
s1.addVariable("overstretch","true");
s1.addVariable("backcolor","0x000000");
s1.addVariable("frontcolor","0xCCCCCC");
s1.addVariable("lightcolor","0x996600");
s1.addVariable("width","436");
s1.addVariable("height","346");
s1.addParam("allowscriptaccess","always");
s1.addParam("flashvars","file='.$sitepath.'uploads/'.$row['mediaurl'].'
&autostart=true&fullscreen=true&width=436&height=346&showstop=true");
s1.write("player1");
</script>';
This script is awesome, I have found that it works perfectly. Thank you very much for your assistance! Now trying to add image to screen... Last edited by bruce2005; 07-20-2008 at 12:09 PM. |
|
#4
|
||||
|
||||
|
That's great Bruce, thanks for that I'm sure it will help others a lot.
![]() Ian (VidiI)
__________________
Powerful Tools For Your VidiScript Powered Website - Click Here For Details Need Hosting? We Recommend These Top Hosts |
|
#5
|
|||
|
|||
|
well, hope so, until you helped I just couldn't get it being in the javascript and being a bit rusty.
I'm using ver 3.15/16 of the playerabove, version4 is good, but at this point doesn't have the stop button. One advantage of ver4 of Jeroen's player is that it has custom skins...though above one can change the playbar colors/ http://www.longtailvideo.com/skins.asp Any idea how to get an image on the video screen if its set to not auto play? Thanks for assistance. I am vry impressed with this, is working perfectly and being able to customize it easily is terrific! Last edited by bruce2005; 07-20-2008 at 07:07 PM. |
|
#6
|
||||
|
||||
|
Not sure if v3.15 or v3.16 support it but I seem to remember it's as simple as adding 'image=http://yoursite.com/yourimage.jpg' to the flashvars:
s1.addParam("flashvars","file='.$sitepath.'uploads/'.$row['mediaurl'].' &autostart=true&fullscreen=true&image=http://yoursite.com/yourimage.jpg&width=436&height=346&showstop=true"); Also possibly add it as a variable: s1.addVariable("image","http://yoursite.com/yourimage.jpg"); It works with just the flashvars for v4 I think. So either trial and error or reading the docs for v3 will get it working I'm sure ![]() Ian (VidiI)
__________________
Powerful Tools For Your VidiScript Powered Website - Click Here For Details Need Hosting? We Recommend These Top Hosts |
|
#7
|
||||
|
||||
|
Quote:
|
|
#8
|
||||
|
||||
|
Do you mean the play.inc file is encrypted? It certainly should not be. I'm looking at the v0.42 release files here and in my text editor the player code (as in the 'hack' you quoted) starts at line 921. Maybe I misunderstood your point though
![]() Ian
__________________
Powerful Tools For Your VidiScript Powered Website - Click Here For Details Need Hosting? We Recommend These Top Hosts |
|
#9
|
||||
|
||||
|
not the play.inc., I was thinking the ".swf" because I try to apply the code above but it give me a " blank player" (it only show a white box) and also I try to put some variables like the "skin", it's not working on VS v0.42.
|
|
#10
|
||||
|
||||
|
Here is my TWO CENTS..UFO needs to be edited, before any outside player can function properly..
__________________
Thanks, PoorBoy The Baby Linux Effective August 21, 2009, I will be in Princeton New Jersey. I will be attending school there. I don't know if I will be able to visit this forum during the semester. I would definitely visit again during my winter breaks. Wishing y'all the BEST .Some tutorials I wrote are HERE. I will beg and convinced my older brother Michael to publish some of the JW player tutorials and HD encoding, the xmoov, qt-faststart, mp4 box,etc.. My Twitter |
|
#11
|
|||
|
|||
|
Quote:
doesnt seem to be working for me. Code:
$mediaPlayer = '<p id="player1"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.</p>
<script type="text/javascript">
var FO = { movie:"'.$sitepath.'misc/flash/flvplayer.swf",width:436,height:346,majorversion:"7",build:"0",bgcolor:"#FFFFFF",
flashvars:"file='.$sitepath.'uploads/'.$row['mediaurl'].'&autostart=true&repeat=false&showfsbutton=false&overstretch=true&width=436&height=346&image=&backcolor=0xffffff&frontcolor=0x000000&lightcolor=0x000000&showdigits=true&bufferlength=4&fsreturnpage='.$sitepath.'" };UFO.create(FO, "player1");</script>';
i already have the swfobject.js in inc folder, the player.swf are all in flash folder. tried it many times doesnt seem to be working |
|
#12
|
||||
|
||||
|
Hi Guys,
READ FIRST! If you purchased or donate on my player MOD, please DO NOT FOLLOW this tutorial. This is a basic player conversion oNLY! I wrote this, before I was taken to the hospital. I decided to copy and paste it, before my brother Michael accidentally deletes everything on my folder again. Hopefully, I regain my strength back sooner than later, so that I can post more on the inquiries, and questions. Warning! Please do not ask me on how to activate the long-tail ads. If you purchased the JW license, you must consult with them first. If you donated for this mod to me, please let me know of your FTP access info. So that I can have the long tail ad activated (LICENSE PROOF OF PURCHASE, MUST BE SEEN INSIDE YOUR SERVER. OTHERWISE, I WILL NOT DO IT). Here is quick JW player conversion for vidiscript standard player. This will not allow you to use adsense functions, and to change the skin without digging into the code. If you want that options, then I have a donation poll just for this purpose. However, if you are poor just like myself. Please read below; First, >>Download the JW package from their website. >>Unzipped these files >>Connect to your server, and create a directory called “player” in the same directory as your vidiscript. >> Upload the jw file and swobject file to the “player” directory above. >>Rename the “player-viral.swf” to player.swf ( the purpose of this to ease the installation and recognition of the file later, and it is perfectly legal and conforms with the jw TOS. Second, While still connected to your server, click on the “misc” directory, click on “flash”, download or edit the ufo file,, Look for the following codes below; Quote:
Quote:
Third, Open your includes folder and look for the file named “play.inc”..Look for the following codes below. WARNING: Make sure you make a back up copy of your play.inc file first. Code:
if ($mediaPlayer=='')
{
$mediaPlayer = '<p id="player1"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.</p>
<script type="text/javascript">
var FO = { movie:"'.$sitepath.'misc/flash/flvplayer.swf",width:436,height:346,majorversion:"7",build:"0",bgcolor:"#FFFFFF",
flashvars:"file='.$sitepath.'uploads/'.$row['mediaurl'].'&autostart=true&repeat=false&showfsbutton=false&overstretch=true&width=436&height=346&image=&backcolor=0xffffff&frontcolor=0x000000&lightcolor=0x000000&showdigits=true&bufferlength=4&fsreturnpage='.$sitepath.'" };UFO.create(FO, "player1");</script>';
$remoteCode = '<textarea READONLY WRAP=SOFT ROWS=3><embed src="'.$sitepath.'misc/flash/flvplayer.swf" flashvars="file='.$sitepath.'uploads/'.$row['mediaurl'].'&autostart=true&repeat=false&showfsbutton=false&overstretch=true&width=436&height=346&image=&backcolor=0xffffff&frontcolor=0x000000&lightcolor=0x000000&showdigits=true&bufferlength=4&fsreturnpage='.$sitepath.'" quality="high" bgcolor="#'.$embed['bgcolor'].'" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" height="346" width="436"></textarea>';
}
Code:
if ($mediaPlayer=='')
{
$mediaPlayer = '<p id="player1"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.</p>
<script type="text/javascript">
var FO = { movie:"'.$sitepath.'/player/player.swf",width:480,height:380,majorversion:"7",build:"0",bgcolor:"#FFFFFF",allowscriptaccess:"always",allowfullscreen:"true",
flashvars:"file='.$sitepath.'uploads/'.$row['mediaurl'].'&autostart=true&repeat=false&showfsbutton=false&stretching=exactfit&width=480&height=380&logo='.$sitepath.'/player/logo/logo.png&showdigits=true&bufferlength=4&fsreturnpage='.$sitepath.'" };UFO.create(FO, "player1");</script>';
$remoteCode = '<textarea READONLY WRAP=SOFT ROWS=3><embed src="'.$sitepath.'/player/player.swf" flashvars="file='.$sitepath.'uploads/'.$row['mediaurl'].'&autostart=true&repeat=false&showfsbutton=false&overstretch=true&width=436&height=346&logo='.$sitepath.'/player/logo/logo.png&showdigits=true&bufferlength=4&fsreturnpage='.$sitepath.'" quality="high" bgcolor="#'.$embed['bgcolor'].' height="346" width="436"></textarea>';
}
Save re-upload your play.inc.. Good Luck, and happy vidiscripting..The codes above have been tested gazillion times on vidiscript and I am pretty sure people will find it easy to modify their default vidiscript player. If you want the viral functions for the player, I have written a very effective script just for this purpose. For small donation, I can provide you with the download link. Skinning the JW player is all self-explanatory, and is pretty easy to do. Just add them in the codes above, including the absolute url of the skin.. Warning! Skins must reside in your domain, and also the player.swf. Do not just grab other people’s swf url. This is a NO! NO!..
__________________
Thanks, PoorBoy The Baby Linux Effective August 21, 2009, I will be in Princeton New Jersey. I will be attending school there. I don't know if I will be able to visit this forum during the semester. I would definitely visit again during my winter breaks. Wishing y'all the BEST .Some tutorials I wrote are HERE. I will beg and convinced my older brother Michael to publish some of the JW player tutorials and HD encoding, the xmoov, qt-faststart, mp4 box,etc.. My Twitter Last edited by poorboy; 03-08-2009 at 03:33 AM. |
|
#13
|
||||
|
||||
|
hey poorboy!,
mate . I just wanted to say that I'm GLAD you are back and hope everything is fine with you . Take care !
__________________
Willy @ B-S-N Network |
|
#14
|
|||
|
|||
|
it's working fine the fullscreen cool
|
|
#15
|
|||
|
|||
|
bump, sorry I was just wondering, I've tried myself but how would i add a skin to this code, when I try it brakes my page and nothing shows, Im using the bit of code you can get with longtails setup wizard on their site.
|
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|