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

JW Player v 6


Before i purchasing Pro plan i decide to trying self hosted video using JW playar. but i dont know whats wrong the video player always error like : "" Error loading player:
No playable sources found""

here the code i using. :

<div id="myElement">Loading the player...</div>
<script type="text/javascript">
jwplayer("myElement").setup({
file: "/jw/hosting-comparison.mkv",
flashplayer: "/jw/jwplayer/jwplayer.flash.swf",
image: "http://example.com/uploads/myPoster.jpg",
width: 640,
height: 360
});
</script>

what i missing? can you help me? Note : i'm not good with coding.

11 Community Answers

ben1189

User  
0 rated :

Try this code:
<script type="text/javascript">
jwplayer("myElement").setup({
file: "/jw/hosting-comparison.mkv",
type:mp4,
primary:'flash',
image: "http://example.com/uploads/myPoster.jpg",
width: 640,
height: 360
});
</script>

Ethan Feldman

JW Player Support Agent  
0 rated :

Also, please provide a link.

admin

User  
0 rated :

here the code i tested.

<div id="myElement">Loading the player...</div>
<script type="text/javascript">
jwplayer("myElement").setup({
file: "http://www.sligs.com/jw/movie/city-hunter/city-hunter-eps-01.mkv",
flashplayer: "http://www.sligs.com/jw/jwplayer/jwplayer.flash.swf",
primary: "flash",
image: "http://example.com/uploads/myPoster.jpg"
});
</script>

URL : http://www.sligs.com/?p=32

Ethan Feldman

JW Player Support Agent  
0 rated :

http://www.sligs.com/jw/movie/city-hunter/city-hunter-eps-01.mkv is just a link to a page on your wp site, not an actual file.

ben1189

User  
0 rated :

this code should work, but your url to mkv is broken.
jwplayer("myElement").setup({
file: "http://www.sligs.com/jw/movie/city-hunter/city-hunter-eps-01.mkv", //broken link!!
type:'mp4',
primary:'flash',
image: "http://example.com/uploads/myPoster.jpg",
width: 640,
height: 360
});

Ethan Feldman

JW Player Support Agent  
0 rated :

Indeed, broken.

admin

User  
0 rated :

no , the MKV file is not broken , i upload 8 video with MKV format with different size. but when i test with MP4 Format is working as well..

so how making MKV format working?

admin

User  
0 rated :

here the new code.

<div id="myElement">Loading the player...</div>
<script type="text/javascript">
jwplayer("myElement").setup({
file: "http://www.sligs.com/jw/movie/city-hunter/test.mkv",
flashplayer: "http://www.sligs.com/jw/jwplayer/jwplayer.flash.swf",
primary: 'flash',
type: 'mp4',
image: "http://example.com/uploads/myPoster.jpg",
width: '100%'
});
</script>

i also already checking and testing the MKV file not broken. but still can't. here the URL http://www.sligs.com/?p=32

Ethan Feldman

JW Player Support Agent  
0 rated :

MKV file is not encoded in H264…

admin

User  
0 rated :

i convert the video from MKV to MP4 with code.

here the new code.

<div id="myElement">Loading the player...</div>
<script type="text/javascript">
jwplayer("myElement").setup({
file: "http://www.sligs.com/jw/movie/city-hunter/01.mp4",
flashplayer: "http://www.sligs.com/jw/jwplayer/jwplayer.flash.swf",
primary: 'flash',
type: 'mp4',
image: "http://example.com/uploads/myPoster.jpg",
width: '100%'
});
</script>

why still can't working?

Ethan Feldman

JW Player Support Agent  
0 rated :

http://www.sligs.com/jw/movie/city-hunter/01.mp4 – Is it H264 though?

This question has received the maximum number of answers.