I can successfully interact with the contents of an iFrame using C3's built in iFrame object and the new JavaScript facility. However, I can't figure out how to use this technique to control an embedded YouTube video.
I've experimented with a couple of options but had no luck so far:
Option 1: C3 JS sends commands directly to the YouTube iFrame which is embedded in the C3 iFrame.
Option 2: C3 JS sends commands to the C3 iFrame, which then sends commands to YouTube iFrame.
Unfortunately I don't know if either of these options is technically possible, and if so, what code to use.
I've created a quick project to illustrate the problem and I'd be grateful if anyone can help with a solution (or put me out of my misery and tell me why it's not actually possible):
https://www.dropbox.com/s/0nq8fhv5vuxu0x0/YTtest01.c3p?dl=0
Many Thanks,
Steve.