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

YouTube video not working


Full html:

<!DOCTYPE html>

<html lang="en">
<head>
<meta charset="utf-8" />
<script src="http://jwpsrv.com/library/<account_token_here>.js"></script>
<title></title>
</head>
<body>
<div id='playerXvfdHDkXFoqa'></div>
<script type='text/javascript'>
jwplayer('playerXvfdHDkXFoqa').setup({
file: '//www.youtube.com/watch?v=42BPapM3g6E',
title: 'my title',
width: '100%',
aspectratio: '16:9'
});
</script>
</body>
</html>

When I press Play button, the player stucks, it shows endless loading spinner.

3 Community Answers

MisterNeutron

User  
0 rated :

Try putting "http:" before the file name. What you've got there is not a valid URL.

Cooper Reid

JW Player Support Agent  
0 rated :

Mr Neutron is correct, you’ll need the entire URL.

BarsukovDmitry

User  
0 rated :

I tried to run this html locally (not on a webserver). Locally it does not work, but on a webserver it works. Thanks

This question has received the maximum number of answers.