Calls onFrame with the first frame at or after each of timesMs (ascending), at most px on its long side, the right way up. Stops early if it returns false. Returns how many frames it delivered.