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

Player Window Not Present On Web Page ?


I have downloaded the free version of JW Player and followed the steps to embed the player in a web page on my web site. However, when I open the web page the player window is not present, instead, I get a message indicating "loading the player....."

I embedded the code for the self hosted option into the page on my web site, should I have used the cloud hosted option for the player if I am using a hosted domain web site?

I have pasted below the HTML for the web page:

<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>my-stream</title>
<link rel="stylesheet" href="stream_TWC.css">
<script src="/jwplayer/jwplayer.js" ></script>
<script>jwplayer.key="ElAq8FJDWcTDn3UP48xHS2hTKxzIptAx2xhcKA==";</script>
</head>
<body>
<div id="container">
<h1>my-stream</h1>
<p></p>
<h2>Welcome to the stream</h2>
<p></p>
<div id="myElement">Loading the player...</div>
<script type="text/javascript">
jwplayer("myElement").setup({
file: "/Uploads/teststream.mp4",
image: "/Uploads/Logo.jpg",
width: 640,
height: 360
});
</script>
<p></p>
<h3>Service Level</h3>
<p></p>
<p>This stream is for a test.</p>
</div>
</body>
</html>

Any help most appreciated.
Rgds

5 Community Answers

MisterNeutron

User  
0 rated :

Your code looks OK. Make sure all three JW Player files are sitting in the same directory - jwplayer.js, jwplayer.html5.js, and jwplayer.flash.swf. (You don't have to explicitly load each of them - in fact, you should load ONLY jwplayer.js, as you're doing now).

Please give us a link to your site.

Cooper Reid

JW Player Support Agent  
0 rated :

Your code looks fine, please check your browser’s error console to make sure that jwplayer.js is loading properly.
Cooper

dogstream

User  
0 rated :

Thx for the replies, I managed to resolve it. I had placed the jwplayer folder in a sub folder of my web site and not the root folder. Once I had moved the jwplayer folder to the root folder the player window appeared.

I now have the other error where it says it cannot locate the file, I need to check that out now, possibly another folder location issue

MisterNeutron

User  
0 rated :

Checking the "Network" tab in your brower's "inspector" utility will usually tell you exactly what the problem is. In Firefox or Chrome, hit F12. There's a wealth of information down there.

Cooper Reid

JW Player Support Agent  
0 rated :

Glad you got to the bottom of the issue-
Cooper

This question has received the maximum number of answers.