Autoplay Inline Frames in Dynamic Panels?

Hi,

I have three videos, one of which I want to have playing on a loop at any one time, depending on the status of a button.

I can make each autoplay with the embed code, and hide/show/bring to front to have one visible at a time.

However, what I’d really like to do is have a dynamic panel where each state is a different video, so the autoplay only works when the panel state changes.

However, I’ve noticed that autoplay (and other embed code parameters) do not work in dynamic panels: is there any way round this?