The recommended solution is to use iframes, which is what youtube embed code provides, but iframes don't directly support any of the common media element API (play, stop, pause, setTime etc). This makes it pretty rigid.
Some of this can be supported through direct link manipulation, such as here but I am not 100% sure that will work for every video link out there.
Main issue
The html
The recommended solution is to use iframes, which is what youtube embed code provides, but iframes don't directly support any of the common media element API (play, stop, pause, setTime etc). This makes it pretty rigid.
Some of this can be supported through direct link manipulation, such as here but I am not 100% sure that will work for every video link out there.