VideoSDK Class Native iOS Methods - Flutter
getInstance()​
- This method is used to get an instance of the
VideoSDK
class.
Returns​
VideoSDK
instance
Example​
- Swift
let videoSDK = VideoSDK.getInstance
registerVideoProcessor()​
- This method is used to register your custom video processor during app initialization. It takes a string representing the unique processor name along with an instance of your processor to complete the registration.
Parameters​
-
videoProcessorName
- type:
String
- required:
true
- The name of the processor whose effect you wish to apply.
- type:
-
videoProcessor
- required:
true
- The instance of the processor whose effect you wish to apply.
- required:
Returns​
void
Example​
- Swift
AppDelegate.swift
let customVideoProcessor = CustomVideoProcessor()
let videoSDK = VideoSDK.getInstance
videoSDK.registerVideoProcessor(videoProcessorName: "customVideoProcessorName", videoProcessor: customVideoProcessor)
Got a Question? Ask us on discord