Skip to main content
Version: 1.2.x

VideoSDK Class Native iOS Methods - Flutter

getInstance()​

  • This method is used to get an instance of the VideoSDK class.

Returns​

  • VideoSDK instance

Example​

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.
  • videoProcessor

    • required: true
    • The instance of the processor whose effect you wish to apply.

Returns​

  • void

Example​

AppDelegate.swift
let customVideoProcessor = CustomVideoProcessor()
let videoSDK = VideoSDK.getInstance
videoSDK.registerVideoProcessor(videoProcessorName: "customVideoProcessorName", videoProcessor: customVideoProcessor)

Got a Question? Ask us on discord