Skip to content
Sign upLog in
← Back to Community
How to autoplay a YouTube video? (HTML)
Profile icon
QuantumCodes

I was trying to make a website to prqnk everyone(-if u run and see thumbnail, im sure you will know)

I am not able to make that video to autoplay. Is it even possible? A code provided with answer will be appreciated. Even if it is muted, i want it to autoplay...

Voters
Profile icon
QuantumCodes
Comments
hotnewtop
Profile icon
AlexClark7

Hi, it's actually very easy to do, you just need to check the box in the settings where it says auto-play. If you still don't understand, I can make a video using this site which allows me to capture the screen of my mac and send it to you via PM. Let me know the answer.

Profile icon
QuantumCodes

@AlexClark7
settings where

Profile icon
AlexClark7

Thanks for post

Profile icon
InvisibleOne

I think that you need to add "&autoplay=1" to the end of your URL and allow="autoplay;" inside your iframe.

Profile icon
QuantumCodes

@InvisibleOne
not working... can u give a sample code? Or try it

Profile icon
QuestionableNS

google said: "To make an embedded video autoplay, add "&autoplay=1" to the video's embed code right after the video ID (the series of letters that follows "embed/")."

Profile icon
QuantumCodes

@QuestionableNS
still didnt work and.. whats this name entity?

Profile icon
QuestionableNS

@QuantumCodes
i just tested it and for some reason it does not auto play

Profile icon
QuantumCodes

@QuestionableNS
thats the problem i have. Somewhere jt said you need to put &autoplay=1&mute=1 but that also doesnt work :( i am using %26 to remove name entity error