You could lookup the loop_enabled control and loop_start_position / loop_end_position?