![](https://secure.gravatar.com/avatar/2ef97e14da32118966efa673553d6151?rating=PG&size=50&default=https%3A%2F%2Fcdn.desk.com%2Fassets%2Funknown_user_50-8ad5644bbe6b1bd7454f2ea465f782bd.png)
youtube videos not working
I cant make youtube videos play
this is my code
$(document).ready(function(){
jwplayer("myDiv").setup({
file: "https://www.youtube.com/watch?v=oDPtMh-mpDw",
image: "images/P1090566.JPG",
height: 360,
width: "100%",
aspectratio: "16:9",
controls:false
});
jwplayer().onReady(function(e) {
jwplayer("myDiv").play();
});
});
I have tried JW player 6 and 7
i have tried changeing the aspec ratio property to a fixed height
i have tried the youtube link without https:
every single time i get a long pause and then the following error appears in the console
Failed to load resource: net::ERR_FILE_NOT_FOUND - file://www.youtube.com/iframe_api