I'm using jw player to play youtube videos, but i need for the video to start playing in hd ( 720p ) i use the following code:
<div id="player">
<script>
jwplayer("player").setup({
file: "http://www.youtube.com/watch?v=o8UCI7r1Aqw",
height: "720",
width: "1280"
});
</script>
</div>
<script>
jwplayer('player').onPlay(function() {
jwplayer().setPlaybackQuality('hd720');
});
</script>
but i get the following error
There was an error calling back an event handler
Here is the test player that i set up.
setPlaybackQuality is not a valid API call - http://www.longtailvideo.com/support/jw-player/28851/javascript-api-reference
Here is a list of valid quality API calls: