I have a DailyMotion video embedded in my page, through an iFrame, within a div. If the user clicks on the video, it starts playing.
Is there a way to use jQuery to simulate the user clicking on the video, so that it will start playing automatically? From what I’ve read so far you can only use jQuery’s click() with events attached with jQuery, which wouldn’t work here. Can this be done? Thanks for reading.
EDIT:
Forgot to mention, I know you can add ?autoPlay=1 to the DailyMotion embed url, but I need to do this for several online video sites, some of which don’t support autoplay, so I need to figure out if there’s another way to do it.
In this case there’s no need for jQuery at all, you can just add
?autoPlay=1to the URL, here’s your fiddle updated with the change.