Autoplay embedded videos

embeddedtweet
video
oembed

#1

Hi,

I use embedded tweets in my website in a kind of gallery. I currently use

twttr.widgets.createVideo(
  '560070183650213889',
  document.getElementbyId('container')
);

to embed a video with the click of a button. However, the embedded video doesn’t autoplay and so the user has to click again to start the video. Is it possible to autoplay embedded videos or somehow start them via script?

Thanks,
Tobias


Autoplay embedded video in 2018
#2

Hi there! We currently don’t have autoplay built into our video widget but you could always use something like this to click the play button when you load it:

document.getElementsByClassName(“Icon–playCircle”)[0].click()

Hope this helps,
Kat


#3

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.