diff --git a/packages/hms-video-store/src/interfaces/room.ts b/packages/hms-video-store/src/interfaces/room.ts index c2f6ff2cf4..aa7ecafefb 100644 --- a/packages/hms-video-store/src/interfaces/room.ts +++ b/packages/hms-video-store/src/interfaces/room.ts @@ -33,17 +33,8 @@ export interface HMSRoom { description?: string; max_size?: number; large_room_optimization?: boolean; - /** - * @alpha - */ isEffectsEnabled?: boolean; - /** - * @alpha - */ isVBEnabled?: boolean; - /** - * @alpha - */ effectsKey?: string; isHipaaEnabled?: boolean; isNoiseCancellationEnabled?: boolean; diff --git a/packages/hms-video-store/src/sdk/models/HMSRoom.ts b/packages/hms-video-store/src/sdk/models/HMSRoom.ts index 1c79442b0e..3438b97867 100644 --- a/packages/hms-video-store/src/sdk/models/HMSRoom.ts +++ b/packages/hms-video-store/src/sdk/models/HMSRoom.ts @@ -15,17 +15,8 @@ export default class Room implements HMSRoom { max_size?: number; large_room_optimization?: boolean; transcriptions?: HMSTranscriptionInfo[] = []; - /** - * @alpha - */ isEffectsEnabled?: boolean; - /** - * @alpha - */ isVBEnabled?: boolean; - /** - * @alpha - */ effectsKey?: string; isHipaaEnabled?: boolean; isNoiseCancellationEnabled?: boolean; diff --git a/packages/hms-virtual-background/src/HMSVBPlugin.ts b/packages/hms-virtual-background/src/HMSVBPlugin.ts index 675e87ba86..5e574ba5f1 100644 --- a/packages/hms-virtual-background/src/HMSVBPlugin.ts +++ b/packages/hms-virtual-background/src/HMSVBPlugin.ts @@ -43,8 +43,8 @@ export class HMSVBPlugin implements HMSVideoPlugin { } isBlurSupported(): boolean { - // Not supported in Safari - return !(navigator.userAgent.includes('Safari') && !navigator.userAgent.includes('Chrome')); + const gl = this.outputCanvas?.getContext('webgl'); + return !!gl?.getSupportedExtensions()?.includes('WEBGL_2D_storage'); } checkSupport(): HMSPluginSupportResult { diff --git a/packages/roomkit-react/src/Prebuilt/components/VirtualBackground/VBPicker.tsx b/packages/roomkit-react/src/Prebuilt/components/VirtualBackground/VBPicker.tsx index b71b3d85a4..065b8e2163 100644 --- a/packages/roomkit-react/src/Prebuilt/components/VirtualBackground/VBPicker.tsx +++ b/packages/roomkit-react/src/Prebuilt/components/VirtualBackground/VBPicker.tsx @@ -75,6 +75,7 @@ export const VBPicker = ({ backgroundMedia = [] }: { backgroundMedia: VirtualBac if (!role) { return; } + hmsActions.addPluginToVideoTrack(vbObject as HMSVBPlugin, Math.floor(role.publishParams.video.frameRate / 2)); } } const handleDefaultBackground = async () => { @@ -170,7 +171,6 @@ export const VBPicker = ({ backgroundMedia = [] }: { backgroundMedia: VirtualBac /> {/* Slider */} - {background === HMSVirtualBackgroundTypes.BLUR && isEffectsEnabled && effectsKey ? (