Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Internet Explorer: Object doesn't support property or method 'setup'


The following works in every browser except internet explorer. In IE developer tools console it states:
Object doesn't support property or method 'setup'

bc.. <script type="text/javascript" src="jwplayer/jwplayer.js"></script>
<div id="myElement"></div>
<script type="text/javascript">
jwplayer("myElement").setup({
sources: [
{ file: "../LQ.mp4", label: "240p LQ" },
{ file: "../SD.mp4", label: "480p SD", default: true },
{ file: "../HD.mp4", label: "720p HD" }
],
title: "Play",
startparam: "start",
width: 700,
height: 450,
primary: "flash"
});
</script>
<a href="#" onclick="jwplayer().seek(30);">30</a>
<a href="#" onclick="jwplayer().seek(60);">60</a>
<a href="#" onclick="jwplayer().seek(90);">90</a>



How do i get round this?

Thanks

5 Community Answers

JW Player

User  
0 rated :

Try putting quotes around the "default" key, changing:

bc.. { file: "../SD.mp4", label: "480p SD", default: true },



to

bc.. { file: "../SD.mp4", label: "480p SD", "default": true },

JW Player

User  
0 rated :

Cool thanks, that got rid of the other error i was receiving!

However i still get Object doesn't support property or method 'setup' in IE.
I even tried taking the code strait from the wizard and even that has the error.

Thanks, B.

JW Player

User  
0 rated :

Ah right. Are you sure the path "jwplayer/jwplayer.js" is actually resolving to the file?

JW Player

User  
0 rated :

Problem solved!

I foolishly had it on a test page without <head> and <body> tags. While other browsers still play it, IE requires them.

Thanks for your help :)

Ethan Feldman

JW Player Support Agent  
0 rated :

Nice :)

This question has received the maximum number of answers.