0

I've created an acf wordpress field with the type: "oEmbed". Now I have to implement an seperate Button to show and hide the included video in the frontend.

Everthing is working fine, but I would like to start/play the video if I click on the button and when it is shown.

Is there a parameter to edit this behaviour via javascript?

  • Possible duplicate of [What's the play event on a video html5 element?](https://stackoverflow.com/questions/12680432/whats-the-play-event-on-a-video-html5-element) – disinfor Nov 24 '17 at 20:06
  • No, I do not use the "video" tag. I use oEmbed acf field which creates an iframe. – Michał Płonski Nov 25 '17 at 10:14
  • Oh, that's right. Then see this: https://stackoverflow.com/questions/7443578/youtube-iframe-api-how-do-i-control-a-iframe-player-thats-already-in-the-html - http://jsfiddle.net/8R5y6/ – disinfor Nov 25 '17 at 16:07

0 Answers0