If you would like to control any sort of video embedded by youtube, you are probably going to need to use their JS API. Here's a couple links...
You also might want to check out this thread that Elaine posted a while ago:
Begin quoting Elaine:
Okay, I've put together a simple project for you to play with. (While I can't compete with a broken foot, I can say I've been heads down working on a great feature in the next preview.) Again, please note that the video player APIs are highly proprietary to the services themselves, so what will work for YouTube will not necessarily work for Vimeo. Since we don't control either the API or the services, these could break at any time.
Project Files (Preview 6.1):
This is how I did it:
- I created a very simple HTML page that had only <html><head></head><body></body></html>
- I cut and pasted from Google's API
- I added a function for Google's API to call and copied and pasted their code snippet as to how to get a JS handle to the player (which I named "player")
- I opened the HTML file in Edge, which created the project, and then added the buttons with the variables.
The one thing to note is that in this sample, I trust that the player will be available before the Edge runtime initializes. While this can be true in some cases, it's not always the case. That being said, if the only thing you're doing is pressing play/pause/stop, etc., it's likely you'll never hit on this problem. But if you're doing something like setting up a playlist for YouTube to play through before the player begins playing, you might have some problems (what we call "race conditions") if the player doesn't finish initializing before your Edge code runs.
Hope that helps.