added support for video embedding

Rebased and tested. It works! Thanks @Arkham!