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

Code is knocking out other code--player not loading.


So, I'm working with an html5 template so that I have cleaner code. Problem is, whenever I insert the code into the template, it wipes out everything else and it still doesn't load.

I'm experimenting with it with it in subfolders so the site is uneffected, but I want to make it work so I can use it live.

Anyway, here is an example of what I'm doing:

<!-- Main -->
<div id="main">


<!-- One -->
<section id="one">

<div class="content"><div id="PLAYER">Loading the player...</div>
<script type="text/javascript">
jwplayer("PLAYER").setup({
file: "vince reel.mp4",
image: "benefits.jpg",
width: "95%",
height: 400
});
<div class="container">
<header class="major">

<h2>Read Only</h2>

<p>Just an incredibly simple responsive site<br />
template freebie by <a href="http://html5up.net">HTML5 UP</a>.</p>
</header>
<p>Faucibus sed lobortis aliquam lorem blandit. Lorem eu nunc metus col. Commodo id in arcu ante lorem ipsum sed accumsan erat praesent faucibus commodo ac mi lacus. Adipiscing mi ac commodo. Vis aliquet tortor ultricies non ante erat nunc integer eu ante ornare amet commetus vestibulum blandit integer in curae ac faucibus integer non. Adipiscing cubilia elementum.</p>
</div>



I've experimented around with the placement, but the same thing always happens. I've loaded the player in the directory, etc.

7 Community Answers

planetdima

User  
0 rated :

1. What is the name of the template that you are using ?
2.
Try a direct link to your video file

Delete the space or use %20

http://www.yoursite.com/vincereel.mp4

roccboy3

User  
0 rated :

It's "Read Only" from HTML5up. It's HTML5 and CSS3. Seems like very clean code to me, but I am So not a CSS code expert.

MisterNeutron

User  
0 rated :

You haven't closed the <script> tag before the "container" <div>

roccboy3

User  
0 rated :

dude, you are SO da man! That explains why it wipes everything else out. Thanks!!!

MisterNeutron

User  
0 rated :

Sometimes it just takes another set of eyes to spot the glitch. :)

roccboy3

User  
0 rated :

Well, it helps if they are expert eyes like yours

Cooper Reid

JW Player Support Agent  
0 rated :

Nice find Mr Neutron!
Cooper

This question has received the maximum number of answers.