19 Ocak 2014 Pazar

how to install a jawaplayer on your blog / website

HOW TO USE A JWPLAYER FOR VIDEOS
1-Download Jwplayer files
2-Extract the files from the zip
3-Upload them in any host using a FTP
4-Get the URL of Jwplayer

   By following above steps,you can use a jwplayer for your videos.This jwplayer is belong to Longtail. With this jwplayer, we can use sharing icons, ads unit and more plugins supported by Longtail. In order to install this jwplayer you need to upload three files;
swfobject, player.swf, and of course a video. Longtail offer us to use its jawascript code to show our videos, i've already listened to their recommendation, and it works perfectly,so this is it:



<script src="http://yoursite.com/filename_swfobject_in_it//swfobject.js" type="text/javascript">
</script>
<div id="mediaspace">You can change this text</div>
<script type="text/javascript">
  var so = new SWFObject('http://yoursite.com/filename_jwplayer_in_it/player.swf','ply','470','320','9','#000000');
  so.addParam('allowfullscreen','true');
  so.addParam('allowscriptaccess','always');
  so.addParam('wmode','opaque');
  so.addVariable('file','http://Your video URL goes here.flv');
  so.write('mediaspace');
</script>

Green field: Put a video file URL such as mpe4, flv
Red field: Put there where is player URL
Orange fieald: Put there where is swfobject URL

Watch this video for more instructions, it is a DEMO as well