static defer(delayInMs, callback) {
    const timer = new shaka.util.Timer(callback);
    timer.tickAfter(delayInMs / 1000);
  }
This method is only public for testing. It allows us to intercept the
time-delay call.

@param {number} delayInMs
@param {function()} callback