Auto-loop playback of background music

Source: Internet
Author: User
1. How to paste RM, Ra, Ram-type music, Code As follows: <embed width = "0" Height = "0" type = "audio/X-PN-RealAudio-plugin" autostart = "true" controls = "controlpanel" src = "http://guest.anyp.cn/uploads/01.rm" ;> 2. the code for how to paste Midi, ASF, WMA, and ASX types of music is as follows: <embed autostart = "true" loop = "-1" controls = "controlpanel" width = "0" Height = "0" src = "http://guest.anyp.cn/uploads/01.mid";> you only need to copy the entire code Article (When editing an article, click the HTML code mode and paste the code. Otherwise, the code is displayed in text format and cannot be executed ), use the URL (URL) of your favorite and available music files to replace the red music address code shown above. Most of the reasons for the inability to play music: A: The music file is incorrect. It is possible that this file is not a music file, but a common HTML page. B: The music file address is incorrect. This music file does not exist. C: No related playing software is installed. Test method: Enter the music file address in the IE column. If you are prompted to save the file, the saved file type is RM, Ram, Midi, and other files, that is, the music file. If the file is opened and the music is automatically played or other content is displayed, no. Add the flash with music, and then enter your flash Address in the pop-up window, note the post stamp Name: http://xxxxx.xxxx.swf, size can be adjusted to, 1*1, in this way, you can play music without displaying falsh, but remember to play it automatically. Do not add a piece of online music playing code to the flash that needs to start with. We recommend that you: <IFRAME marginheight = 0 src = "http://www.yqchina.com/play.htm"; frameborder = 0 noresize width = 540 scrolling = No Height = 25> place this code on the right side of the website and play the songs 24 hours a day, the following code is provided by Qingfeng network radio station by [Autumn wind]: First, open my article, enter the editing status, select HTML format, and then enter it, next let's look at the code. First, let's look at the first one, which is relatively simple: <bgsound src = "/blog/" url "loop = -1> "url" is still the path name, and "loop" indicates the number of loops.-1 indicates that the loop is always the second type: <embed src = "music. mid "autostart =" bool "loop =" N "width =" M "Height =" K "> the attributes are described as follows: SRC: music file path (optional) autostart: automatically plays a music file after it is uploaded. If it is set to true, the loop is set to true, and if it is set to false, the loop is set to true, and if it is set to false, the loop is set to no loop. The value is the number width, height is the width and height of the playback control panel, and other attributes include volume: value range: "0-100". Set the volume. The default value is starttime: "minute: second, set the time when the song starts to play, for example, starttime = "", from 10th seconds to start playing endtime: "minute: Second", set the time when the song stops playing controls: control Panel exterior controls = "C Onsole/smallconsole/playbutton/pausebutton/stopbutton/volumelever "· normal console size panel · Small smallconsole panel · playbutton display play button · pausebutton display pause button · stopbutton display stop button · volumelever display volume adjustment button hidden: if it is true, the Panel can be hidden. The following code is provided by [Wind Dance: simplified background music code 1. <embed src = "den =" true "autostart =" true "loop =" true "> -------- hidden =" true "indicates hidden playback, that is, do not display the appearance of the player. to display the video, replace "true" with "false". By default, the player size is minimized, add Height =" The height value is "width =" width value. ------- Autostart = "true" indicates that the current page is automatically played when it is loaded. If you do not want to change the playback mode to autostart = "false", then... ------ loop = "true" indicates Infinite Loop Playing of music until the current page is closed, if you do not want loop playback to be replaced by loop = "false", then OK 2. <embed src = "" autostart = "true" loop = "-1" controls = "controlpanel" width = "0" Height = "0"> ----------- loop = "-1" indicates unlimited loop playback, you can set the number of playbacks and use a specific number instead. For example, I want it to play twice, then the control option loop = "2" --------- controls = "controlpanel" can be omitted -------- width = "0" Height = "0" indicates hiding the playback, which is the same as the previous one. To set the appearance of the player, replace it with a specific value, for example, width = "123" Height = "100" ---------------------------------------------- to describe the simplest background music playing code, the following code is the simplest ---> <embed src = ""> ----------------------------------------------------- in addition: bgsound src = "background music path" loop = "-1"> This function only supports the IE browser and starts playing the video after the download is complete, unlike the preceding format, you can play the video while buffering. This is generally used for mid music or small MP3 or WAV music. If it is a large file, use the format mentioned above ~~ <Bgsound src = "background music path" loop = "-1"> this function is played as the browser opens. When the window is minimized, the function stops playing. When the window is maximized, the function starts playing again. However, <embed src = "" autostart = "true" loop = "-1" controls = "controlpanel" width = "0" Height = "0"> commonly used in mid,, WAV and MP3 types of music. this will always be played regardless of whether the window is minimized until the current window is closed ~~ Supported music file types: only supported music formats supported by the MP player, such as MP3, ASF, WMA, and ASX. rm, Ram .... the method for inserting a video file is the same as described above, set the appropriate music code explanation <embed autostart = "true" loop = "-1" controls = "controlpanel" width = "0" Height = "0" src = "http://guest.anyp.cn/uploads/01.mid"> explanations: autostart = "True/false" indicates whether to automatically play the music after the music file is uploaded. "True" indicates "false" indicates "not", and "internal value" indicates "not. Loop = "True/false/Integer" indicates whether to automatically repeat playback. Loop = 2 indicates repeated playback twice, to use loop = "true" width and high = "integer" infinitely, set the width and height of the control panel controls = "console/smallconsole/playbutton/pausebutton/stopbutton/volumelever" set the display of the control panel, the default value is the console. Normally, the Panel is smaller than the Panel smallconsole. playbutton only displays the play button. pausebutton only displays the pause button. stopbutton only displays the stop button. volumelever only displays the volume adjustment button.

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.