- Installation
- Info.plist Updates
- Localization
- Video Editor Module Setup
- Launch
- Implement export
- Customization options
❗ Important Requires CocoaPods 1.12.1+. Check with pod --version and upgrade if needed.
- Add sources and pods to your Podfile:
source 'https://cdn.cocoapods.org/'
source 'https://github.com/Banuba/specs.git'
source 'https://github.com/sdk-banuba/banuba-sdk-podspecs.git'
banuba_sdk_version = '1.50.1'
pod 'BanubaVideoEditorSDK', banuba_sdk_version
pod 'BanubaSDKSimple', banuba_sdk_version
pod 'BanubaSDK', banuba_sdk_version
pod 'BanubaARCloudSDK', banuba_sdk_version # optional
pod 'BanubaAudioBrowserSDK', banuba_sdk_version # optional- Install the pods:
pod install --repo-update- Open the generated
.xcworkspacein Xcode and run the project.
SPM integration is available in the spm branch.
-
Add the required packages using the URLs: https://github.com/Banuba/BanubaVideoEditorSDK-iOS https://github.com/Banuba/BanubaSDK-iOS
-
Use Exact Version mode and specify the 1.50.1 version.
❗ Info For more details, refer to the SPM Mandatory modules.
Add the iOS permissions required by the SDK (camera, microphone, photo library, media library) to your Info.plist:
<key>NSAppleMusicUsageDescription</key>
<string>This app requires access to the media library</string>
<key>NSCameraUsageDescription</key>
<string>This app requires access to the camera.</string>
<key>NSMicrophoneUsageDescription</key>
<string>This app requires access to the microphone.</string>
<key>NSPhotoLibraryUsageDescription</key>
<string>This app requires access to the photo library.</string>Add English Localized Strings file to the project.
- Create VideoEditorModule to initialize and customize the Video Editor SDK.
- Inside it, add method with your customizations:
class VideoEditorModule {
...
func createConfiguration() -> VideoEditorConfig {
var config = VideoEditorConfig()
...
return config
}
}Create instance of BanubaVideoEditor by using the license token.
let videoEditorSDK = BanubaVideoEditor(
token: AppDelegate.licenseToken,
configuration: config,
externalViewControllerFactory: viewControllerFactory
)❗ Important
- Returns
nilif the license token is invalid – verify your token - Check license activation before starting the editor.
- Expired/revoked licenses show a "Video content unavailable" screen
This example launches from camera:
let cameraLaunchConfig = VideoEditorLaunchConfig(
entryPoint: .camera,
hostController: self,
musicTrack: nil, // Paste a music track as a track preset at the camera screen to record video with music
animated: true
)
videoEditorModule.presentVideoEditor(with: cameraLaunchConfig)The Video Editor SDK can export multiple files at once. To set up export:
-
Make an ExportConfiguration object. Add one or more ExportVideoConfiguration objects to it. Each one stands for a video or audio file.
-
Call BanubaVideoEditor.export() and pass your ExportConfiguration to start.
Check the export implementation in the sample.
Read the Export integration guide for more details.
Explore customization options in our documentation.
