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

Forums

/

Jquery cycle ie

No replies

Hi All

I would like to post this message just in case anybody out there is struggling with the same problem I have been struggling with the last 2 days.

I have a mixture of images and flash animations in my slideshow. I use SWObject to display the players and JQuery Cycle to cycle.

I didn't use one player with a playlists because I use dynamic stream switching for the animations (which each use a playlist file with all the available bitrates) and there can be adverts (flv format) between the animations that are not streamed.

If it is possible to have one player with one playlist where the playlist can contains flv files (for none bitrate switching) and xml files (for bit rate switching), please do let me know!!!!!

The flash animations are set to autostart, which works well in every browser except IE, because instead of starting the animation when the slide is visible like the other browsers, it starts them all when the page loads. So they play all at the same time in IE and you only see one.

Now here is the solution, it seems simple but I was struggling!

In stead of doing:

var myswobject1 = new SWFObject(....);
myswobject1.addParam("allowfullscreen","false");
.....
....
myswobject1.write("video-player-1");

var myswobject2 = new SWFObject(....);
myswobject2.addParam("allowfullscreen","false");
.....
....
myswobject2.write("video-player-2");

etc

just do:

var myswobject1 = new SWFObject(....);
myswobject1.addParam("allowfullscreen","false");
.....
....

var myswobject2 = new SWFObject(....);
myswobject2.addParam("allowfullscreen","false");
.....
....

and:

Move the myswobject1.write() and myswobject2.write() to the jquery cycle before function, so that just before the next slide is displayed the swfobject will be written and loaded. Make sure you do either the myswobject1.write() or myswobject2.write() depending on the next slide!

Regards
Joop