MediaSegmentsApi - functional programming interface