add didOutputSampleBuffer delegate method