The main thing is the use of a jquery plug-in jquery.media.js, the use of this plugin is easy to implement.
The plugin can play multiple types of multimedia files including: Flash, Quicktime, Windows Media player, Real Player, MP3, Silverlight, PDF, etc.
The prerequisite is that the client browser is loaded with the appropriate plugin.
The plug-in mainly converts <a> tags into <div>, and simultaneously generates <Object> objects suitable for different types of multimedia files and plays an analytic translation process to achieve the effect of multimedia playback. The conversion process is implemented in the client browser, so there is a time difference between opening the Web page and appearing the player.
page code:
The first is to introduce the corresponding JS file and then add the page after the completion of the execution of the JS code last add <a> tags
Jquery.media.js's official Website API address: http://jquery.malsup.com/media/