Initial video playback refactoring

(for https://bugzilla.mozilla.org/show_bug.cgi?id=1047150)