I'm using the following code in Notepad HTML file:
<html>
<head>
<title>Youtube Player Test</title>
<script src="http://content.jwplatform.com/libraries/eVB7ZSqv.js"></script>
</head>
<body>
<p>Test</p>
<div id="myElement"></div>
<script type="text/javascript">
jwplayer("myElement").setup({
file: "http://www.youtube.com/watch?v=n_LR5XHyFSc",
width: 640,
height: 360
});
</script>
</body>
</html>
but on line 4, and 11, the links are opening as: file://... however, I want it to run it externally, not locally?
[Error] Failed to load resource: The requested URL was not found on this server. (iframe_api, line 0) file://www.youtube.com/iframe_api
[Error] Failed to load resource: The requested URL was not found on this server. (0.jpg, line 0) file://i.ytimg.com/vi/n_LR5XHyFSc/0.jpg
Thats the error I get in the dev console.
P.S I'm using mac/safari.
It is making external calls beyond your file system. You have given them external links. This seems to work fine on Jsbin as shown here. What exactly is it that you are trying to achieve? It maybe the way you saved the file locally.