HMSBitmapPlugin

class HMSBitmapPlugin(val hmsSDK: HMSSDK, val hmsBitmapUpdateListener: HMSBitmapUpdateListener) : HMSVideoPlugin

Constructors

Link copied to clipboard
fun HMSBitmapPlugin(hmsSDK: HMSSDK, hmsBitmapUpdateListener: HMSBitmapUpdateListener)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun getName(): String

The name is meant to uniquely specify a plugin instance. This will be used to track number of plugins added, and same name won't be allowed twice.

Link copied to clipboard
open override fun getPluginType(): HMSVideoPluginType
Link copied to clipboard
open suspend override fun init()

This function will be called in the beginning for initialization which may include tasks like setting up variables, loading ML models etc. This can be used by a plugin to ensure it's prepared at the time processVideoFrame is called.

Link copied to clipboard
open override fun isSupported(): Boolean

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
open override fun processVideoFrame(inputVideoFrame: VideoFrame, outputListener: HMSPluginResultListener?, skipProcessing: Boolean?)

This function will be called by the SDK for every video frame which the plugin needs to process.

Link copied to clipboard
open override fun setKey(key: String)
Link copied to clipboard
open override fun stop()

the plugin can use this function to dispose off its resources. It'll be called when the processor instance is no longer needed at the end.

Properties

Link copied to clipboard