Skip to content

Instantly share code, notes, and snippets.

@amrox
Created August 5, 2011 05:26
Show Gist options
  • Select an option

  • Save amrox/1126958 to your computer and use it in GitHub Desktop.

Select an option

Save amrox/1126958 to your computer and use it in GitHub Desktop.
[exportSession exportAsynchronouslyWithCompletionHandler:^{
NSLog( @"exported to %@", [exportSession.outputURL path] );
}];
TEST_WAIT_UNTIL_TRUE( (exportSession.status == AVAssetExportSessionStatusCancelled ||
exportSession.status == AVAssetExportSessionStatusFailed ||
exportSession.status == AVAssetExportSessionStatusCompleted) );
STAssertTrue( exportSession.status == AVAssetExportSessionStatusCompleted, @"export failed" );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment