![](https://secure.gravatar.com/avatar/b56cc976d3c9c48f87efae6eb6b751ec?rating=PG&size=50&default=https%3A%2F%2Fcdn.desk.com%2Fassets%2Funknown_user_50-8ad5644bbe6b1bd7454f2ea465f782bd.png)
Youtube Embedding
Ethan,
Can you tell me what I am doing wrong. This works for our other videos just not youtube.
<div id="mediaplayer">Sorry, but at this time, Adobe Flash must be installed to view this video.</div>
<div class="video-container">
<script type="text/javascript" src="/video/jwplayer.js"></script>
<script type="text/javascript">jwplayer.key="MYKEYHERE";</script>
<script type="text/javascript">
jwplayer("mediaplayer").setup({
screencolor: "000000",
stretching: "uniform",
width: "100%",
aspectratio: "16:9",
autostart: "true",
skin: "/video/skins/beelden.xml",
file:"http://www.youtube.com/watch?v=MgFD1Cf4dHM",
primary:"flash"
});
</script>
</div>