Added viewport sensing

Videos can now be make to play / pause when they appear / leave the
viewport.