The plugin can play multiple types of multimedia files including: Flash, Quicktime, Windows Media player, Real Player, MP3, Silverlight, PDF, etc., provided 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.
The first thing to introduce JS file
<script type="text/javascript" src="jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="jquery.media.js"></script>
Next, add the JS code that needs to be executed after the page is loaded, to preview the PDF as an example:
<script type="text/javascript">
$(function() {
$('. Pdf1 ').Media(width: the,Height: -,AutoPlay: true,src=\ '#\ '" /Upload/PDF/${Pdffile}');
});
</script>
Finally add the HTML code:
<body>
<div class="pdf"></div>
</body>
Code highlighting version: HTTP://FROMWIZ.COM/SHARE/S/3CTMX51TMQ-B2QTACT03UPG83PQJRK2UDQRE2PBHLC11LONR attachment list
How to use Jquery.media.js