![](https://secure.gravatar.com/avatar/42e4bbb595471f39099cfc3ccf3c0af0?rating=PG&size=50&default=https%3A%2F%2Fcdn.desk.com%2Fassets%2Funknown_user_50-8ad5644bbe6b1bd7454f2ea465f782bd.png)
Dynamically Loading a Video Player
I am using premium version 6.12
Is there a sample anywhere about how to set up an embed code for a player that would be Dynamically Loaded on to a page? Like, what would the code below look like if it was Dynamically set for a player to work?
div id="container">Loading the player ...</div>
<script type="text/javascript">
jwplayer("container").setup({
file: “ http://www.youtube.com/v/JVnT6W8i_K8?” ,
sharing: {},
image: "http://www.mywebsite.com/images/prettyimage.jpg",
primary: "flash",
autostart: true,
skin: "five",
width: "100%",
aspectratio: "16:9"
});
</script>