setLoopRange
Loops within range, or plays straight through when null.
Playback that passes the range's last frame wraps to the output slot its start lands on and reports PlaybackEvent.RangeLooped. When the composition ends inside the range, playback wraps at that end instead of stopping and reports no PlaybackEvent.Ended. That covers a range with no end, one ending exactly on the composition's duration, and one ending past it, whose end is held to the duration. A range that starts at or past the composition's end has nothing to loop, so playback runs to the end and reports PlaybackEvent.Ended as though no range were set. The playhead reports the slot a wrap lands on.