Directly using pure JWPlayer (JS) in WordPress (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:

Read More
<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 files.
Any idea please?

Related posts

Leave a Reply

2 comments


  1. Well use the below Template file: [YOU FORGOT TO CLOSE THE DOUBLE QUOTES]

    <div id='myJWPlayer'></div>
    <script>
    
    
     jQuery(document).ready(function(){
            jwplayer("myJWPlayer").setup({
    //YOU FORGOT TO CLOSE DOUBLE QUOTES 
                playlist: "http://www.example.com/playlist.xml",
                listbar: {
                        position: 'right',
                        size: 250
                },
                width: 700,
                height: 400
            });
        });
        </script>
    

    Also Check your playlist if it is correctly generated

    how-to-generate-a-valid-playlistxml

    jw-player-xml-playlist-and-javascript

    Also Check out this blog about jwplayer playlist

    jwplayer-playlist

    If you are interested in wordpress plug-in you can check it here

    getting-started-with-the-wordpress-plugin

    jw-player-plugin-for-wordpress

    wordpress-video-tutorial-how-to-install-jw-player-plugin

    Hope Above Information Helps 🙂