关于IOS的视频录制

来源:互联网 发布:知满天公务员培训 编辑:程序博客网 时间:2024/04/29 09:16

  昨天写了一段程序关于视频录制的,老是库找不到,提示错误。

  首先要加的是AVFoundtion.framework.

  接着提示

  "_CVPixelBufferGetPixelFormatType", referenced from:

      -[AVCallController captureOutput:didOutputSampleBuffer:fromConnection:] in AVCallController.o

  "_CVPixelBufferUnlockBaseAddress", referenced from:

      -[AVCallController captureOutput:didOutputSampleBuffer:fromConnection:] in AVCallController.o

  "_CVPixelBufferGetHeight", referenced from:

      -[AVCallController captureOutput:didOutputSampleBuffer:fromConnection:] in AVCallController.o

  "_CVPixelBufferGetDataSize", referenced from:

      -[AVCallController captureOutput:didOutputSampleBuffer:fromConnection:] in AVCallController.o

  "_kCVPixelBufferHeightKey", referenced from:

      -[AVCallController startVideoCapture] in AVCallController.o

  "_CVPixelBufferGetBaseAddress", referenced from:

      -[AVCallController captureOutput:didOutputSampleBuffer:fromConnection:] in AVCallController.o

  "_CVPixelBufferLockBaseAddress", referenced from:

      -[AVCallController captureOutput:didOutputSampleBuffer:fromConnection:] in AVCallController.o

  "_kCVPixelBufferWidthKey", referenced from:

      -[AVCallController startVideoCapture] in AVCallController.o

  "_CVPixelBufferGetWidth", referenced from:

      -[AVCallController captureOutput:didOutputSampleBuffer:fromConnection:] in AVCallController.o

把coreVideo.FrameWork加进去!


接下来又是


Undefined symbols for architecture armv7:

  "_CMSampleBufferGetImageBuffer", referenced from:

      -[AVCallController captureOutput:didOutputSampleBuffer:fromConnection:] in AVCallController.o

  "_CMTimeMake", referenced from:

      -[AVCallController startVideoCapture] in AVCallController.o


这时候把CoreMedia.FrameWork 加进去


原创粉丝点击