0
Can I play music on the background of the site???
I want to do a code that it sounds music from background and it can be autoplay. Pls tell me if its possible
3 Antworten
0
JustSteve I downloaded that song and used Dropbox to upload it.
https://code.sololearn.com/WW6t4B73kJVz/?ref=app
https://code.sololearn.com/WT3661NHpV3B/?ref=app
Maybe this helps :)
Btw yes, you need an event, but it's quite easy, you can use a sweet alert, so we click automatically the screen.
https://code.sololearn.com/W61pGgtsXa18/?ref=app
Hope it helps & all the best :)
+ 3
Hey there JustSteve ,
Yes it is possible, just i found this solution because without a click or a response the code can't play the music because of a security console error.
Hope you understand how it works with this example :)
https://code.sololearn.com/WgnTlvLYaWX7/?ref=app
+ 1
So if i just put to play music when you just start the webpage, it wont work ?
I need an event to play the music, like if you click on the screen, I will hear music?
I've visited your code Major and I dont understand how did you get the link of that music?
Please tell me I have a extremly ideea for a beautiful code...