howardchung / watchparty

Watch anything together in-sync with your friends

Home Page:https://www.watchparty.me

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.