AMWA-TV / maj

Media Authoring with Java API - for MXF, AAF, IMF and Reg-XML
Apache License 2.0
17 stars 12 forks source link

Do search criteria work? #8

Open mrlimbic opened 7 years ago

mrlimbic commented 7 years ago

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);