I'm looking over the sample code and trying to modify it slightly to allow it to use two targets. I started with the easy part, making a new target and putting the XLM and DAT into my project, then modified the loader thus:
- (bool) doLoadTrackersData {
bool ret = true;
ret= [self loadAndActivateImageTrackerDataSet:@"Direct_mail_flier.xml"];
ret= [self loadAndActivateImageTrackerDataSet:@"Sirens.xml"];
return ret;
}
- (void) prepare {
for (int i = 0; i < NUM_VIDEO_TARGETS; ++i) {
NSString* filename = @"Behind_The_Scenes.mp4";
if (NO == [player load:filename playImmediately:NO fromPosition:videoPlaybackTime[i]]) {
NSLog(@"Failed to load media");
}
}
But there's no selection based on the target here. I'm sure it's simple, can someone offer a pointer?
This may dup, my appologies in advance.
The key code is VERY well hidden. Do a search in your project for:
// VideoPlayerHelper to use for current target