Directly using pure JWPlayer JS (but NOT WP Plugin)
First of all, I'm not using WP JWPlayer Plugin. (And i don't want it. And thats the another story)
Well in the Template file:
wp_register_script('myJW', get_bloginfo('template_url') . '/jwplayer.js');
wp_enqueue_script('myJW');
?
div id='myJWPlayer'/div
script
jQuery(document).ready(function(){
jwplayer("myJWPlayer").setup({
playlist: "http://www.example.com/playlist.xml",
listbar: {
position: 'right',
size: 250
},
width: 700,
height: 400
});
});
/script
It is not working, since even the jwplayer("myJWPlayer")
call is not being triggered.
Note: This codes are perfectly working in pure HTML sites.
Any idea please?
Topic jwplayer templates Wordpress javascript
Category Web