JWPlayer with Ajax


Hits: 3897  

JWPlayer have nice solution to embed any type of media file like PDF, Image, Video, Audio etc.

But you need to embed JWPlayer for Ajax or jQuery Tabs….

You can use below flash code to display JWPlayer with JavaScript events.

JWPlayer with Flash based old embed code

<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' width='470' height='320' id='single1' name='single1'>
<param name='movie' value='player.swf'>
<param name='allowfullscreen' value='true'>
<param name='allowscriptaccess' value='always'>
<param name='wmode' value='transparent'>
<param name='flashvars' value='file=video.mp4&image=preview.jpg'>
<embed
  id='single2'
  name='single2'
  src='player.swf'
  width='470'
  height='320'
  bgcolor='#000000'
  allowscriptaccess='always'
  allowfullscreen='true'
  flashvars='file=video.mp4&image=preview.jpg' />
</object>

Published by

Sandeep Verma

I’m an Entrepreneur. I’m proud to work as Blogger, LAMP Programmer, Linux Admin, Web Consultant, Cloud Manager, Apps Developer, Searcher. Concentrate > Observe > Imagine > Launch