Skip to content

[EN] Video Recording

Gyeonghwan edited this page Aug 4, 2016 · 1 revision

Record Video

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]

Enable the Video Recording

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;

Delegate for the Recording Completed

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");
}

Other NAVER CAFE SDK Documents.

Unity

Unreal

Cocos-2dx

Android

Clone this wiki locally