Implement onKeyframe method in Player