adding autoplay=1 only seems to work the first time. I am using a start/stop button and when i click it the first time, i add autoplay=1. Then when i click it again I remove the autoplay=1. That works fine.
but when i try to start it again (adding autoplay=1), it won't start.
I think this will help you. Working fine for me.
.click() JQuery event handler:
Have a look at:
Youtube API examples
the code will be something like this:
Another approach - switch iframe SRC (URL) with "?autoplay=1" version.
jQuery:
adding autoplay=1 only seems to work the first time. I am using a start/stop button and when i click it the first time, i add autoplay=1. Then when i click it again I remove the autoplay=1. That works fine.
but when i try to start it again (adding autoplay=1), it won't start.