Last post Apr 03, 2018 07:54 AM by Khuram.Shahzad
Apr 02, 2018 09:55 PM|RoyalJakiro|LINK
I want to know how to play music on my website in the background like youtube songs or .mp3 file? I need to know what HTML or JS code I need. Do I also want to know where i've to put that code? I have to create new html or js file or can be put in index.php?
If someone has the patience and good faith to help me, thank them a lot!
Thanks in advance.
P.S:I want that music to repeat!
Sorry for my english if is bad!
Apr 03, 2018 03:50 AM|anuj_koundal|LINK
Check this example:
Apr 03, 2018 07:19 AM|Eric Du|LINK
According to your description and needs, i know you want to play background music in the code behind, for more details, please check the following tutorial:
Play sound file in a web-page in the background:
Background Music in HTML 5:
Apr 03, 2018 07:54 AM|Khuram.Shahzad|LINK
<p>If you are reading this, it is because your browser does not support the audio element. </p>
<audio src="/music/good_enough.mp3" controls>
<p>If you are reading this, it is because your browser does not support the audio element.</p>
<embed src="/music/good_enough.mp3" width="180" height="90" loop="false" autostart="false" hidden="true" />