`playNextSegment` implementation.
First draft for playSegments.

It currently does not deal well with overlapping segments.
Will address that in the future.
playNextSegment test