Capture screen with CGDisplayStream

后端 未结 2 822
刺人心
刺人心 2021-01-06 01:20

I\'m trying to implement a feature in my app that will record the screen. I have bits of code that I have found in some sample code and a WWDC 2012 video.

So far I

相关标签:
2条回答
  • 2021-01-06 02:12

    For what it's worth, it looks like you're getting the runloop source, but then not adding it to the current run loop (CFRunLoopAddSource)

    0 讨论(0)
  • 2021-01-06 02:16

    I solved the problem by using CGDisplayStreamCreateWithDispatchQueue and passing dispatch_queue_create("queue for dispatch", NULL); as the queue.

    0 讨论(0)
提交回复
热议问题