TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,966
  • Latest: safir45
Stats
  • Total Posts: 195,993
  • Total Topics: 21,324
  • Online today: 388
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 395
  • Total: 395

[Block]Flash movie player

Started by Nolt, June 07, 2008, 03:18:11 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Nolt

This block enables playing an .swf files in blocks (player supports also MP3, FLV, SWF, JPG, GIF, PNG, H264 file or a playlist). Tool wich is required to playing an .swf files is JW FLV MEDIA PLAYER (http://www.jeroenwijering.com/?item=JW_FLV_Media_Player) and our's .swf files ;)

Downlod player and extract to root dir of your forum (ex. ~/forum/mediaplayer/), .swf files that we want play in our block put also in root dir of your forum (ex. ~/forum/movies/). Create a scriptbox (for wide movies the best center block) and input this code (the values used in this code change to yours of course):
<script type="text/javascript" src="http://www.your_site.edu/forum/mediaplayer/swfobject.js"></script>
<div id="player">This text will be replaced</div>
<script type="text/javascript">
var so = new SWFObject('http://www.your_site.edu/mediaplayer/player.swf','mpl','400','250','8');
so.addParam('allowscriptaccess','always');
so.addParam('allowfullscreen','true');
so.addVariable('height','250');
so.addVariable('width','400');
so.addVariable('file','/movies/film.swf');
so.write('player');
</script>


The mediaplayer have an little documentation in the package, for more see README.html.
In attach is an example of this player.

Have fun!

platinumUWE

is there a way for it to play a list of flv files ? also and how do u configure it.

IchBin

Did you look at the readme file in the package as he told you to?

platinumUWE

just did apologys its exsplained there thankyou

platinumUWE

i do have a relevant question is there a way to make this pop up in a seperate window ty. from a script block with a image.

IchBin

platinumUWE, don't be afraid to take a read at the site that its from. All the information in the readme leads you to the answers and the place you can find the answers.
http://www.jeroenwijering.com/?item=Supported_Flashvars

platinumUWE

ichbin i must be really dumb or stupid or both combined i dont see any were to make this into a pop up sorry

IchBin

THere are parameters that you can add to the javascript. On the page I posted you have link, and linktarget (find these towards the bottom of the page), which give you the option to make it a popup.

platinumUWE

thaxs for your help but this is beyond me thanxs anyway ichbin for your help , have no idea what that is.

regards
plat

Smoky

Platinum, does your radio pop up?? look at that code and what ICH is saying and maybe it will come together for you, just a thought, right ICH??  ;)

This website is proudly hosted on Crocweb Cloud Website Hosting.