This tutorial code shows how to embed YouTube, Vimeo and self-hosted videos in HTML pages, customize them and control them via JavaScript.