refactor if (this.isVideo())
howardchung opened this issue · comments
We currently use a ton of this check to implement different logic to basic primitives like get/set time, volume, play, pause etc.
Extract all of these out to a separate interface, and implement it for each media type, e.g. Video, YouTube, Vimeo, etc.