Go Back   VidiScript Forums > Main Forum > Member To Member Support
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  
Old 07-20-2008, 10:45 AM
bruce2005 bruce2005 is offline
Junior Member
 
Join Date: Jun 2008
Posts: 10
Rep Power: 0
Rep points: 10bruce2005 is on a distinguished road
Default Mediaplayer

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  
Old 07-20-2008, 11:12 AM
VidiI's Avatar
VidiI VidiI is offline
Administrator
 
Join Date: Apr 2008
Posts: 996
Rep Power: 10
Rep points: 12VidiI is on a distinguished road
Default

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  
Old 07-20-2008, 12:00 PM
bruce2005 bruce2005 is offline
Junior Member
 
Join Date: Jun 2008
Posts: 10
Rep Power: 0
Rep points: 10bruce2005 is on a distinguished road
Default

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>';
Thank you! Now there is working full screen, stop download, and can change color on playbar.

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  
Old 07-20-2008, 03:50 PM
VidiI's Avatar
VidiI VidiI is offline
Administrator
 
Join Date: Apr 2008
Posts: 996
Rep Power: 10
Rep points: 12VidiI is on a distinguished road
Default

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  
Old 07-20-2008, 06:51 PM
bruce2005 bruce2005 is offline
Junior Member
 
Join Date: Jun 2008
Posts: 10
Rep Power: 0
Rep points: 10bruce2005 is on a distinguished road
Default

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  
Old 07-20-2008, 07:37 PM
VidiI's Avatar
VidiI VidiI is offline
Administrator
 
Join Date: Apr 2008
Posts: 996
Rep Power: 10
Rep points: 12VidiI is on a distinguished road
Default

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  
Old 01-15-2009, 09:36 PM
pinoyconsole's Avatar
pinoyconsole pinoyconsole is offline
Senior Member
 
Join Date: May 2008
Posts: 112
Rep Power: 3
Rep points: 10pinoyconsole is on a distinguished road
Default

Quote:
Originally Posted by VidiI View Post
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)
This hack is not applicable to VS v0.42, look like the dev team encrypted the flash player so you can't mod or use skin for your JW flash player. everything now are all encrypted.
__________________
www.flipsession.com-Filipino Music Television
www.modpinoy.com-Pinoy PC Modder
  #8  
Old 01-15-2009, 09:41 PM
VidiI's Avatar
VidiI VidiI is offline
Administrator
 
Join Date: Apr 2008
Posts: 996
Rep Power: 10
Rep points: 12VidiI is on a distinguished road
Default

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

Quote:
Originally Posted by pinoyconsole View Post
This hack is not applicable to VS v0.42, look like the dev team encrypted the flash player so you can't mod or use skin for your JW flash player. everything now are all encrypted.
__________________
Powerful Tools For Your VidiScript Powered Website - Click Here For Details

Need Hosting? We Recommend These Top Hosts
  #9  
Old 01-15-2009, 09:59 PM
pinoyconsole's Avatar
pinoyconsole pinoyconsole is offline
Senior Member
 
Join Date: May 2008
Posts: 112
Rep Power: 3
Rep points: 10pinoyconsole is on a distinguished road
Default

Quote:
Originally Posted by VidiI View Post
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
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.
__________________
www.flipsession.com-Filipino Music Television
www.modpinoy.com-Pinoy PC Modder
  #10  
Old 01-15-2009, 10:13 PM
poorboy's Avatar
poorboy poorboy is offline
Moderator
 
Join Date: May 2008
Location: Fullerton, California
Posts: 1,250
Rep Power: 4
Rep points: 10poorboy is on a distinguished road
Send a message via Yahoo to poorboy
Default

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  
Old 03-02-2009, 05:34 PM
mysoogal mysoogal is offline
Senior Member
 
Join Date: Feb 2009
Location: Planet Mars
Posts: 136
Rep Power: 2
Rep points: 10mysoogal is on a distinguished road
Unhappy

Quote:
Originally Posted by VidiI View Post
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)

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>';
can you guys give me the source code from your play.inc

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  
Old 03-08-2009, 03:14 AM
poorboy's Avatar
poorboy poorboy is offline
Moderator
 
Join Date: May 2008
Location: Fullerton, California
Posts: 1,250
Rep Power: 4
Rep points: 10poorboy is on a distinguished road
Send a message via Yahoo to poorboy
Default

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:
var UFO = {
req: ["movie", "width", "height", "majorversion", "build"],
opt: ["play", "loop", "menu", "quality", "scale", "salign", "wmode", "bgcolor", "base", "flashvars", "devicefont", "allowscriptaccess", "seamlesstabbing"],
optAtt: ["id", "name", "align"],
optExc: ["swliveconnect"],
ximovie: "ufo.swf",
xiwidth: "215",
xiheight: "138",
ua: navigator.userAgent.toLowerCase(),
pluginType: "",
fv: [0,0],
foList: [],
Replace the entire code above with these codes ( below);

Quote:
var UFO = {
req: ["movie", "width", "height", "majorversion", "build"],
opt: ["play", "loop", "menu", "quality", "scale", "salign", "wmode", "bgcolor", "base", "flashvars", "devicefont","allownetworking", "allowscriptaccess", "seamlesstabbing" , "allowfullscreen" , "skin" ],
optAtt: ["id", "name", "align"],
optExc: ["swliveconnect"],
ximovie: "ufo.swf",
xiwidth: "215",
xiheight: "138",
ua: navigator.userAgent.toLowerCase(),
pluginType: "",
fv: [0,0],
foList: [],
Save and re-upload to your server. Don’t forget to set your transfer mode to “BINARY”..

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>';

			}
Replace the above codes with the codes below;

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>'; 
			}
The above codes already included the logo for your player. To add your logo, create another directory inside the “player” directory and name it “logo”,,,the logo image should be png and must be named “logo.png”. If you don’t like the logo.png, and wanted different extension such as gif and .jpg..Just change the .png extension above to your extension.

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  
Old 03-08-2009, 08:46 AM
coco100's Avatar
coco100 coco100 is offline
Member
 
Join Date: May 2008
Posts: 77
Rep Power: 3
Rep points: 10coco100 is on a distinguished road
Thumbs up greetings!

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  
Old 03-12-2009, 05:11 PM
mysoogal mysoogal is offline
Senior Member
 
Join Date: Feb 2009
Location: Planet Mars
Posts: 136
Rep Power: 2
Rep points: 10mysoogal is on a distinguished road
Default

it's working fine the fullscreen cool
  #15  
Old 08-11-2009, 12:38 AM
MackayGuy MackayGuy is offline
Junior Member
 
Join Date: May 2009
Posts: 2
Rep Power: 0
Rep points: 10MackayGuy is on a distinguished road
Default

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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 09:22 AM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.