maj icon indicating copy to clipboard operation
maj copied to clipboard

Do search criteria work?

Open mrlimbic opened this issue 8 years ago • 0 comments

I've been experimenting with reading AAFs but I can't seem to cross reference packages by package ID.

In this example material always returns an empty set. Am I doing something wrong or is this not working yet?

SourceClip sc = (SourceClip)c;
										
double start = sc.getStartPosition() / rate.doubleValue();
double length = sc.getComponentLength() / rate.doubleValue();
										
System.out.println("SourceClip start " + start + " (" + length + ")");
										
Set<? extends tv.amwa.maj.model.Package> material = content.getPackages(new SearchByPackageIDImpl(sc.getSourcePackageID()));
										
System.out.println("material=" + material);	

mrlimbic avatar Jan 16 '17 18:01 mrlimbic