Order Now AdSolution Sign Up | Login » Bits on the Run Sign Up | Login »

How to set parameters and flashvars in Lightwindow

22 replies [Last post]

Hi, I am trying to pop up JW FLV Player (3xx) in the excellent LightWindow - check it out at http://www.stickmanlabs.com/lightwindow/

The basic code is reasonably easy, although not being a "coder" but a "copier" I may have got it a little wrong

<a href="gallery/flvplayer.swf?height=500&width=700&file=miresr4.flv&autostart=true&repeat=true&allowfullscreen=true&displayheight=480&displaywidth=640"

class="lightwindow page-options" params="lightwindow_type=external,lightwindow_loading_animation=false,lightwindow_width=740,lightwindow_height=500" title="FLV player" <strong><span style="color: red;">FLVplayer without external page</span> - Need to work on dimensions</a>

2 problems:
1) I think that I may be mixing up Parameters and Flashvars - is there a way to add a flashvars line to this code?
2) the allowfullscreen function doesn't appear to work - the button appears on the video controls but doesn't go fullscreen

Any suggestions/improvements?

Thanks

Bill, I use LightWindow as well and after hours of work found the best way to get these two programs to work together is to open an .html page instead of a Flash video. Embed the Player in the .html page like normal. Hope that helps.

I tried embedding the FLV in an HTML page but I keep getting the message "Get the Flash Player to see this player" when I open the video through LightWindow despite having the latest version of Flash Player. Any thoughts?

I had the same problem as BillB: The video opens in a LigntWindow and can be played, but the fullscreen-controls don't work.

Most possibly you forgot to set the Flash "allowFullScreen"-parameter to true.

YOOOOOOOOOOO I got a solution for the full screen. Booya!!

Open up lightwindow.js and add this line after outerObject = this._addParamToObject('quality', 'high', outerObject);

outerObject = this._addParamToObject('allowfullscreen', 'true', outerObject);

and then add this after innerObject = this._addParamToObject('quality', 'high', innerObject);

innerObject = this._addParamToObject('allowfullscreen', 'true', innerObject);

TADA!

But now I have a problem so hopefully ya'll can return the favor.. what is your css exactly?? because my css is making the JW player not allow control over the buttons in Firefox 2 only. I know it is a CSS issue because when I turn off CSS it works. I had to modify the css a bit to allow ie6 to show the close button outside the box.. sorta hanging off it. any help would be great...

Open up lightwindow.js and add this line after outerObject = this._addParamToObject('quality', 'high', outerObject);

outerObject = this._addParamToObject('allowfullscreen', 'true', outerObject);

Can anyone help with quicktime in LightWindow. I want to set QT parameters such as kioskmode etc. cheers!

I can't get lightwindow to show quicktime video in FF3 on a PC. I've read some other people have had a problem. You guys at all?

aaargghhhh

trying to do this as well, using lightwindow, linking to a php file that has the mp4 embedded and all i get is the text from the div, no movie... but when i go to the called php page, the player fires up the mp4 no problem

any ideas????

Figured it out... i used the embed parameters in the linked file instead of the swfobject method and it seems to work just fine

There's something about the _getDomain function when i call an external page using the swfobject.js, so if you change this function, on lightwindow.js, to return something different then the same domain where the main page is, it should work:

//
// Get the domain from a string.
//
_getDomain : function(url) {
var leadSlashes = url.indexOf('//');
...
...
return domain + '/';
}

Hope it helps, because i spent a lot of time to figure this out.

Cheers!

I've got LightWindow running fine and opening up an swf file, but it doesn't show the flash controls (i.e. play, pause, forward, volume etc) that are skinned over the top when the file is created from an FLV. IS this a param I need to add?

Love some help on this...thanks!

Hey Alex Grande ... THANKYOU!

Hi, I also want to play FLV file on light window. Can any one post the full code for opening FLV in light window?

Thankx,
DD

Here's an example of what i did to open JW player in a lightwindow. It works fine, except full screen won't work.

<li>
<a href="video/player.swf?scale=noscale&file=video/playlist.xml&logo=video/kapeko_com.png&position=top-left&stretching=uniform&image=undefined&smoothing=true&linktarget=_blank&playlist=left&playlistsize=200&scroll=true&displayheight=300&autostart=true&shuffle=false&repeat=all&skin=modieus.swf&lightcolor=0xff0000&backcolor=0x000000&frontcolor=0xB4AD92&fsreturnpage=videocol.html" class="lightwindow page-options" params="lightwindow_width=650,lightwindow_height=400" title="Enjoy life while you can... A-Syan Pictures 2009">
Video</a> </li>

here's where it is > www.kape.asyanstudio.com

I have a question aswell.

I have a swf which i want to open in an iframe with lightwindow.

my backend is in ruby on rails and my swf is generated in flex. so how should my view in rails look like? the iframe? and fullscreen is another thing I´d like to add..

@berni - take a look at - http://www.longtailvideo.com/support/tutorials/JW-Player-Lightbox

thanks ethan, but you know something else for lightwindow?
i already installed and included lightwindow into my project. so it would be quite hard work to make a new start with a jw-player-lightbox.

my problems are:
- getting the swf into an iframe (into normal lightwindow already works, but i need a iframe lightwindow)
- possibility to switch to fullscreen

an this all with a ruby on rails backend..

please help me!
i have really no much time left before deadline of my project :S

@berni - do you have a link?

@Ethan LongTail: not yet

@berni - When you do, please let me know.

@illiusr Thank you for passing on your knowledge! I would have NEVER figured that out and it fixed my problem immediately. My gratitude is immense!

Post new comment

  • Allowed HTML tags: <code> <blockquote> <em> <strong> <strike> <ul> <li> <ol>
  • Lines and paragraphs break automatically.
  • You may post code using <code>...</code> (generic).

More information about formatting options