Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FLUT-318: Added Virtual Background Plugin #1769

Closed
wants to merge 18 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
124 changes: 119 additions & 5 deletions packages/hms_room_kit/example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,38 @@ packages:
url: "https://pub.dev"
source: hosted
version: "7.0.0"
file_selector_linux:
dependency: transitive
description:
name: file_selector_linux
sha256: "045d372bf19b02aeb69cacf8b4009555fb5f6f0b7ad8016e5f46dd1387ddd492"
url: "https://pub.dev"
source: hosted
version: "0.9.2+1"
file_selector_macos:
dependency: transitive
description:
name: file_selector_macos
sha256: f42eacb83b318e183b1ae24eead1373ab1334084404c8c16e0354f9a3e55d385
url: "https://pub.dev"
source: hosted
version: "0.9.4"
file_selector_platform_interface:
dependency: transitive
description:
name: file_selector_platform_interface
sha256: a3994c26f10378a039faa11de174d7b78eb8f79e4dd0af2a451410c1a5c3f66b
url: "https://pub.dev"
source: hosted
version: "2.6.2"
file_selector_windows:
dependency: transitive
description:
name: file_selector_windows
sha256: d3547240c20cabf205c7c7f01a50ecdbc413755814d6677f3cb366f04abcead0
url: "https://pub.dev"
source: hosted
version: "0.9.3+1"
flutter:
dependency: "direct main"
description: flutter
Expand All @@ -158,6 +190,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "2.0.3"
flutter_plugin_android_lifecycle:
dependency: transitive
description:
name: flutter_plugin_android_lifecycle
sha256: "592dc01a18961a51c24ae5d963b724b2b7fa4a95c100fe8eb6ca8a5a4732cadf"
url: "https://pub.dev"
source: hosted
version: "2.0.18"
flutter_svg:
dependency: "direct main"
description:
Expand Down Expand Up @@ -199,14 +239,24 @@ packages:
relative: true
source: path
version: "1.1.3"
hms_video_plugin:
dependency: transitive
description:
path: "."
ref: main
resolved-ref: cd724255af2436783ff3b3ec8ea3bab87f4aa08b
url: "https://github.com/100mslive/hms_video_plugin.git"
source: git
version: "0.0.1"
hmssdk_flutter:
dependency: transitive
description:
name: hmssdk_flutter
sha256: b3f1438c5146afe0399935d78820357bf548b0e3ea36f9355878670ccc2aca6e
url: "https://pub.dev"
source: hosted
version: "1.10.2"
path: "packages/hmssdk_flutter"
ref: FLUT-318
resolved-ref: "75b35ed3b2da17b0c0c8ece19ccb3b7fa0321f67"
url: "https://github.com/100mslive/100ms-flutter.git"
source: git
version: "1.10.3"
http:
dependency: transitive
description:
Expand All @@ -223,6 +273,70 @@ packages:
url: "https://pub.dev"
source: hosted
version: "4.0.2"
image_picker:
dependency: transitive
description:
name: image_picker
sha256: "1f498d086203360cca099d20ffea2963f48c39ce91bdd8a3b6d4a045786b02c8"
url: "https://pub.dev"
source: hosted
version: "1.0.8"
image_picker_android:
dependency: transitive
description:
name: image_picker_android
sha256: "42c098e7fb6334746be37cdc30369ade356ed4f14d48b7a0313f95a9159f4321"
url: "https://pub.dev"
source: hosted
version: "0.8.9+5"
image_picker_for_web:
dependency: transitive
description:
name: image_picker_for_web
sha256: e2423c53a68b579a7c37a1eda967b8ae536c3d98518e5db95ca1fe5719a730a3
url: "https://pub.dev"
source: hosted
version: "3.0.2"
image_picker_ios:
dependency: transitive
description:
name: image_picker_ios
sha256: fadafce49e8569257a0cad56d24438a6fa1f0cbd7ee0af9b631f7492818a4ca3
url: "https://pub.dev"
source: hosted
version: "0.8.9+1"
image_picker_linux:
dependency: transitive
description:
name: image_picker_linux
sha256: "4ed1d9bb36f7cd60aa6e6cd479779cc56a4cb4e4de8f49d487b1aaad831300fa"
url: "https://pub.dev"
source: hosted
version: "0.2.1+1"
image_picker_macos:
dependency: transitive
description:
name: image_picker_macos
sha256: "3f5ad1e8112a9a6111c46d0b57a7be2286a9a07fc6e1976fdf5be2bd31d4ff62"
url: "https://pub.dev"
source: hosted
version: "0.2.1+1"
image_picker_platform_interface:
dependency: transitive
description:
name: image_picker_platform_interface
sha256: fa4e815e6fcada50e35718727d83ba1c92f1edf95c0b4436554cec301b56233b
url: "https://pub.dev"
source: hosted
version: "2.9.3"
image_picker_windows:
dependency: transitive
description:
name: image_picker_windows
sha256: "6ad07afc4eb1bc25f3a01084d28520496c4a3bb0cb13685435838167c9dcedeb"
url: "https://pub.dev"
source: hosted
version: "0.2.1+1"
intl:
dependency: transitive
description:
Expand Down
18 changes: 18 additions & 0 deletions packages/hms_room_kit/lib/src/assets/icons/max_blur.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions packages/hms_room_kit/lib/src/assets/icons/min_blur.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions packages/hms_room_kit/lib/src/assets/icons/video_effects.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 6 additions & 5 deletions packages/hms_room_kit/lib/src/common/utility_functions.dart
Original file line number Diff line number Diff line change
Expand Up @@ -416,11 +416,12 @@ class Utilities {
audioMode: audioMode,
enableNoiseCancellation: isNoiseCancellationEnabled),
videoTrackSetting: HMSVideoTrackSetting(
trackInitialState: joinWithMutedVideo
? HMSTrackInitState.MUTED
: HMSTrackInitState.UNMUTED,
forceSoftwareDecoder: isSoftwareDecoderDisabled,
));
trackInitialState: joinWithMutedVideo
? HMSTrackInitState.MUTED
: HMSTrackInitState.UNMUTED,
forceSoftwareDecoder: isSoftwareDecoderDisabled,
isVirtualBackgroundEnabled:
AppDebugConfig.isVirtualBackgroundEnabled));
}

static String getTimedMetadataEmojiFromId(String emojiId) {
Expand Down
6 changes: 6 additions & 0 deletions packages/hms_room_kit/lib/src/service/app_debug_config.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ class AppDebugConfig {

static bool isDebugMode = false;
static bool isProdRoom = true;
static bool isVirtualBackgroundEnabled = false;
static bool isVBEnabled = false;
static bool isBlurEnabled = false;

/// The [iOSScreenshareConfig] contains the configuration for the iOS screenshare
static HMSIOSScreenshareConfig? iOSScreenshareConfig;
Expand All @@ -30,5 +33,8 @@ class AppDebugConfig {
isAutoSimulcast = true;
isProdRoom = true;
nameChangeOnPreview = true;
isVirtualBackgroundEnabled = false;
isBlurEnabled = false;
isVBEnabled = false;
}
}
Loading