[This article was updated on 6th February, 2012]
Few days back one of my reader asked me how I use JW Player in my blog as he also wanted add JW Player to play videos in his blog, then I thought to write an article on it so everyone can learn about it. LongTail Video is a leading company behind the JW Player.
Here are the following steps to get JW Player for your Blogger.com blog
- Go to Blogger.com –> Click on Template from drop-down for the following blog –> Edit HTML
- Find the </head> tag
- Just before the end of head tag place the below code
<script src="http://jajodiasaket.googlecode.com/files/jwplayer-5.9.js"/> <script src="http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"/>
- Now place the below code were you want to display your JW Video Player (e.g.: in your blog post)
- Change the following things before you place the code:
- Change The LongTail Video AdSolution ID
Change the ADSOLUTION_ID with your LongTail Video AdSolution ID. In case if you don’t have the AbSolution ID then you can sign up for free, to signup Click Here . Or if you don’t want to show ads in your player just remove that entire line (also mentioned below)
so.addVariable('ltas.cc', ' ADSOLUTION_ID ');
There is a facebook share button plug-in I have given if you don’t want it then simply remove this code ,fbit-1 from this (7th) line so.addVariable(‘plugins’, ‘ltas,gapro-1,googlytics-1,fbit-1‘); .
Note: If you want to add two or more player in one page then change the ID in each player. All you need to do is change 1 in jwplayer1 (you will find it in 1st, 3rd and from 13th line) with 2 for 2nd player, 3 for 3rd player and so on
Here is a demo of JW Player
If you are having problem in viewing the videos Click here.
If you have any questions or problems please comment below.