Thursday, August 23, 2012

Playing mp4 video using jquery jwplayer in Asp.net

Jwplayer
Hi Friends,In this article I would like to explain how to play mp4 video using jquery jwplayer in our asp.net applications.In previously, we are already discussed about the " creation of custom video control in Asp.net" this time we try to play mp4 video using jquery jwplayer in asp.net applications.Lets Start...
First,In order play mp4 video using jwplayer we need add the following files, they are: 

1.jwplayer.js 

2.player.swf 

Add these two files into your application and also add the mp4 video which you want to play. 
Note: You can download the above 2 files from the internet OR I am attached the files below you can download.
download

 
 For better understanding please go through the below screenshot:

Solution explorer

 
 Next,Open the aspx page and switch to source mode Next Write the following code inside the head 

    
    
    
    
    
    

    
 


Next,Add the following code inside the body section
  
    
That's it.Almost done In the above code I took a div called (PlayMP4Video) and passed that div id to the jwplayer function. 
With the help of above files it will automatically set up the video into the div. Then build your application and run. It will generate an output screen as below: 

MP4 video

Labels: , , ,