![](https://secure.gravatar.com/avatar/996b5c7d7772bb5eb61df712f51dbf47?rating=PG&size=50&default=https%3A%2F%2Fcdn.desk.com%2Fassets%2Funknown_user_50-8ad5644bbe6b1bd7454f2ea465f782bd.png)
Can playback be toggled if video is in an iframe?
My original question was in this thread, but has been closed, so I need to ask again.
http://support.jwplayer.com/customer/portal/questions/7511340-can-playback-be-toggled-if-video-is-in-an-iframe-
I have a video that is displayed in an iframe. I know the function onclick='jwplayer().play() can be used to toggle playback of the video, but I cannot get the function to work on my page and I suspect it is because I have the video in an iframe.
Is there any way to get this function to work if the JWPlayer is in an iframe?
-----------------------------
The parent and the iframe pages are not on the same domain, but I do have the ability to add my own Javascript to both pages.