HMSVideoPlugin
interface HMSVideoPlugin
A plugin implementing this interface can be registered with HMSStreamFactory to transform, process or analyze the videoFrame. These can include applications like video filters, virtual background, live analysis of video etc. The below functions are required for the sdk to properly use the plugin, usually the plugin would also be exposing some public functions of its own for the UI to control its working.
Functions
Link copied to clipboard
Link copied to clipboard
This function will be called before the call to init, it is used to check whether the plugin supports current OS and device or not. An error will be thrown back to the user if they try to use an unsupported plugin.
Link copied to clipboard
abstract fun processVideoFrame(input: VideoFrame, outputListener: HMSPluginResultListener?, skipProcessing: Boolean?)
This function will be called by the SDK for every video frame which the plugin needs to process.