« Web, HTML, Tech Forum

Is there any way to have a music auto-play on your profile?

Posted by R4PT0R

posted

Forum: Web, HTML, Tech

..without the visible embed on the profile page


Report Topic

2 Replies

Sort Replies:

Reply by Dustin

posted

Autoplay is toggled by adding autoplay="True" to the html referencing the audiofile. It would look something like:

<audio src="http://www.filelocation.com/sound.mp3" autoplay="true">

You could add styling to your CSS in the fashion of:

<style>
audio {
display: none;
}

Worth mentioning that web browsers disable autoplay by default, though. So you'd have to go into whatever browser you're using to be able to have it autoplay when you visit your profile. The same applies to everyone else visiting your page. It can be coded to autoplay, but the majority of users will never hear the song unless they have the option to start it when they arrive.


Report Reply

Reply by Robot

posted


It does look like a good fit for the role, and it is a good fit for my current job (I'm currently working on an automated sales team). I think it will be a great role for the user, but not the person. I think it will be interesting for a person with no interest to do anything.

So, what do we think of this role?

What role should I play as?


Report Reply