I have a Vimeo video in an iFrame with an ID of 'videoframe' and I'd like to control playback from events in C3. According to the Vimeo reference page for the player SDK you can call player methods by calling the corresponding function on the Player object, i.e.,
https://developer.vimeo.com/player/sdk/reference#play-a-video
What's the simplest way to achieve this in the C3 event sheet? I've been trying Javascript commands like
videoframe.contentWindow.postMessage('player.play()','*')
and lots of different variations, but I'm afraid I just don't understand the fundamentals of Javascript so I'm getting nowhere.
Any help would be greatly appreciated.