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

Forums

/

IE 8 not showing JW Player

37 replies [Last post]

I don't get why but ...I don't get why but IE 8 isn't showing the players that I have on a page.
In FF, it works great.

here's my code:

<div id="preview1">The player will show in this paragraph</div>
<script type='text/javascript' src='swfobject.js'></script>
<script type='text/javascript'>
var s1 = new SWFObject('player.swf','player','180','135','7');
s1.addParam('allowfullscreen','true');
s1.addParam('allowscriptaccess','always');
s1.addParam('flashvars','file=videos/Diamond-House-YLAZ-8-22-08.flv');
s1.write('preview1');
</script>
<br />
<div id="preview2">The player will show in this paragraph</div>
<script type='text/javascript' src='swfobject.js'></script>
<script type='text/javascript'>
var s1 = new SWFObject('player.swf','player','180','135','7');
s1.addParam('allowfullscreen','true');
s1.addParam('allowscriptaccess','always');
s1.addParam('flashvars','file=videos/Diamond-House-YLAZ-8-22-08.flv');
s1.write('preview2');
</script>

PLEASE HELP!

I noticed that this sample page works in IE8
http://home5.inet.tele.dk/nyboe/flash/mediaplayer/multipleplayers.htm

HOW COME!?!? :-(

I had the same problem. Putting the "<script type='text/javascript' src='swfobject.js'></script>" in the header worked for me..

@eric thats is not work on IE8

I have the same error in ie8. I tried stepping through the code, but it didn't help. It just doesn't seem to load the player. :( FF works fine, of course.

I don't know about your problems but I was having my player not show up in IE (just fine in firefox), instead all that did was the "this div will be replaced" div contents. I found the solution to my problem though, IE doesn't seem to like object tags. So in the chance that people are reading this with the same problem, remove the object tags you have surrounding the script, div and embed code. Appears to work just fine after that.

Unfortunately unless you've omitted these from the code you posted above eric, this does not appear to be your problem.

Sorry for my english is not my original languaje...

I have the same problem, its seems that IE8 not pass the flashvars correctly, like the other Explorers, put the flashvars next to the url of the player like this:

player.swf?file=videos/Diamond-House-YLAZ-8-22-08.flv

try it....

Ray your fix worked for me in IE8 but it does not show the image or execute the autostart. can you help me pass these variables as well?

Go it working!!

player.swf?file=video/filename.flv&image=image.jpg&autostart=true

Now my video works fine in both IE and FF.

http://kangen.eating4eternity.org

Thanks Ray again for pointing us in the right direction!

Thanks a lot guys for your help it worked for me as well, now no need to search any other player hurrayyyy, thanks again, love you all :)

It's not working for me in IE. I'm running version 8.0.6001.18702. When I view Vaughn's page I just see "This text will be replaced" but in FF I see the video.

 
@cralls,

You probably need to upgrade your Adobe Flash Player for Internet Explorer to at least v9,0,124,0.

http://www.yourtakes.com/files/test.html should be using a more informative alternate content message, something like:

<a href="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash">Get the Adobe Flash Player to see this video.</a>

That was it hobbs, thanks!

 
You're welcome.

    Enjoy!

I had a problem viewing videos that were embedded on other websites with IE 8, I updated my Flash Player http://get.adobe.com/flashplayer/ and that did the trick. Now everything works fine. =)

I tried doing what Ray suggested but not working. I have 4 videos in the same web page number 1 which is the main video doesnt even pull up the player in internet explorer. The 3 other videos all play fine. In FF and Chrome all the videos work just fine, any help would be greatly appreciated.

Here is the code for the first player...

var flashvars3 =
{
'file': 'player.swf?file=videos/main-video.flv',
'stretching': 'uniform',
'frontcolor': '86C29D', // text & icons
'backcolor': '003367', // playlist background
'lightcolor': 'C286BA', // selected text/track highlight
'screencolor': '000', // screen background
'playerready': 'playerReady3',
'id': 'player3',
'image': 'videoimages/Intro.jpg',
'autostart': 'false',
'controlbar': 'over'
};

var params3 =
{
'allowfullscreen': 'true',
'allowscriptaccess': 'always',
'wmode': 'opaque',
'bgcolor': '#FFFFFF'
};

var attributes3 =
{
'id': 'player3',
'name': 'player3'
};

swfobject.embedSWF('player-viral.swf', 'player3', '608', '370', '9.0.124', false, flashvars3, params3, attributes3);

--------------------------------------------------------------------------------------------

var flashvars3 =
{
'file': 'videos/main-video.flv',
'stretching': 'uniform',
'frontcolor': '86C29D', // text & icons
'backcolor': '003367', // playlist background
'lightcolor': 'C286BA', // selected text/track highlight
'screencolor': '000', // screen background
'playerready': 'playerReady3',
'id': 'player3',
'image': 'videoimages/Intro.jpg',
'autostart': 'false',
'controlbar': 'over'
};

var params3 =
{
'allowfullscreen': 'true',
'allowscriptaccess': 'always',
'wmode': 'opaque',
'bgcolor': '#FFFFFF'
};

var attributes3 =
{
'id': 'player3',
'name': 'player3'
};

swfobject.embedSWF('player-viral.swf', 'player3', '608', '370', '9.0.124', false, flashvars3, params3, attributes3);

The last eric post was mine sorry.. Didn't mean to confuse anyone

@Eric - Can you provide a link to where you are running this?

Hai i have a same problem in IE 8... the player is not working... it works fine in IE6, IE7, Firefox... but not in IE8... can any help me to sor out this problem

below is the code i am using in my website...

<script type='text/javascript'>
var so = new SWFObject('player.swf','mpl','470','470','9');
so.addParam('allowfullscreen','true');
so.addParam('allowscriptaccess','always');
so.addParam('wmode','opaque');
so.addVariable('playlistfile','http://gdata.youtube.com/feeds/api/playlists/24FBD97DB74CD52F');
so.addVariable('playlist','bottom');
so.addVariable('autostart','true');
so.addVariable('repeat','list');
so.addVariable('shuffle','false');
so.write('mediaspace');
</script>

@Mahi - Provide a link.

jw player not showing...

<object height="10%" width="10%" id="Object1" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" name="player" >
<param name="wmode" value="transparent" />
<param name="movie" value="player.swf" />
<param name="allowfullscreen" value="true" />
<param name="allowscriptaccess" value="always" />
<embed wmode="transparent"
type="application/x-shockwave-flash"
id="player2"
name="player2"
src="../MediaLibrary/Player/player.swf"
width="206"
height="103"
allowscriptaccess="always"
allowfullscreen="true"
flashvars="file=<%#GetFlv(Convert.ToString(DataBinder.Eval(Container.DataItem, "FilePath")),Convert.ToString(DataBinder.Eval(Container.DataItem, "Type"))) %>&image=<%#Convert.ToString((DataBinder.Eval(Container.DataItem, "ImageUrl"))) %>"/>
</object>

Provide a link?

I'm having the same issue.

http://www.nokturnalist.com/john-digweed-mixes/4339-john-digweed-1998-03-06-live-twilo-new-york.html

Works fine in Firefox, but not in IE 8.

<script type='text/javascript' src='http://nokturnalist.com/jwplayer/swfobject.js'></script>

<div id='mediaspace'>This text will be replaced</div>

<script type='text/javascript'>
var so = new SWFObject('http://nokturnalist.com/jwplayer/player.swf','mpl','500','24','9');
so.addParam('allowfullscreen','true');
so.addParam('allowscriptaccess','always');
so.addParam('wmode','opaque');
so.addVariable('file','http://nokturnalist.com/media/mixes/JohnDigweed/John_Digweed-1998-03-06-Live@Twilo.mp3');
so.write('mediaspace');
</script>

IE doesn't like @ symbols in file names.

Sorry Ethan, i fixed the link but it still doesn't work. I also tried switching the Doctype with no luck. My code now:

Thanks for the quick reply.

<script type='text/javascript' src='http://nokturnalist.com/jwplayer/swfobject.js'></script>

<div id='mediaspace'>This text will be replaced</div>

<script type='text/javascript'>
var so = new SWFObject('http://nokturnalist.com/jwplayer/player.swf','mpl','500','24','9');
so.addParam('allowfullscreen','true');
so.addParam('allowscriptaccess','always');
so.addParam('wmode','opaque');
so.addVariable('file','http://nokturnalist.com/media/mixes/JohnDigweed/John_Digweed-1998-03-06-Live_At_Twilo.mp3');
so.write('mediaspace');
</script>

I bet there is something in the forum software you are using that is stripping out the JS.

OK I will look into it further then. Just odd that it works with Firefox though and not IE. I figure if the forum software is stripping the JS, it wouldn't work on any browser.

Thank you for trying to help.

No problem. Yeah, it is odd. The code looks fine, though.

Ethan, do you think I would be better off just embedding the code instead of using JS?

Sure, you could try that.

Raj, I'm seeing a similar issue. Here's what I think the problem is:

flashvars="file=<%#GetFlv(Convert.ToString(DataBinder.Eval(Container.DataItem, "FilePath")),Convert.ToString(DataBinder.Eval(Container.DataItem, "Type"))) %>&image=<%#Convert.ToString((DataBinder.Eval(Container.DataItem, "ImageUrl"))) %>"

This should work fine in FF and Chrome, but IE chokes on the first quote (") in the flashvars value, it thinks that's the end of the flashvars. So IE would interpret this:

flashvars="My name is "Raj"" as a flashvar with the value My name is , then would break because of the Raj"" that follows it. Hope that makes sense.

I have yet to figure out how to fix this w/ swfobject. If you're not dynamically generating your flashvars, try escaping quotes in the value.

Cheers

I was finally able to resolve this by using PHP's urlencode on the flashvar value before passing it off to swfobject. Hopefully that'll lead someone else in the right direction.

Reid

@eric: Aren't you missing the full paths for swfobject.js as well as for the files?

jw player is not working in IE?
<script type="text/javascript">
var flashvars = {

file:'LiveFAITH',
streamer:'rtmp://fml.4040.edgecastcdn.net/204040',
'rtmp.subscribe':'true',

};

swfobject.embedSWF('jwplayer/player.swf','container','480','270','9.0.115','false', flashvars,

{allowfullscreen:'true',allowscriptaccess:'always'},
{id:'jwplayer',name:'jwplayer'}

);
</script>

 
Remove the comma after  'rtmp.subscribe':'true'

It makes flashvars an invalid object!

http://www.everybodyknowsbelgium.com/austin-powers-1-2/

<object width="818" height="460" type="application/x-shockwave-flash" data="http://www.everybodyknowsbelgium.com/wp-content/themes/videozoom/functions/player/player.swf" id="sb-player" style="visibility: visible;"><param name="allowfullscreen" value="true"><param name="wmode" value="transparent"><param name="flashvars" value="file=http://www.everybodyknowsbelgium.com/videos/austinpowers1.flv&controlbar=bottom&backcolor=0x000000&frontcolor=0xCCCCCC&lightcolor=0x557722&skin=http://www.everybodyknowsbelgium.com/wp-content/themes/videozoom/functions/player/stylish.swf&volume=70&mute=false&stretching=none"></object>

Video works on Firefox and IE9 but not on IE8

Who can help me ?

Many thanks

Eric

Fixed