Playing .wmv in IE7

Subscribe to Playing .wmv in IE7 3 post(s), 2 voice(s)

 
Avatar rfahey 7 post(s)

I have lightwindow functioning just fine in Firefox, but have an annoying problem with IE7.

First off, randomly, when viewing an image slideshow one of the pictures will resize down to a 37×37 window and make it very difficult to go on to the next image. You’re able to do so if you can click in the right place, then the rest of the images will show up properly. ** I reset the doc type to the recommended value and that seem’s to have cleared that part up.

The second, and most annoying, problem is trying to launch .wmv files. In firefox, the wmp plugin opens and the window sizes to the correct dimensions, and plays the file without any problems (sometimes the plugin dies, but I don’t think that’s LW’s fault). When I try and play the file in IE, the plugin loads but won’t play the video. Near as I can see it doesn’t even try to buffer any of the data. I can right-click and open in a new window, but this bypasses the lightwindow and just opens in plain old media player.

Any thoughts?

for anyone who’d like to see an example, open the following site in IE: http://rfahey.com/index.php?action=gallery

 
Avatar andreadesign 2 post(s)

hy rfahey
I’ve fond the solution at the problem:
IE doesn’t take the wmv url so you have to add in the var outerObject = document.createElement(‘object’); this line
(you are about at the line 1873 of your code)

outerObject = this._addParamToObject('movie', this.contentToFetch, outerObject);
outerObject = this._addParamToObject('url', this.contentToFetch, outerObject);        //    NEW LINE
outerObject = this._addParamToObject('src', this.contentToFetch, outerObject);

If you experience the crash of Firefox with wmv you have to transform this code (at line 560)
// If there is an iframe, its got to go
if ($(‘lightwindow_iframe’)) { Element.remove($(‘lightwindow_iframe’));
}

in
// If there is an iframe, its got to go
if(navigator.userAgent.indexOf(‘Firefox’) == -1) if ($(‘lightwindow_iframe’)){ Element.remove($(‘lightwindow_iframe’)); }

 
Avatar rfahey 7 post(s)

Thanks a bundle. Got wrapped up in other stuffs and just getting back to the site :-P

I’ve implemented those two changes, just a matter of testing now. Thanks again.