How can I autoplay a video using the new embed code style for
文章推薦指數: 80 %
Just put "?autoplay=1" in the url the video will autoload. So your url would be: http://www.youtube.com/embed/JW5meKfy3fY?autoplay=1.
Home
Public
Questions
Tags
Users
Collectives
ExploreCollectives
FindaJob
Jobs
Companies
Teams
StackOverflowforTeams
–Collaborateandshareknowledgewithaprivategroup.
CreateafreeTeam
WhatisTeams?
Teams
CreatefreeTeam
CollectivesonStackOverflow
Findcentralized,trustedcontentandcollaboratearoundthetechnologiesyouusemost.
Learnmore
Teams
Q&Aforwork
Connectandshareknowledgewithinasinglelocationthatisstructuredandeasytosearch.
Learnmore
HowcanIautoplayavideousingthenewembedcodestyleforYoutube?
AskQuestion
Asked
11years,3monthsago
Active
6monthsago
Viewed
801ktimes
178
34
Ican'tworkouthowtoautoplayavideousingthenewembedcodestyleforYoutube.Itriedadding&autoplay=1totheurl,whichworkedwiththeoldstyle,butitdidn'twork.Forexample,http://www.youtube.com/embed/JW5meKfy3fYistheembedlink,buthttp://www.youtube.com/embed/JW5meKfy3fY&autoplay=1doesn'twork.Cananyonetellmehowtodoit?Thanks
videoyoutubeyoutube-api
Share
Improvethisquestion
Follow
editedAug4'10at12:15
ben
askedAug4'10at11:57
benben
27.5k4141goldbadges123123silverbadges175175bronzebadges
3
3
Thisisoutdated.'mute=1'isrequirednow.See:AnsweringStackOverflowArticle
– Trevor
Oct11'18at16:27
1
Yes,Ineededtoadd?autoplay=1&mute=1forautoplaytoworkinchrome.Thanks
– johnblair
Sep23'19at9:33
Sojusttobeclear,chromewillonlyallowautoplayifthevideoismuted?Thereisnowaytoforceautoplaywiththesoundon?
– webrightnow
Oct24'19at17:36
Addacomment
|
12Answers
12
Active
Oldest
Votes
376
+50
Justput"?autoplay=1"intheurlthevideowillautoload.
Soyoururlwouldbe:
http://www.youtube.com/embed/JW5meKfy3fY?autoplay=1
Incaseyouwannadisableautoplay,justmake1to0as
?autoplay=0
Share
Improvethisanswer
Follow
editedApr8'19at11:27
WasiF
18.3k1111goldbadges9696silverbadges106106bronzebadges
answeredAug8'10at6:16
matthewbauermatthewbauer
4,09611goldbadge1515silverbadges2121bronzebadges
8
12
Thisdoesn'tappeartoworkasofrightnow.Itworkedperfectly1weekago.
– Peeja
Feb18'14at15:36
26
ThefirstparameterafterthevideoIDneedstostartwith"?",allparametersAFTERthatneedstobeaddedwith"&".Ifyouhadforexample"?rel=0&autoplay=1"itwouldbethesameas"?autoplay=1&rel=0"andtheywouldbothwork.
– Thanos
Feb21'14at1:34
9
Thisanswerstillworks2016.Justaddingtheinfo,sinceit'sthefirstresultthatpopsupongoogle.
– FlorianRachor
Jan28'16at10:06
2
Someadditionalexplanationsincethisissohighinthegoogresults.ThepartoftheURLfollowing'?'istheQueryStringandwhatyouneedisthe'autoplay'keywithvalue'1'.Soforexample,'.../embed/JW5meKfy3fY?autoplay=1?rel=1'wouldalsobewrongbecausethenyouwouldhave'autoplay'withvalue'1?rel=1'.TheQueryStringbeginswith'?'andisseparatedintokey=valuepairsbythe'&'symbol.en.wikipedia.org/wiki/Query_string#Structure
– knickum
Jan31'17at19:35
9
Updatefor2017:Nowiniframeneedaddonemoreconf:allow="autoplay"acordingtodevelopers.google.com/web/updates/2017/09/…soyouriframewilllokslike:
延伸文章資訊
- 1YouTube Embedded Players and Player Parameters - Google ...
The autoplay parameter definition has been updated to explain that if you enable Autoplay, playba...
- 2Set Video to Autoplay - SpaceCraft Support Knowledge Base
You can easily trigger a YouTube or Vimeo video to automatically play when a user lands on your s...
- 3How to Autoplay Embedded YouTube Videos on your page
Enabling Autoplay Embedded YouTube Videos · Go to YouTube and open the video you want to embed. ·...
- 4How can I autoplay a video using the new embed code style for
Just put "?autoplay=1" in the url the video will autoload. So your url would be: http://www.youtu...
- 5How to stop autoplay on embedded YouTube videos
Edit the WordPress Page or Post in question · Click the text tab · Locate your embed code · Locat...