How to use Jquery.media.js

Source: Internet
Author: User

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&gt, 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
 
   
  
  1. <script type="text/javascript" src="jquery-1.7.1.min.js"></script>
  2. <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:
  
 
  1. <script type="text/javascript">
  2. $(function() {
  3. $('. Pdf1 ').Media(width: the,Height: -,AutoPlay: true,src=\ '#\ '" /Upload/PDF/${Pdffile}');
  4. });
  5. </script>
Finally add the HTML code:
 
   
  
  1. <body>
  2. <div class="pdf"></div>
  3. </body>


Code highlighting version: HTTP://FROMWIZ.COM/SHARE/S/3CTMX51TMQ-B2QTACT03UPG83PQJRK2UDQRE2PBHLC11LONR attachment list

    How to use Jquery.media.js

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.