class MultipleMediaSource implements IMediaSource {

    public long getSegmentsDurationInMicroSec() {
        long totalDuration = 0;
        for (MediaFile mediaFile : mediaFiles) {
            totalDuration += mediaFile.getSegmentsDurationInMicroSec();
        }
        return totalDuration;
    }

}