Changed the way detectVideoChange repeats from
using setInterval to setTimeout, which is a
better solution since setInterval can result
in overflowing the buffer.