我正在根据kamcord教程实现:
https://github.com/kamcord/kamcord-ios-sdk/wiki/Getting-Started#wiki-kamcord-initialization
我的应用程序是一个简单的ios应用程序,不使用cocos2d游戏引擎。 由于某种原因,我看不到它的工作原理。 这是在应用程序委托(delegate)中实现的代码:
_view_controller = [[ViewController alloc]init];
// Override point for customization after application launch.
// that will present the Kamcord UI.
[Kamcord setDeveloperKey:@"key"
developerSecret:@"secret"
appName:@"appName"
parentViewController:_view_controller];
我从 viewController 调用这个方法:
- (IBAction)stopRecording:(id)sender {
[Kamcord stopRecording];
NSLog(@"Stop");
}
- (IBAction)startRecording:(id)sender {
[Kamcord startRecording];
NSLog(@"Start");
}
-(IBAction)showUpKamcord{
[Kamcord showViewInViewController:self];
NSLog(@"kamcord");
}
首先我开始录制,然后停止,然后我显示 View , 有什么想法吗?
最佳答案
Kamcord 仅适用于 OpenGL View 。它不记录 UIKit,因此如果您正在寻找它,那将不起作用。
关于ios - 在非 Cocos2d 应用程序上使用 Kamcord,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20254091/