WebSite X5Help Center

 
Erik B.
Erik B.
User

How to play background music?  en

Autor: Erik B.
Visitado 4504, Followers 2, Compartido 0  

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

Is it an MP3 that pays once, or loops?

Thanks for helping me

Publicado en
10 RESPUESTAS - 1 ÚTIL
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 

Leer más
Publicado en de 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.

Leer más
Publicado en de 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)

Leer más
Publicado en de 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.

Leer más
Publicado en de 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,

Leer más
Publicado en de 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!

Leer más
Publicado en de 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?

Leer más
Publicado en de 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.

Leer más
Publicado en de 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

Leer más
Publicado en de 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!

Leer más
Publicado en de Claudio D.