Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

scritch editor

A simple, customizable audio player designed for artists 路 By torcado

Auto Play with CSS?

A topic by 馃暪锔弒wagshaw created May 15, 2022 Views: 170 Replies: 1
Viewing posts 1 to 2

Is there a way to script autoplay music on load/start with CSS?

I'm completely inexperienced with coding in general. I apologize if this is a simple line of code.


Also, I have loved this app so far, and I recommend it to all my music buddies!

Developer

Thank you!

CSS wouldn鈥檛 be able to control the audio, it only handles visual changes like layout and colors.

Nowadays browsers don鈥檛 allow auto-playing audio at all, a page requires user interaction before audio is allowed to play. So, I could add an autoplay config option but the best it could do is play audio after the user clicks somewhere, not on load (unless the player is loaded after the user had already clicked in the page)