iphonevideorecording

recording a conversation on tokbox for iphone/ipad


I tried using the following code from http://codethink.no-ip.org/wordpress/archives/673 then putting it into the The OpenTokHello sample app from OpenTok and it appears to not actually record the video as I thought it would.

I made the ScreenCaptureView the new "superview" of everything and then made sure that the video streaming views would be added to that view. And when I played the video, the place where the streaming video should've been, was blank.

Any ideas on what I'm doing wrong?


Solution

  • Full disclosure: I wrote some of the OpenTok iOS SDK and work for TokBox.

    The implementation of this ScreenCaptureView might not work with our SDK because all of our video rendering is done outside the context of UIView. You'd have to grab the rendering layer of the view in order to recover that part of the screen.

    Depending on why you're trying to record the conversation, I recommend either

    1. Using screen capture in QuickTime and running your app in simulator (easier)
    2. Waiting for OpenTok archiving support on iOS which will be available in a few months (also easy, but not for the impatient)
    3. Capturing the rendering output of the subscriber from CoreGraphics (less easy)