I'm currently attempting to add some video clip settings to a NSMutableDictionary, including two CMTime objects.
I am trying to store the video stream in use (indicated with an integer), the clip duration (CMTime) and the clip start time (CMTime), which are defined elsewhere in the code.
I'm probably being daft but I can't figure out how to add the CMTimes to the dictionary, I get a "Sending 'CMTime' to parameter of incompatible type 'id'" error.
I tried both setObject and setValue with no success and can't find an answer anywhere.
NSMutableDictionary *clipDetails = [NSMutableDictionary dictionary];
[clipDetails setObject:[NSNumber numberWithInteger:currentStream] forKey:@"stream"];
[clipDetails setObject:startTime forKey:@"clipStart"];
[clipDetails setObject:duration forKey:@"duration"];