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

Simpel embed code don't work.


I have follow the instructions on " http://support.jwplayer.com/customer/portal/articles/1406723-mp4-video-embed "

Have make a test page with BBEdit on: http://verkeerweb.be/jwpl_test/test.html
On the same directori ( jwpl_test ) is the map "jwplayer-6", startpage "test.html" and the video "testvideo_mp4.mp4"
I have convert/scale a mp4 video met "Miro video converter" to 640-360. (original much bigger)
this is the html code:

<!DOCTYPE html>
<html lang="nl">
<head>
<meta charset="utf-8" />
<title>test jwplayer 6</title>
<script src="http://verkeerweb.be/jwpl_test/jwplayer/jwplayer.js" ></script>
<script>jwplayer.key="......mykey........";</script>
</head>
<body>
<center>
<p>
<h2>Dit is een Test - A Test of jw player</h2><br>
<h3>It does not work</h3>

<div id="elementFilm">Loading the player...</div>
<script type="text/javascript">
jwplayer("elementFilm").setup({
file: "http://verkeerweb.be/jwpl_test/testvideo_mp4.mp4",
<!-- image: "http://example.com/uploads/myPoster.jpg", !-->
width: 640,
height: 360
});
</script>
</p>
</center>
</body>
</html>

9 Community Answers

jherrieven

User  
0 rated :

404 on http://verkeerweb.be/jwpl_test/jwplayer/jwplayer.js

stef.vanhoeck

User  
0 rated :

Sorry, a little mistake in the pad.
It's now ok.
It give now a error:
Error setting up player:
Invalid license key

stef.vanhoeck

User  
0 rated :

I give the license nr. of the example.
It's works. I try it on a different place and let you now if it works.

stef.vanhoeck

User  
0 rated :

Strange about the width and height.
The film is 640x360.
In Firefox is it smaller, in Safari it's ok.

MisterNeutron

User  
0 rated :

The dimensions are wrong only in FF under OSX, which is using Flash instead of native HTML5. There must be something wrong with the video encoding, because you can see that the same thing does not happen with a simple demo page:

http://misterneutron.com/JW6video/

Run the video through Handbrake with default options:

http://handbrake.fr/

MisterNeutron

User  
1 rated :

I spoke a bit too soon. The problem is actually that the video is anamorphic, and that's throwing Flash for a loop. Try this re-encoded video instead:

http://misterneutron.com/vkwtest.mp4

I produced that by pulling up Handbrake, checking "Web optimized," choosing "Anamorphic: None," choosing "Modulus: 2," and then checking "Keep aspect ratio."

stef.vanhoeck

User  
0 rated :

@MisterNeutron,
Thanks for your advise.
Now it's correct in Firefox on OSX

MisterNeutron

User  
0 rated :

Glad that fixed it!

I've been running into a lot of anamorphics lately (videos from family members, for example). Some players can handle them, but a lot of players get "fooled" about the dimensions.

stef.vanhoeck

User  
0 rated :

What I have done also in Handbrake is setting " RF " to 28 (smaller file - 552,79 kbit/s), so that the video is now 1,63 MB
Thanks a lot again. :-)))

This question has received the maximum number of answers.