video- add types, generalize isProvider method