VideoSDK Class Native Android Methods - Flutter
getInstance()
- This method is used to get an instance of the
VideoSDK
class.
Returns
VideoSDK
instance
Example
- Kotlin
- Java
val videoSDK = VideoSDK.getInstance()
VideoSDK 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
-
customVideoProcessorName
- type:
String
- required:
true
- The name of the processor whose effect you wish to apply.
- type:
-
customVideoProcessorInstance
- required:
true
- The instance of the processor whose effect you wish to apply.
- required:
Returns
void
Example
- Kotlin
- Java
val customVideoProcessor = CustomVideoProcessor()
val videoSDK = VideoSDK.getInstance()
videoSDK.registerVideoProcessor("customVideoProcessorName", customVideoProcessor)
CustomVideoProcessor customVideoProcessor = new CustomVideoProcessor();
VideoSDK videoSDK = VideoSDK.getInstance();
videoSDK.registerVideoProcessor("customVideoProcessorName", customVideoProcessor);
Got a Question? Ask us on discord