Improving My HTML Video Facades
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:
- More than one video source, we’ll add Vimeo in addition to our existing youtube.
- Auto detecting / extracting the video token from the anchor’s HREF
- Determining video source from anchor href’s domain
- Different style for different video sources