[JPlayer] one-minute jPlayer deployment and one-minute jplayer deployment

Source: Internet
Author: User

[JPlayer] one-minute jPlayer deployment and one-minute jplayer deployment

Bytes -----------------------------------------------------------------------------------------------------------------

「 JPlayer as audio player 」

You can easily customize the appearance and make it suitable for the color and style of your page.

If HTML can be used in the Demo, the HTML solution will be used; otherwise, the Flash solution will be used.

Note: The {wmode: "window"} option is used to ensure that Flash can be played in Firefox3.6. However, the OGA format will be used in the HTML solution.

 

References:

All demos are in: http://jplayer.org/latest/demos/
Support and FAQ for jPlayer: http://jplayer.org/support/
Developer guide: http://jplayer.org/latest/developer-guide/
Start: http://jplayer.org/latest/quick-start-guide/

 

<! -- Head @ Blackeye poet <www. chenwei. ws> -->
<Head>
<Link> $ (document ). ready (function () {// jQuery method: run $ ("# jquery_jplayer_1") after the file is loaded "). jPlayer ({// div call whose id is jquery_jplayer_1. jPlayer ("options", {key: value}) to set ready: function () {// ready as the key, and the corresponding function as the value $ (this ). jPlayer ("setMedia", {// $ (this) is $ ("# jquery_jplayer_1"), setMedia is the option, the key is mp3 (format), and the value is the address m4a: http://www.jplayer.org/audio/m4a/Miaow-07-Bubble.m4a"
Mp3 :". /testbench "}) ;}, swfPath:" statics/home/js ", // supplied:" mp3, m4a, oga "// supported audio format }). jPlayer ("play ");//. jPlayer ("play") for automatic playback, without adding}); </script>

 

<! -- Player subject (styles can be customized in the CSS header) -->
<Body> <div id = "jquery_jplayer_1" class = "jp-jplayer"> </div>
<Div id = "jp_container_1" class = "jp-audio">
<Div class = "jp-type-single">
<Div class = "jp-gui jp-interface">
<Ul class = "jp-controls">
<Li> <a href = "javascript:;" class = "jp-play" tabindex = "1"> play </a> </li>
<Li> <a href = "javascript:;" class = "jp-pause" tabindex = "1"> pause </a> </li>
<Li> <a href = "javascript:;" class = "jp-stop" tabindex = "1"> stop </a> </li>
<Li> <a href = "javascript:;" class = "jp-mute" tabindex = "1" title = "mute"> mute </a> </li>
<Li> <a href = "javascript:;" class = "jp-unmute" tabindex = "1" title = "unmute"> unmute </a> </li>
<Li> <a href = "javascript :; "class =" jp-volume-max "tabindex =" 1 "title =" max volume "> max volume </a> </li>
</Ul>
<Div class = "jp-progress">
<Div class = "jp-seek-bar">
<Div class = "jp-play-bar"> </div>
</Div>
</Div>
<Div class = "jp-volume-bar">
<Div class = "jp-volume-bar-value"> </div>
</Div>
<Div class = "jp-current-time"> </div>
<Div class = "jp-duration"> </div>
<Ul class = "jp-toggles">
<Li> <a href = "javascript:;" class = "jp-repeat" tabindex = "1" title = "repeat"> repeat </a> </li>
<Li> <a href = "javascript :; "class =" jp-repeat-off "tabindex =" 1 "title =" repeat off "> repeat off </a> </li>
</Ul>
</Div>
<Div class = "jp-title">
<Ul>
<Li> My jPlayer </li>
</Ul>
</Div>
<Div class = "jp-no-solution">
<Span> Update Required </span> To play the media you will need to either update your browser to a recent version or update your <a href = "http://get.adobe.com/flashplayer/" target = "_ blank "> Flash plugin </a>.
</Div>
</Div>
</Div> </body>

 

For more detailed player parameters, see the documentation: http://jplayer.org/latest/developer-guide/

The above code is introduced on the page, and the path in the head can be played correctly. If you are interested, try it. Please feel free to contact me.


How to Use jplayer?

<Script src = "../js/jquery. js" type = "text/javascript"> </script>
<Script src = "../js/sound/jquery. jplayer. min. js" type = "text/javascript"> </script>

$ (Document). ready (
Function (){
$ ("# Jquery_jplayer_1"). jPlayer ({
Ready: function (){
$ (This). jPlayer ("setMedia", {mp3: "/sound/rzcg "});},
SwfPath: "/js/sound ",
Supplied: "mp3 ",
Volume: 1.8,
Preload: 'metadata ',
Solution: 'Flash, html'
})
});

Jplayer ie incompatible help

Which version of ie does not support it? Check whether swfPath settings are correct.
 

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.