typedef SegmentIdGenerator = String? Function( String streamId, int sn, String segmentUrl, String? range, );