-
Notifications
You must be signed in to change notification settings - Fork 9
[EN] Video Recording
The Cafe widget offers a video record button which allows users to record screens during gameplay.
This functionality has been supported since 1.7.0 of the NAVER Cafe SDK and works with iOS 9.0 or later.
[An image to be inserted]
Use the useWidgetVideoRecord property to specify whether this functionality is enabled.
@property (nonatomic, assign) BOOL useWidgetVideoRecord;
If the useWidgetVideoRecord property is set to YES, the video record button will appear on the Cafe widget (default: NO).
The video record button won't appear even though the useWidgetVideoRecord property is set to YES with earlier versions of iOS 9.0.
/**
* Determine whether video recording is enabled.
*/
[NCSDKManager getSharedInstance].useWidgetVideoRecord = YES;
Use the ncSDKWidgetSuccessVideoRecord method to implement tasks to be handled when the video recording is completed.
(void)ncSDKWidgetSuccessVideoRecord;
The following code shows an example of how to add a delegate so that the ncSDKWidgetSuccessVideoRecord method can be called when the video recording is completed.
...
[[NCSDKManager getSharedInstance] setNcSDKDelegate:self];
...
- (void)ncSDKWidgetSuccessVideoRecord {
NSLog(@"Video recording completed");
}