-
- All Implemented Interfaces:
-
live.hms.video.plugin.video.HMSVideoPlugin,live.hms.video.plugin.video.virtualbackground.HmsVirtualBackgroundInterface
public final class HMSVirtualBackground implements HmsVirtualBackgroundInterface
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classHMSVirtualBackground.Companion
-
Constructor Summary
Constructors Constructor Description HMSVirtualBackground(HMSSDK hmsSdk)
-
Method Summary
Modifier and Type Method Description Unitinit()HMSVideoPluginTypegetPluginType()IntegergetCurrentBlurPercentage()Retrieves the current blur percentage applied to the video frames. UnitenableBlur(Integer blurPercentage)Enables the blur effect on the video frames. UnitenableBackground(Bitmap bitmap)Enables the background replacement effect on the video frames. UnitdisableEffects()Disables all video effects. UnitsetVideoFrameInfoListener(VideoFrameInfoListener listener)Sets the VideoFrameInfoListener to receive information about video frames. UnitprocessVideoFrame(VideoFrame inputVideoFrame, HMSPluginResultListener outputListener, Boolean skipProcessing)Unitstop()StringgetName()BooleanisSupported()UnitsetKey(String key)-
-
Method Detail
-
getPluginType
HMSVideoPluginType getPluginType()
-
getCurrentBlurPercentage
Integer getCurrentBlurPercentage()
Retrieves the current blur percentage applied to the video frames.
-
enableBlur
Unit enableBlur(Integer blurPercentage)
Enables the blur effect on the video frames.
- Parameters:
blurPercentage- The percentage of blur to be applied, ranging from 0 to 100.
-
enableBackground
Unit enableBackground(Bitmap bitmap)
Enables the background replacement effect on the video frames.
- Parameters:
bitmap- The bitmap to be used as the replacement background.
-
disableEffects
Unit disableEffects()
Disables all video effects.
-
setVideoFrameInfoListener
Unit setVideoFrameInfoListener(VideoFrameInfoListener listener)
Sets the VideoFrameInfoListener to receive information about video frames.
- Parameters:
listener- The listener instance to be notified about video frame information.
-
processVideoFrame
Unit processVideoFrame(VideoFrame inputVideoFrame, HMSPluginResultListener outputListener, Boolean skipProcessing)
-
isSupported
Boolean isSupported()
-
-
-
-