|
|||||||
Join now to share free website templates or post on the forum. If you have never been on a forum before read the
FAQ. It's quick, easy and free to join!
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
||||
|
Hi folks,
I found a nice player that I'm currently using on my website as well. You easily add your videos, playlists, advertisements, images, colors, buttons, your logo and much more. The player was made by Jeroen Wijering and is available for download at http://www.jeroenwijering.com/. For an example check out the videos on http://www.vareside.com/en/content.php?page=videos! Hope that some of you may use and recommend it. ![]() Kind regards, Max |
|
||||
|
Sorry, example URL has been changed to http://www.vareside.com/portal/content.php?vid=118
|
|
|||
|
hi, i found this a couple of weeks ago and this is my 1st attempt but on the coding:
<script type="text/javascript" src="http://www.jeroenwijering.com/embed/swfobject.js"></script> <div id="player">This text will be replaced</div> <script type="text/javascript"> var so = new SWFObject('http://www.jeroenwijering.com/embed/player.swf','mpl','470','320','9'); so.addParam('allowscriptaccess','always'); so.addParam('allowfullscreen','true'); so.addParam('flashvars','&file=/upload/flash.flv'); so.write('player'); </script> In the bits in blue what do i hcnage them to? please can you show me an example and ill change to the code i reqire. Thanks.
__________________
I drive the transit you pay for petrol |
|
||||
|
This is your entire script to display the player including the video.
<script type="text/javascript" src="http://www.jeroenwijering.com/embed/swfobject.js"></script> (This above is to embed the player into the website. When you download the entire player with all required files and datas, you have to change this url and all others to the specific file location on your database.) <div id="player">This text will be replaced</div> (This above is the place where the player will replace the text which can be used as an information for people who have not the required Flash Player or JavaScript installed.) <script type="text/javascript"> var so = new SWFObject('http://www.jeroenwijering.com/embed/player.swf','mpl','470','320','9'); so.addParam('allowscriptaccess','always'); so.addParam('allowfullscreen','true'); so.addParam('flashvars','&file=/upload/flash.flv'); so.write('player'); </script> (The url to the player you will need to replace with the path to your file location and the path behind the variable &file= should become replaced with the path to the video file location.) For example, the code of the player on my website: <script type="text/javascript" src="data/swfobject.js"></script><div id="mediaspace" name="mediaspace"><embed src="data/mediaplayer.swf" width="370" height="300" allowscriptaccess="always" wmode="transparent" allowfullscreen="true" flashvars="height=300&width=370&fullscreen=true&fi le=/portal/data/videos/vid87.flv&image=/portal/data/images/layer.jpg&enablejs=true&plugins=ltas&channel=601"> </embed></div> It is customized to my requirements and restrictions using an object code instead of a javascript object. A live example: http://www.vareside.com/portal/content.php?vid=87 |
|
|||
|
thank still slighty unsure.
<script type="text/javascript" src="audio/swfobject.js"></script> <div id="player"><br /> This text will be replaced</div> <script type="text/javascript">var so = new SWFObject('video/sna.flv','mpl','300','200','9');so.addParam('allowscriptac cess','always');so.addParam('allowfullscreen','tru e');so.addParam('flashvars','&file=http://www.brokenmachine.co.uk/video/sna.flv&controlbar=none');so.write('player');</script> this is my C: set-up; Templates 7: all HTML pages. Audio - swfobject Video - sna.flv video is this correct thanks |
|
||||
|
No problem. I'd love to help.
If this is your root: http://www.brokenmachine.co.uk/audio/swfobject.js http://www.brokenmachine.co.uk/video/sna.flv and your html files with the player are located in the main root at: http://www.brokenmachine.co.uk/ Your code has to be the following: <script type="text/javascript" src="audio/swfobject.js"></script> <div id="player"><br>This text will be replaced</div> <script type="text/javascript"> var so = new SWFObject('video/mediaplayer.swf','mpl','300','200','9'); so.addParam('allowscriptac cess','always'); so.addParam('allowfullscreen','true'); so.addParam('flashvars','&file=video/sna.flv&controlbar=none'); so.write('player');</script> The red part marks the Mediaplayer. You can catch up the from my website instantly here: http://www.vareside.com/portal/data/mediaplayer.swf (right click, save as) You have to save it then in the correct directory. You need to have it, because it's required to have a player to play the files! So your code is basically right. You just always have to enter the correct path then nothing can go wrong. |
|
|||
|
opps. ive copyed and pasted the code and the first video seems to be ok but the second one ive changed the file place sna.flv to rehersal1.flv which is in the same folder and only comes up with "this text will be....."
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|