WebSite X5Help Center

 
Erik B.
Erik B.
User

How to play background music?  en

Autor: Erik B.
Visited 4474, Followers 2, Udostępniony 0  

How can I play back-ground music on my site?

Is it an MP3 that pays once, or loops?

Thanks for helping me

Posted on the
10 ODPOWIEDZI - 1 POMOCNY
Samuel V.
Samuel V.
User

Hello Erik,

When you edit your page you could insert a "Video & Audio" widget inside the page. It is located in the right of your window.

If you don't want to use Flash (for mobiles for example), you could insert a HTML block with this HTML5 code inside:

<audio>

<source src="http://www.mysite.com/my_audio.mp3"type='audio/mpeg; codecs="mp3"'>

</audio>


Options are in the <audio> tag:

- controls: to show the controls (play, stop, volume)

- autoplay: to start playing when the page is loaded

- loop: to ... loop 

Czytaj więcej
Posted on the from Samuel V.
Der Zwoemti
Der Zwoemti
Moderator

@ samuel ...if you already have something like that then write correctly. The mp3 alone can not be played in all browsers.

Czytaj więcej
Posted on the from Der Zwoemti
Erik B.
Erik B.
User
Autor

Thanks !

I used the widget.

If I would use the second option, where would I put the HTML code (sorry but I'm not a trained IT person)

Czytaj więcej
Posted on the from Erik B.
Samuel V.
Samuel V.
User
 The mp3 alone can not be played in all browsers

and Flash won't too Wink

If I would use the second option, where would I put the HTML code

Inside a HTML block. You can find this block in the right of the window when editing your page. This is a large square area where you can put your HTML code into.

Czytaj więcej
Posted on the from Samuel V.
Maohai L.
Maohai L.
User
Samuel V.
When you edit your page you could insert a "Video & Audio" widget inside the page. It is located in the right of your window. If you don't want to use Flash (for mobiles for example), you could insert a HTML block with this HTML5 code inside: <audio> <source src="http://www.mysite.com/my_audio.mp3" type='audio/mpeg; codecs="mp3"'> </audio>

Hi therel, Is it possible to play the music in all the pages of a domain? (Homepage, page1, page2, pop-ups, ect.)

Thanks for your help,

Czytaj więcej
Posted on the from Maohai L.
Incomedia
Claudio D.
Incomedia

Hello Maohai,

You can add the code in every page but then when you change page it will start from begin. If you want to have it that is not stopped it has to be opened in a new window.

Many thanks!

Czytaj więcej
Posted on the from Claudio D.
Ahmed E.
Ahmed E.
User

how to add in new windows, so the music is played all over the site with the option of turning the sound off?

Czytaj więcej
Posted on the from Ahmed E.
Incomedia
Claudio D.
Incomedia

Hello Ahmed,

You can use the popup function where you add a page where you added the music player so the player controller are visible to turn it on and off and it will play also if you change page.

Please feel free to write back if you need more information.

Czytaj więcej
Posted on the from Claudio D.
Ahmed E.
Ahmed E.
User

what about sites that starts with music once you enter them and the music last as long as visitor browse the website, meanwhile visitor may find an icon to stop the music? I need to add a special touch and feeling to the website.

thank you very much

Czytaj więcej
Posted on the from Ahmed E.
Incomedia
Claudio D.
Incomedia

Hello Ahmed,

It depends on how the website is made, because if all the content is on the same page then it will not stop. If the browser loads a new page then the player starts from begin, and it's why most websites loads an popup window. If the website is completely made in Falsh then all the content is on the same page and there's no new page loaded and so it will be possible to have the music playing without stops but these websites will not work on mobile devices and are heavier to load.

Many thanks!

Czytaj więcej
Posted on the from Claudio D.