Refactor: move the seek offset calculation to streamPositionForTime() so that it can be used without seeking.