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

Error Loading player on IEs but works on Chrome


this is my page, I have a problem in embedding my player, however it works on chrome and firefox and IE11 but not in IE10, IE9 nor IE8

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>HTML 5 RTMP Test</title>
<script src="jwplayer/jwplayer.js"></script>
<script>
jwplayer.key = "xyz=";
</script>

</head>
<body>
<div id="player">
<a>Loading the player...</a>
</div>
<script type="text/javascript">
jwplayer("player").setup({
width: "650",
height: "360",
primary: "html5",
autostart: "true",
file: "rtmp://wowza.company.com:1935/vod/sample.mp4"
});
</script>
</body>
</html>

3 Community Answers

itzik

User  
0 rated :

I get the error
==============================
Error loading player:
No playable sources found

==============================

I also changed the primary to flash as well, but the same problem

MisterNeutron

User  
0 rated :

Several possibilities. First, you've got a confused DOCTYPE. You're declaring it as HTML5, but then you have this, which is XHTML:

<html xmlns="http://www.w3.org/1999/xhtml">

Just delete that.

Change the charset line to:

<meta charset="UTF-8">

Get rid of the <a> tags around "Loading the player" - it's not an anchor.

Get rid of the quote marks around 650 and 360 - they're integers, not strings.

No need to specify a primary - it's an RTMP stream, so it can be played ONLY with Flash. There are no options.

And that leads to the last point - make sure Flash is actually installed in the browser you're testing with.

MisterNeutron

User  
0 rated :

Edit: replace the XHTML line with just <html>, rather than deleting the whole thing.

This question has received the maximum number of answers.