Improving My HTML Video Facades

Jason Knight
CodeX
Published in
12 min readMay 19

I explained why we want to use facades when possible, and how to implement a basic one. Based on feedback to those articles and some things I mentioned, let’s up our game and do it better.

I will be adding the following things:

  1. More than one video source, we’ll add Vimeo in addition to our existing youtube.
  2. Auto detecting / extracting the video token from the anchor’s HREF
  3. Determining video source from anchor href’s domain
  4. Different style for different video sources

Jason Knight
CodeX
Writer for

Accessibility and Efficiency Consultant, Web Developer, Musician, and just general pain in the arse