uCoz Community uCoz Modules Additional Features Music on the Site (How to add music .mp3, playlist so on...) |
Music on the Site |
You can insert mp3 player into any page or message. It may serve to let visitors listen to various compositions. It may be a background for you site (do not abuse this capability, don’t forget that mp3 files weight quite a lot, and not all users have broadband Internet access. They won’t be able to load your site in case of automatic playback)
It is used in the following way: Code [audio] [/audio] Having entered the following Code [audio]http://forum.ucoz.com/i_love_ucoz.mp3[/audio] we'll get You can also insert a player with the help of JS-code. Code <script src="http://forum.ucoz.com/media/?auto=0;small=0;color=0055e9;textoff=0;t=audio;f=http%3A%2F%2Fforum.ucoz.com%2Fi_love_ucoz.mp3" type="text/javascript"></script> You can also insert it into any place of your site. Besides, it has controlled parameters (settings), which we’ll describe below.
Quote auto=0;small=0;color=0055e9;loop=0;textoff=0 Values in bold type may be changed from 0 to 1. In this way, you’ll enable them. By means of "color" specify code color. So, if we change in the code auto=0 for auto=1 - a song will be played automatically (be careful with this feature, think of those who have slow Internet and paid traffic). small=1 – will display a small player of two buttons. Here it is: loop=1 – a file will be played back non-stop (till you press stop) textoff=1 – will remove text (e.g. "i_love_ucoz.mp3" in the example above) color=0055e9 (player color management) –instead of 0055e9 write the code of a desired color. Codes can be found out from tables or in Photoshop by clicking on a color. Code <script src="http://forum.ucoz.com/media/?auto=0;small=0;color=000000;textoff=0;t=audio;f=http%3A%2F%2Fforum.ucoz.com%2Fi_love_ucoz.mp3" type="text/javascript"></script> we'll get:
Music as a background
Code <bgsound src="URL" loop=5 volume=0 balance=0> where URL – file name loop – number of repeats, if loop="infinite" - unlimited format - .wav .mid EMBED tag It is used to insert into pages multimedia content and other files.
Code <EMBED attributes> </EMBED>
Code <EMBED src="file.swf" menu="true" quality="high" bgcolor="#000066" width="760" height="410" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave"></EMBED> As you can see from the example you can insert Flash files, as well as video and audio. You can write a code with minimal number of attributes
Code <embed src="video.avi" width="760" height="410"> Music in a pop-up (new) window There is nothing difficult, use JavaScript On the page where you want to place the button "Play music" insert the following code between the < head> tags
Code <script> function openWindow() { muzWindow = open("http://www.ucoz.com/music.html", "newWindow", "width=300,height=300, status=no, toolbar=no, menubar=no"); } </script>
Then put in any place of the page either the link Code <a href="#" onClick="openWindow()">Press to play music</a> or the button
Code <button onClick="openWindow()">Press to play music</button> I'm not active on the forum anymore. Please contact other forum staff.
|
Dear guys and girls)
I have an Iradio (zbo.ucoz.com) My listeners want to to know about three past artists and them songs, as well as the same information about a current track. I would like to create the plugin and insert it bellow after player on the site. Help me please to start do it) What should I do the first, the second ... I have a little experience in programming and I will try to expand it for this "project") The radion-station uses SAM Broadcaster, Icecast2, and free set of UCOZ service. Thank you in advance. In waiting for your help |
Fireball, it's better to post this question on the following board: http://forum.ucoz.com/forum/38
I'm not active on the forum anymore. Please contact other forum staff.
|
It looks like you've provided information on how to embed and play audio files (MP3) on a https://spotibuzz.com/download-spotify-playlist-to-apple-watch/ website using different methods like BB-code, JavaScript, and EMBED tags. You've also explained how to control various parameters such as autoplay, loop, and player appearance.
|
| |||