use of com.att.aro.core.videoanalysis.pojo.ManifestCollection in project VideoOptimzer by attdevsupport.
the class ManifestBuilder method dumpManifestCollection.
public String dumpManifestCollection() {
StringBuilder strbldr = new StringBuilder("ManifestCollection:");
strbldr.append("Map<String, ManifestCollection> manifestCollectionMap\n size:" + manifestCollectionMap.size());
Iterator<Entry<String, Map<Double, ManifestCollection>>> itr = manifestCollectionMap.entrySet().iterator();
while (itr.hasNext()) {
Entry<String, Map<Double, ManifestCollection>> val = itr.next();
Map<Double, ManifestCollection> innerMap = val.getValue();
Iterator<Entry<Double, ManifestCollection>> innerItr = innerMap.entrySet().iterator();
strbldr.append("\n\tVideoStream:" + val.getKey() + manifestCollection);
while (innerItr.hasNext()) {
Entry<Double, ManifestCollection> innerVal = innerItr.next();
ManifestCollection manifestCollection = innerVal.getValue();
strbldr.append("\n\tVideoStream:" + innerVal.getKey() + manifestCollection);
}
}
return strbldr.toString();
}
use of com.att.aro.core.videoanalysis.pojo.ManifestCollection in project VideoOptimzer by attdevsupport.
the class ManifestBuilder method getSegmentInfo.
/**
* Locate and return a segment number.
*
* @param request
* @return segment number or -1 if not found
*/
public SegmentInfo getSegmentInfo(HttpRequestResponseInfo request) {
ManifestCollection manifestCollection;
SegmentInfo segmentInfo = null;
String key = buildKey(request);
manifestCollection = findManifest(request);
if (manifestCollection != null) {
segmentInfo = manifestCollection.getSegmentTrie().get(key);
if (segmentInfo == null) {
segmentInfo = manifestCollection.getSegmentTrie().get(request.getObjUri().toString());
}
}
return segmentInfo;
}
Aggregations