Add API to adjust current frame index.