@100mslive/roomkit-react 0.3.14-alpha.10 → 0.3.14-alpha.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{HLSView-PL2BEA32.js → HLSView-72D4HXOZ.js} +2 -2
- package/dist/{HLSView-TAAU7UCF.css → HLSView-X4TA7M5M.css} +3 -3
- package/dist/{HLSView-TAAU7UCF.css.map → HLSView-X4TA7M5M.css.map} +1 -1
- package/dist/{chunk-EKH2S2VL.js → chunk-OZVDS5TG.js} +188 -189
- package/dist/{chunk-EKH2S2VL.js.map → chunk-OZVDS5TG.js.map} +2 -2
- package/dist/index.cjs.css +2 -2
- package/dist/index.cjs.css.map +1 -1
- package/dist/index.cjs.js +191 -192
- package/dist/index.cjs.js.map +3 -3
- package/dist/index.css +2 -2
- package/dist/index.css.map +1 -1
- package/dist/index.js +1 -1
- package/dist/meta.cjs.json +12 -12
- package/dist/meta.esbuild.json +24 -24
- package/package.json +7 -7
- /package/dist/{HLSView-PL2BEA32.js.map → HLSView-72D4HXOZ.js.map} +0 -0
|
@@ -107,7 +107,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
107
107
|
var define_process_env_default;
|
|
108
108
|
var init_define_process_env = __esm({
|
|
109
109
|
"<define:process.env>"() {
|
|
110
|
-
define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_bf2e4ace-f294-4966-8ff3-314a76330d44", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_devDependencies__types_node: "^16.11.17", npm_package_exports___index_css: "./dist/index.css", npm_package_exports___require: "./dist/index.cjs.js", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_dependencies_screenfull: "^5.1.0", npm_package_dependencies_react_draggable: "^4.4.5", npm_package_dependencies__radix_ui_react_switch: "1.0.0", npm_package_dependencies__100mslive_hms_whiteboard: "0.0.4-alpha.10", USER: "runner", npm_package_devDependencies_jest: "26.6.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.22 npm/? node/v18.20.3 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_scripts_babel: "npx storybook@latest babelrc", CI: "true", npm_package_devDependencies__size_limit_file: "^5.0.3", npm_config_bin_links: "true", npm_config_wrap_output: "", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_dependencies__100mslive_react_sdk: "0.10.14-alpha.10", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_bf2e4ace-f294-4966-8ff3-314a76330d44", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.3/x64/bin/node", npm_config_init_version: "1.0.0", npm_package_dependencies__emoji_mart_react: "^1.0.1", npm_package_dependencies__emoji_mart_data: "^1.0.6", npm_package_dependencies__100mslive_hms_virtual_background: "1.13.14-alpha.10", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_dependencies__100mslive_types_prebuilt: "0.12.9", npm_package_peerDependencies_react: ">=17.0.2 <19.0.0", npm_package_devDependencies__storybook_addon_links: "^7.0.27", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_devDependencies__typescript_eslint_parser: "^5.4.0", npm_package_dependencies__radix_ui_react_dialog: "1.0.4", npm_package_devDependencies__types_react_window: "^1.8.5", npm_package_files_1: "src", npm_package_repository_directory: "packages/roomkit-react", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_scripts_controller: "cd packages/hls-controller && yarn start", npm_package_dependencies__stitches_react: "^1.2.8", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "100mslive", npm_package_engines_node: ">=16", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-8.8", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/26.3.11579264", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", YARN_WRAP_OUTPUT: "false", npm_config_version_tag_prefix: "v", GITHUB_REPOSITORY_OWNER_ID: "73883131", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu22", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_scripts_lint_fix: "yarn lint --fix", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", npm_package_devDependencies__storybook_addon_a11y: "^7.0.27", SYSTEMD_EXEC_PID: "593", npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_keywords_1: "react", GOROOT_1_20_X64: "/opt/hostedtoolcache/go/1.20.14/x64", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_devDependencies_react: "^18.1.0", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_2: "prebuilt", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.11/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240616.1.0", npm_package_devDependencies_prettier: "^2.4.1", npm_package_devDependencies_babel_jest: "^26.6.0", npm_package_scripts_dev: "node ../../scripts/dev", npm_package_keywords_3: "roomkit", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.4/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", FORCE_COLOR: "true", npm_package_dependencies__radix_ui_react_toast: "1.0.0", npm_package_dependencies__radix_ui_react_radio_group: "1.0.0", npm_package_dependencies__100mslive_hms_noise_cancellation: "0.0.1", npm_package_devDependencies__babel_preset_typescript: "^7.22.5", npm_package_exports___default: "./dist/index.js", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "8:18100", GITHUB_WORKFLOW: "Publish Packages", _: "/usr/local/bin/yarn", npm_package_devDependencies_ts_jest: "26.5.6", npm_package_devDependencies_lerna: "^5.6.2", npm_package_devDependencies__types_jest: "^27.0.3", npm_package_devDependencies__commitlint_config_conventional: "^15.0.0", npm_package_private: "true", npm_package_dependencies__radix_ui_react_accordion: "1.0.0", npm_package_devDependencies__babel_preset_react: "^7.22.5", npm_package_module: "dist/index.js", npm_package_scripts_lint: "eslint -c .eslintrc --no-error-on-unmatched-pattern src --ext .js --ext .jsx --ext .ts --ext .tsx", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^5.4.0", npm_config_registry: "https://registry.yarnpkg.com", npm_package_dependencies_react_window: "^1.8.7", npm_package_dependencies__100mslive_hls_player: "0.3.14-alpha.10", npm_package_devDependencies__types_lodash_merge: "^4.6.6", npm_package_devDependencies__storybook_cli: "^7.0.27", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", STATS_D: "false", GITHUB_RUN_ID: "9658212048", STATS_VMFE: "true", npm_package_workspaces_0: "packages/*", npm_package_scripts_store: "cd packages/hms-video-store && yarn start", npm_package_devDependencies__babel_core: "^7.18.2", npm_package_dependencies_ts_pattern: "4.3.0", npm_package_devDependencies__storybook_addon_interactions: "^7.0.27", npm_package_devDependencies__storybook_addon_actions: "^7.0.27", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "fe81328f37cd2b5f85c060577475ca0ba7c111cc", GITHUB_BASE_REF: "", ImageOS: "ubuntu22", npm_package_workspaces_1: "examples/*", npm_package_scripts_start: 'concurrently "yarn dev" "yarn types"', npm_config_ignore_scripts: "", NX_TASK_HASH: "2b9b62f0160d3b7c351c72036b92b990b2e14fc97b485f09ab2b844b1172af4f", npm_package_exports___import: "./dist/index.js", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/publish-alpha", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_scripts_prebuilt: "cd packages/roomkit-react && yarn start", npm_package_devDependencies_postcss_loader: "^6.2.1", npm_package_devDependencies_esbuild_loader: "^4.0.2", PATH: "/tmp/yarn--1719300390008-0.7476238373969768:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.3/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1719300389814-0.32598272856202226:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.3/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1719300364561-0.3803029000598863:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.3/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1719300364379-0.5521449080842729:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.3/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", NODE: "/opt/hostedtoolcache/node/18.20.3/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_b9f27e68-715e-4f39-96e3-57563729aae5", INVOCATION_ID: "38531dc36d1c43d8a325863691c12187", NPM_CONFIG_USERCONFIG: "/home/runner/work/_temp/.npmrc", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", npm_package_scripts_size: "size-limit", npm_package_devDependencies_size_limit: "^5.0.3", npm_package_name: "@100mslive/roomkit-react", npm_package_devDependencies__storybook_react_webpack5: "^7.0.27", npm_package_repository_type: "git", GITHUB_ACTION: "__run_3", GITHUB_RUN_NUMBER: "587", GITHUB_TRIGGERING_ACTOR: "github-actions[bot]", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "20 KB", npm_package_devDependencies__commitlint_cli: "^15.0.0", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_size_limit_1_limit: "20 KB", npm_package_devDependencies_eslint_plugin_simple_import_sort: "^8.0.0", npm_package_devDependencies_eslint: "^8.9.0", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 469", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "publish-alpha", GITHUB_REPOSITORY: "100mslive/web-sdks", STATS_D_D: "false", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_size_limit_2_limit: "400 KB", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_size_limit_3_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_cypress_open: "cypress open", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_devDependencies_concurrently: "^6.4.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_dependencies__100mslive_react_icons: "0.10.14-alpha.10", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.14-alpha.10", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies__types_react: "^18.1.0", npm_package_sideEffects: "false", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_source: "src/index.ts", GITHUB_REF_PROTECTED: "true", npm_config_argv: '{"remain":[],"cooked":["run","test"],"original":["test"]}', npm_package_size_limit_5_limit: "20 KB", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies_nx: "^14.5.1", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_uuid: "^8.3.2", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies_emoji_mart: "^5.2.2", GITHUB_WORKSPACE: "/home/runner/work/web-sdks/web-sdks", ACCEPT_EULA: "Y", GITHUB_JOB: "publish_packages", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_size_limit_6_limit: "150 KB", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_devDependencies_cypress: "^9.5.2", GITHUB_SHA: "fe81328f37cd2b5f85c060577475ca0ba7c111cc", GITHUB_RUN_ATTEMPT: "1", npm_package_size_limit_7_limit: "100 KB", npm_package_size_limit_4_path: "packages/hms-virtual-background/dist/index.cjs.js", npm_config_version_git_tag: "true", npm_config_version_git_sign: "", npm_package_dependencies_qrcode_react: "^3.1.0", GITHUB_REF: "refs/heads/publish-alpha", GITHUB_ACTOR: "github-actions[bot]", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "MIT", npm_package_size_limit_5_path: "packages/hms-virtual-background/dist/index.js", npm_config_strict_ssl: "true", LEIN_HOME: "/usr/local/lib/lein", npm_package_size_limit_6_path: "packages/react-icons/dist/index.cjs.js", npm_package_scripts_format: "prettier -w src/**", npm_package_devDependencies_eslint_plugin_prettier: "^4.0.0", npm_package_devDependencies_eslint_config_react_app: "^7.0.0", NX_TASK_TARGET_PROJECT: "@100mslive/roomkit-react", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_bf2e4ace-f294-4966-8ff3-314a76330d44", JAVA_HOME: "/usr/lib/jvm/temurin-11-jdk-amd64", PWD: "/home/runner/work/web-sdks/web-sdks/packages/roomkit-react", GITHUB_ACTOR_ID: "41898282", RUNNER_WORKSPACE: "/home/runner/work/web-sdks", npm_execpath: "/usr/local/lib/node_modules/yarn/bin/yarn.js", npm_package_size_limit_7_path: "packages/react-icons/dist/index.js", npm_package_scripts_ybys: "yarn && yarn build --no-private && yarn storybook", npm_package_dependencies__radix_ui_react_progress: "1.0.0", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", STATS_TIS: "mining", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", LEIN_JAR: "/usr/local/lib/lein/self-installs/leiningen-2.11.2-standalone.jar", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_bf2e4ace-f294-4966-8ff3-314a76330d44", npm_package_scripts_prestart: "rm -rf dist && yarn types:build", npm_package_author_name: "100ms", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", npm_package_scripts_build_storybook: "sb build", npm_package_devDependencies_postcss: "^8.4.5", npm_package_devDependencies_esbuild: "^0.18.13", npm_config_save_prefix: "^", npm_config_ignore_optional: "", npm_package_dependencies_worker_timers: "^7.0.40", npm_package_typings: "dist/index.d.ts", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/25.2.9519653", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_storybook: "sb dev -p 6006", npm_package_devDependencies_esbuild_plugin_postcss2: "0.1.1", npm_package_dependencies_react_swipeable: "^7.0.1", npm_package_devDependencies_babel_plugin_react_require: "3.1.3", npm_package_devDependencies__storybook_testing_library: "^0.2.0", npm_package_devDependencies__storybook_addon_essentials: "^7.0.27", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", STATS_EXTP: "https://provjobdsettingscdn.blob.core.windows.net/settings/provjobdsettings-0.5.181+6/provjobd.data", npm_package_scripts_reactsdk: "cd packages/react-sdk && yarn start", npm_package_dependencies_react_use: "^17.4.0", npm_package_dependencies__radix_ui_react_collapsible: "1.0.0", npm_package_devDependencies_storybook_dark_mode: "^3.0.0", npm_package_devDependencies__storybook_react: "^7.0.27", INIT_CWD: "/home/runner/work/web-sdks/web-sdks", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_bf2e4ace-f294-4966-8ff3-314a76330d44" };
|
|
110
|
+
define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_16192327-a2a2-40a7-abb2-79c0094cbaf1", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_devDependencies__types_node: "^16.11.17", npm_package_exports___index_css: "./dist/index.css", npm_package_exports___require: "./dist/index.cjs.js", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_dependencies_screenfull: "^5.1.0", npm_package_dependencies_react_draggable: "^4.4.5", npm_package_dependencies__radix_ui_react_switch: "1.0.0", npm_package_dependencies__100mslive_hms_whiteboard: "0.0.4-alpha.11", USER: "runner", npm_package_devDependencies_jest: "26.6.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.22 npm/? node/v18.20.3 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_scripts_babel: "npx storybook@latest babelrc", CI: "true", npm_package_devDependencies__size_limit_file: "^5.0.3", npm_config_bin_links: "true", npm_config_wrap_output: "", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_dependencies__100mslive_react_sdk: "0.10.14-alpha.11", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_16192327-a2a2-40a7-abb2-79c0094cbaf1", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.3/x64/bin/node", npm_config_init_version: "1.0.0", npm_package_dependencies__emoji_mart_react: "^1.0.1", npm_package_dependencies__emoji_mart_data: "^1.0.6", npm_package_dependencies__100mslive_hms_virtual_background: "1.13.14-alpha.11", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_dependencies__100mslive_types_prebuilt: "0.12.9", npm_package_peerDependencies_react: ">=17.0.2 <19.0.0", npm_package_devDependencies__storybook_addon_links: "^7.0.27", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_devDependencies__typescript_eslint_parser: "^5.4.0", npm_package_dependencies__radix_ui_react_dialog: "1.0.4", npm_package_devDependencies__types_react_window: "^1.8.5", npm_package_files_1: "src", npm_package_repository_directory: "packages/roomkit-react", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_scripts_controller: "cd packages/hls-controller && yarn start", npm_package_dependencies__stitches_react: "^1.2.8", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "100mslive", npm_package_engines_node: ">=16", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-8.8", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/26.3.11579264", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", YARN_WRAP_OUTPUT: "false", npm_config_version_tag_prefix: "v", GITHUB_REPOSITORY_OWNER_ID: "73883131", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu22", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_scripts_lint_fix: "yarn lint --fix", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", npm_package_devDependencies__storybook_addon_a11y: "^7.0.27", SYSTEMD_EXEC_PID: "585", npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_keywords_1: "react", GOROOT_1_20_X64: "/opt/hostedtoolcache/go/1.20.14/x64", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_devDependencies_react: "^18.1.0", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_2: "prebuilt", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.11/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240616.1.0", npm_package_devDependencies_prettier: "^2.4.1", npm_package_devDependencies_babel_jest: "^26.6.0", npm_package_scripts_dev: "node ../../scripts/dev", npm_package_keywords_3: "roomkit", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.4/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", FORCE_COLOR: "true", npm_package_dependencies__radix_ui_react_toast: "1.0.0", npm_package_dependencies__radix_ui_react_radio_group: "1.0.0", npm_package_dependencies__100mslive_hms_noise_cancellation: "0.0.1", npm_package_devDependencies__babel_preset_typescript: "^7.22.5", npm_package_exports___default: "./dist/index.js", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "8:20504", GITHUB_WORKFLOW: "Publish Packages", _: "/usr/local/bin/yarn", npm_package_devDependencies_ts_jest: "26.5.6", npm_package_devDependencies_lerna: "^5.6.2", npm_package_devDependencies__types_jest: "^27.0.3", npm_package_devDependencies__commitlint_config_conventional: "^15.0.0", npm_package_private: "true", npm_package_dependencies__radix_ui_react_accordion: "1.0.0", npm_package_devDependencies__babel_preset_react: "^7.22.5", npm_package_module: "dist/index.js", npm_package_scripts_lint: "eslint -c .eslintrc --no-error-on-unmatched-pattern src --ext .js --ext .jsx --ext .ts --ext .tsx", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^5.4.0", npm_config_registry: "https://registry.yarnpkg.com", npm_package_dependencies_react_window: "^1.8.7", npm_package_dependencies__100mslive_hls_player: "0.3.14-alpha.11", npm_package_devDependencies__types_lodash_merge: "^4.6.6", npm_package_devDependencies__storybook_cli: "^7.0.27", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", STATS_D: "false", GITHUB_RUN_ID: "9660740752", STATS_VMFE: "true", npm_package_workspaces_0: "packages/*", npm_package_scripts_store: "cd packages/hms-video-store && yarn start", npm_package_devDependencies__babel_core: "^7.18.2", npm_package_dependencies_ts_pattern: "4.3.0", npm_package_devDependencies__storybook_addon_interactions: "^7.0.27", npm_package_devDependencies__storybook_addon_actions: "^7.0.27", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "f1a483cba1ff7bfacde92aaf3a37a04cb665c7ad", GITHUB_BASE_REF: "", ImageOS: "ubuntu22", npm_package_workspaces_1: "examples/*", npm_package_scripts_start: 'concurrently "yarn dev" "yarn types"', npm_config_ignore_scripts: "", NX_TASK_HASH: "15219ee8bd39b3822f16a80359565dbe79360d5853b967a8f8d28e09fd15a149", npm_package_exports___import: "./dist/index.js", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/publish-alpha", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_scripts_prebuilt: "cd packages/roomkit-react && yarn start", npm_package_devDependencies_postcss_loader: "^6.2.1", npm_package_devDependencies_esbuild_loader: "^4.0.2", PATH: "/tmp/yarn--1719311146504-0.9538199475215898:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.3/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1719311146307-0.8075643836992763:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.3/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1719311120930-0.8492030328752149:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.3/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1719311120753-0.1875659140674153:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.3/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", NODE: "/opt/hostedtoolcache/node/18.20.3/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_56b91b7f-c832-4233-8d0f-f25d3bda4804", INVOCATION_ID: "7bfb809c340d4529aedcda2660d67a9f", NPM_CONFIG_USERCONFIG: "/home/runner/work/_temp/.npmrc", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", npm_package_scripts_size: "size-limit", npm_package_devDependencies_size_limit: "^5.0.3", npm_package_name: "@100mslive/roomkit-react", npm_package_devDependencies__storybook_react_webpack5: "^7.0.27", npm_package_repository_type: "git", GITHUB_ACTION: "__run_3", GITHUB_RUN_NUMBER: "588", GITHUB_TRIGGERING_ACTOR: "github-actions[bot]", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "20 KB", npm_package_devDependencies__commitlint_cli: "^15.0.0", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_size_limit_1_limit: "20 KB", npm_package_devDependencies_eslint_plugin_simple_import_sort: "^8.0.0", npm_package_devDependencies_eslint: "^8.9.0", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 340", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "publish-alpha", GITHUB_REPOSITORY: "100mslive/web-sdks", STATS_D_D: "false", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_size_limit_2_limit: "400 KB", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_size_limit_3_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_cypress_open: "cypress open", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_devDependencies_concurrently: "^6.4.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_dependencies__100mslive_react_icons: "0.10.14-alpha.11", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.14-alpha.11", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies__types_react: "^18.1.0", npm_package_sideEffects: "false", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_source: "src/index.ts", GITHUB_REF_PROTECTED: "true", npm_config_argv: '{"remain":[],"cooked":["run","test"],"original":["test"]}', npm_package_size_limit_5_limit: "20 KB", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies_nx: "^14.5.1", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_uuid: "^8.3.2", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies_emoji_mart: "^5.2.2", GITHUB_WORKSPACE: "/home/runner/work/web-sdks/web-sdks", ACCEPT_EULA: "Y", GITHUB_JOB: "publish_packages", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_size_limit_6_limit: "150 KB", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_devDependencies_cypress: "^9.5.2", GITHUB_SHA: "f1a483cba1ff7bfacde92aaf3a37a04cb665c7ad", GITHUB_RUN_ATTEMPT: "1", npm_package_size_limit_7_limit: "100 KB", npm_package_size_limit_4_path: "packages/hms-virtual-background/dist/index.cjs.js", npm_config_version_git_tag: "true", npm_config_version_git_sign: "", npm_package_dependencies_qrcode_react: "^3.1.0", GITHUB_REF: "refs/heads/publish-alpha", GITHUB_ACTOR: "github-actions[bot]", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "MIT", npm_package_size_limit_5_path: "packages/hms-virtual-background/dist/index.js", npm_config_strict_ssl: "true", LEIN_HOME: "/usr/local/lib/lein", npm_package_size_limit_6_path: "packages/react-icons/dist/index.cjs.js", npm_package_scripts_format: "prettier -w src/**", npm_package_devDependencies_eslint_plugin_prettier: "^4.0.0", npm_package_devDependencies_eslint_config_react_app: "^7.0.0", NX_TASK_TARGET_PROJECT: "@100mslive/roomkit-react", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_16192327-a2a2-40a7-abb2-79c0094cbaf1", JAVA_HOME: "/usr/lib/jvm/temurin-11-jdk-amd64", PWD: "/home/runner/work/web-sdks/web-sdks/packages/roomkit-react", GITHUB_ACTOR_ID: "41898282", RUNNER_WORKSPACE: "/home/runner/work/web-sdks", npm_execpath: "/usr/local/lib/node_modules/yarn/bin/yarn.js", npm_package_size_limit_7_path: "packages/react-icons/dist/index.js", npm_package_scripts_ybys: "yarn && yarn build --no-private && yarn storybook", npm_package_dependencies__radix_ui_react_progress: "1.0.0", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", STATS_TIS: "mining", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", LEIN_JAR: "/usr/local/lib/lein/self-installs/leiningen-2.11.2-standalone.jar", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_16192327-a2a2-40a7-abb2-79c0094cbaf1", npm_package_scripts_prestart: "rm -rf dist && yarn types:build", npm_package_author_name: "100ms", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", npm_package_scripts_build_storybook: "sb build", npm_package_devDependencies_postcss: "^8.4.5", npm_package_devDependencies_esbuild: "^0.18.13", npm_config_save_prefix: "^", npm_config_ignore_optional: "", npm_package_dependencies_worker_timers: "^7.0.40", npm_package_typings: "dist/index.d.ts", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/25.2.9519653", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_storybook: "sb dev -p 6006", npm_package_devDependencies_esbuild_plugin_postcss2: "0.1.1", npm_package_dependencies_react_swipeable: "^7.0.1", npm_package_devDependencies_babel_plugin_react_require: "3.1.3", npm_package_devDependencies__storybook_testing_library: "^0.2.0", npm_package_devDependencies__storybook_addon_essentials: "^7.0.27", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", STATS_EXTP: "https://provjobdsettingscdn.blob.core.windows.net/settings/provjobdsettings-0.5.181+6/provjobd.data", npm_package_scripts_reactsdk: "cd packages/react-sdk && yarn start", npm_package_dependencies_react_use: "^17.4.0", npm_package_dependencies__radix_ui_react_collapsible: "1.0.0", npm_package_devDependencies_storybook_dark_mode: "^3.0.0", npm_package_devDependencies__storybook_react: "^7.0.27", INIT_CWD: "/home/runner/work/web-sdks/web-sdks", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_16192327-a2a2-40a7-abb2-79c0094cbaf1" };
|
|
111
111
|
}
|
|
112
112
|
});
|
|
113
113
|
|
|
@@ -5629,10 +5629,10 @@ var require_ua_parser = __commonJS({
|
|
|
5629
5629
|
}
|
|
5630
5630
|
};
|
|
5631
5631
|
var rgxMapper = function(ua2, arrays) {
|
|
5632
|
-
var i2 = 0, j3,
|
|
5632
|
+
var i2 = 0, j3, k3, p2, q3, matches, match17;
|
|
5633
5633
|
while (i2 < arrays.length && !matches) {
|
|
5634
5634
|
var regex = arrays[i2], props = arrays[i2 + 1];
|
|
5635
|
-
j3 =
|
|
5635
|
+
j3 = k3 = 0;
|
|
5636
5636
|
while (j3 < regex.length && !matches) {
|
|
5637
5637
|
if (!regex[j3]) {
|
|
5638
5638
|
break;
|
|
@@ -5640,7 +5640,7 @@ var require_ua_parser = __commonJS({
|
|
|
5640
5640
|
matches = regex[j3++].exec(ua2);
|
|
5641
5641
|
if (!!matches) {
|
|
5642
5642
|
for (p2 = 0; p2 < props.length; p2++) {
|
|
5643
|
-
match17 = matches[++
|
|
5643
|
+
match17 = matches[++k3];
|
|
5644
5644
|
q3 = props[p2];
|
|
5645
5645
|
if (typeof q3 === OBJ_TYPE && q3.length > 0) {
|
|
5646
5646
|
if (q3.length === 2) {
|
|
@@ -8634,8 +8634,8 @@ var require_grammar = __commonJS({
|
|
|
8634
8634
|
var require_parser = __commonJS({
|
|
8635
8635
|
"../../node_modules/sdp-transform/lib/parser.js"(exports) {
|
|
8636
8636
|
init_define_process_env();
|
|
8637
|
-
var toIntIfInt = function(
|
|
8638
|
-
return String(Number(
|
|
8637
|
+
var toIntIfInt = function(v2) {
|
|
8638
|
+
return String(Number(v2)) === v2 ? Number(v2) : v2;
|
|
8639
8639
|
};
|
|
8640
8640
|
var attachProperties = function(match17, location, names, rawName) {
|
|
8641
8641
|
if (rawName && !names) {
|
|
@@ -8871,10 +8871,10 @@ var require_react_is_production_min = __commonJS({
|
|
|
8871
8871
|
var c3 = b3 ? Symbol.for("react.element") : 60103;
|
|
8872
8872
|
var d3 = b3 ? Symbol.for("react.portal") : 60106;
|
|
8873
8873
|
var e = b3 ? Symbol.for("react.fragment") : 60107;
|
|
8874
|
-
var
|
|
8874
|
+
var f3 = b3 ? Symbol.for("react.strict_mode") : 60108;
|
|
8875
8875
|
var g2 = b3 ? Symbol.for("react.profiler") : 60114;
|
|
8876
8876
|
var h2 = b3 ? Symbol.for("react.provider") : 60109;
|
|
8877
|
-
var
|
|
8877
|
+
var k3 = b3 ? Symbol.for("react.context") : 60110;
|
|
8878
8878
|
var l2 = b3 ? Symbol.for("react.async_mode") : 60111;
|
|
8879
8879
|
var m2 = b3 ? Symbol.for("react.concurrent_mode") : 60111;
|
|
8880
8880
|
var n2 = b3 ? Symbol.for("react.forward_ref") : 60112;
|
|
@@ -8882,7 +8882,7 @@ var require_react_is_production_min = __commonJS({
|
|
|
8882
8882
|
var q3 = b3 ? Symbol.for("react.suspense_list") : 60120;
|
|
8883
8883
|
var r2 = b3 ? Symbol.for("react.memo") : 60115;
|
|
8884
8884
|
var t2 = b3 ? Symbol.for("react.lazy") : 60116;
|
|
8885
|
-
var
|
|
8885
|
+
var v2 = b3 ? Symbol.for("react.block") : 60121;
|
|
8886
8886
|
var w2 = b3 ? Symbol.for("react.fundamental") : 60117;
|
|
8887
8887
|
var x2 = b3 ? Symbol.for("react.responder") : 60118;
|
|
8888
8888
|
var y3 = b3 ? Symbol.for("react.scope") : 60119;
|
|
@@ -8896,12 +8896,12 @@ var require_react_is_production_min = __commonJS({
|
|
|
8896
8896
|
case m2:
|
|
8897
8897
|
case e:
|
|
8898
8898
|
case g2:
|
|
8899
|
-
case
|
|
8899
|
+
case f3:
|
|
8900
8900
|
case p2:
|
|
8901
8901
|
return a11;
|
|
8902
8902
|
default:
|
|
8903
8903
|
switch (a11 = a11 && a11.$$typeof, a11) {
|
|
8904
|
-
case
|
|
8904
|
+
case k3:
|
|
8905
8905
|
case n2:
|
|
8906
8906
|
case t2:
|
|
8907
8907
|
case r2:
|
|
@@ -8921,7 +8921,7 @@ var require_react_is_production_min = __commonJS({
|
|
|
8921
8921
|
}
|
|
8922
8922
|
exports.AsyncMode = l2;
|
|
8923
8923
|
exports.ConcurrentMode = m2;
|
|
8924
|
-
exports.ContextConsumer =
|
|
8924
|
+
exports.ContextConsumer = k3;
|
|
8925
8925
|
exports.ContextProvider = h2;
|
|
8926
8926
|
exports.Element = c3;
|
|
8927
8927
|
exports.ForwardRef = n2;
|
|
@@ -8930,14 +8930,14 @@ var require_react_is_production_min = __commonJS({
|
|
|
8930
8930
|
exports.Memo = r2;
|
|
8931
8931
|
exports.Portal = d3;
|
|
8932
8932
|
exports.Profiler = g2;
|
|
8933
|
-
exports.StrictMode =
|
|
8933
|
+
exports.StrictMode = f3;
|
|
8934
8934
|
exports.Suspense = p2;
|
|
8935
8935
|
exports.isAsyncMode = function(a11) {
|
|
8936
8936
|
return A3(a11) || z3(a11) === l2;
|
|
8937
8937
|
};
|
|
8938
8938
|
exports.isConcurrentMode = A3;
|
|
8939
8939
|
exports.isContextConsumer = function(a11) {
|
|
8940
|
-
return z3(a11) ===
|
|
8940
|
+
return z3(a11) === k3;
|
|
8941
8941
|
};
|
|
8942
8942
|
exports.isContextProvider = function(a11) {
|
|
8943
8943
|
return z3(a11) === h2;
|
|
@@ -8964,13 +8964,13 @@ var require_react_is_production_min = __commonJS({
|
|
|
8964
8964
|
return z3(a11) === g2;
|
|
8965
8965
|
};
|
|
8966
8966
|
exports.isStrictMode = function(a11) {
|
|
8967
|
-
return z3(a11) ===
|
|
8967
|
+
return z3(a11) === f3;
|
|
8968
8968
|
};
|
|
8969
8969
|
exports.isSuspense = function(a11) {
|
|
8970
8970
|
return z3(a11) === p2;
|
|
8971
8971
|
};
|
|
8972
8972
|
exports.isValidElementType = function(a11) {
|
|
8973
|
-
return "string" === typeof a11 || "function" === typeof a11 || a11 === e || a11 === m2 || a11 === g2 || a11 ===
|
|
8973
|
+
return "string" === typeof a11 || "function" === typeof a11 || a11 === e || a11 === m2 || a11 === g2 || a11 === f3 || a11 === p2 || a11 === q3 || "object" === typeof a11 && null !== a11 && (a11.$$typeof === t2 || a11.$$typeof === r2 || a11.$$typeof === h2 || a11.$$typeof === k3 || a11.$$typeof === n2 || a11.$$typeof === w2 || a11.$$typeof === x2 || a11.$$typeof === y3 || a11.$$typeof === v2);
|
|
8974
8974
|
};
|
|
8975
8975
|
exports.typeOf = z3;
|
|
8976
8976
|
}
|
|
@@ -12134,12 +12134,12 @@ var formatBytes = (bytes, unit = "B", decimals = 2) => {
|
|
|
12134
12134
|
if (!bytes) {
|
|
12135
12135
|
return "-";
|
|
12136
12136
|
}
|
|
12137
|
-
const
|
|
12137
|
+
const k3 = 1024;
|
|
12138
12138
|
const dm2 = decimals < 0 ? 0 : decimals;
|
|
12139
12139
|
const sizes = ["", "K", "M", "G", "T", "P", "E", "Z", "Y"].map((size) => size + unit);
|
|
12140
|
-
let i2 = Math.floor(Math.log(bytes) / Math.log(
|
|
12140
|
+
let i2 = Math.floor(Math.log(bytes) / Math.log(k3));
|
|
12141
12141
|
i2 === 0 && i2++;
|
|
12142
|
-
return `${parseFloat((bytes / Math.pow(
|
|
12142
|
+
return `${parseFloat((bytes / Math.pow(k3, i2)).toFixed(dm2))} ${sizes[i2]}`;
|
|
12143
12143
|
};
|
|
12144
12144
|
|
|
12145
12145
|
// src/Stats/StyledStats.tsx
|
|
@@ -18208,11 +18208,11 @@ function shimOnTrack(window2) {
|
|
|
18208
18208
|
get() {
|
|
18209
18209
|
return this._ontrack;
|
|
18210
18210
|
},
|
|
18211
|
-
set(
|
|
18211
|
+
set(f3) {
|
|
18212
18212
|
if (this._ontrack) {
|
|
18213
18213
|
this.removeEventListener("track", this._ontrack);
|
|
18214
18214
|
}
|
|
18215
|
-
this.addEventListener("track", this._ontrack =
|
|
18215
|
+
this.addEventListener("track", this._ontrack = f3);
|
|
18216
18216
|
},
|
|
18217
18217
|
enumerable: true,
|
|
18218
18218
|
configurable: true
|
|
@@ -19195,12 +19195,12 @@ function shimRemoteStreamsAPI(window2) {
|
|
|
19195
19195
|
get() {
|
|
19196
19196
|
return this._onaddstream;
|
|
19197
19197
|
},
|
|
19198
|
-
set(
|
|
19198
|
+
set(f3) {
|
|
19199
19199
|
if (this._onaddstream) {
|
|
19200
19200
|
this.removeEventListener("addstream", this._onaddstream);
|
|
19201
19201
|
this.removeEventListener("track", this._onaddstreampoly);
|
|
19202
19202
|
}
|
|
19203
|
-
this.addEventListener("addstream", this._onaddstream =
|
|
19203
|
+
this.addEventListener("addstream", this._onaddstream = f3);
|
|
19204
19204
|
this.addEventListener("track", this._onaddstreampoly = (e) => {
|
|
19205
19205
|
e.streams.forEach((stream) => {
|
|
19206
19206
|
if (!this._remoteStreams) {
|
|
@@ -20012,14 +20012,14 @@ function M(n2, r2, t2) {
|
|
|
20012
20012
|
}
|
|
20013
20013
|
return e.o;
|
|
20014
20014
|
}
|
|
20015
|
-
function A(e, i2, o2, a11, c3, s2,
|
|
20015
|
+
function A(e, i2, o2, a11, c3, s2, v2) {
|
|
20016
20016
|
if ("production" !== define_process_env_default.NODE_ENV && c3 === o2 && n(5), r(c3)) {
|
|
20017
20017
|
var p2 = M(e, c3, s2 && i2 && 3 !== i2.i && !u(i2.R, a11) ? s2.concat(a11) : void 0);
|
|
20018
20018
|
if (f(o2, a11, p2), !r(p2))
|
|
20019
20019
|
return;
|
|
20020
20020
|
e.m = false;
|
|
20021
20021
|
} else
|
|
20022
|
-
|
|
20022
|
+
v2 && o2.add(c3);
|
|
20023
20023
|
if (t(c3) && !y(c3)) {
|
|
20024
20024
|
if (!e.h.D && e._ < 1)
|
|
20025
20025
|
return;
|
|
@@ -20052,8 +20052,8 @@ function N(n2, r2, t2) {
|
|
|
20052
20052
|
var e = s(r2) ? b("MapSet").F(r2, t2) : v(r2) ? b("MapSet").T(r2, t2) : n2.O ? function(n3, r3) {
|
|
20053
20053
|
var t3 = Array.isArray(n3), e2 = { i: t3 ? 1 : 0, A: r3 ? r3.A : _(), P: false, I: false, R: {}, l: r3, t: n3, k: null, o: null, j: null, C: false }, i2 = e2, o2 = en;
|
|
20054
20054
|
t3 && (i2 = [e2], o2 = on);
|
|
20055
|
-
var u2 = Proxy.revocable(i2, o2), a11 = u2.revoke,
|
|
20056
|
-
return e2.k =
|
|
20055
|
+
var u2 = Proxy.revocable(i2, o2), a11 = u2.revoke, f3 = u2.proxy;
|
|
20056
|
+
return e2.k = f3, e2.j = a11, f3;
|
|
20057
20057
|
}(r2, t2) : b("ES5").J(r2, t2);
|
|
20058
20058
|
return (t2 ? t2.A : _()).p.push(e), e;
|
|
20059
20059
|
}
|
|
@@ -20186,26 +20186,26 @@ var un = function() {
|
|
|
20186
20186
|
});
|
|
20187
20187
|
};
|
|
20188
20188
|
}
|
|
20189
|
-
var
|
|
20189
|
+
var f3;
|
|
20190
20190
|
if ("function" != typeof i3 && n(6), void 0 !== o2 && "function" != typeof o2 && n(7), t(r3)) {
|
|
20191
|
-
var c3 = w(e2), s2 = N(e2, r3, void 0),
|
|
20191
|
+
var c3 = w(e2), s2 = N(e2, r3, void 0), v2 = true;
|
|
20192
20192
|
try {
|
|
20193
|
-
|
|
20193
|
+
f3 = i3(s2), v2 = false;
|
|
20194
20194
|
} finally {
|
|
20195
|
-
|
|
20195
|
+
v2 ? g(c3) : O(c3);
|
|
20196
20196
|
}
|
|
20197
|
-
return "undefined" != typeof Promise &&
|
|
20197
|
+
return "undefined" != typeof Promise && f3 instanceof Promise ? f3.then(function(n2) {
|
|
20198
20198
|
return j(c3, o2), P3(n2, c3);
|
|
20199
20199
|
}, function(n2) {
|
|
20200
20200
|
throw g(c3), n2;
|
|
20201
|
-
}) : (j(c3, o2), P3(
|
|
20201
|
+
}) : (j(c3, o2), P3(f3, c3));
|
|
20202
20202
|
}
|
|
20203
20203
|
if (!r3 || "object" != typeof r3) {
|
|
20204
|
-
if (void 0 === (
|
|
20204
|
+
if (void 0 === (f3 = i3(r3)) && (f3 = r3), f3 === H && (f3 = void 0), e2.D && d(f3, true), o2) {
|
|
20205
20205
|
var p2 = [], l2 = [];
|
|
20206
|
-
b("Patches").M(r3,
|
|
20206
|
+
b("Patches").M(r3, f3, p2, l2), o2(p2, l2);
|
|
20207
20207
|
}
|
|
20208
|
-
return
|
|
20208
|
+
return f3;
|
|
20209
20209
|
}
|
|
20210
20210
|
n(21, r3);
|
|
20211
20211
|
}, this.produceWithPatches = function(n2, r3) {
|
|
@@ -20380,7 +20380,7 @@ var c2 = (a11, e, t2) => new Promise((i2, r2) => {
|
|
|
20380
20380
|
n2((t2 = t2.apply(a11, e)).next());
|
|
20381
20381
|
});
|
|
20382
20382
|
var Mr = Xa((Fc, no) => {
|
|
20383
|
-
no.exports = { version: "0.12.14-alpha.
|
|
20383
|
+
no.exports = { version: "0.12.14-alpha.11", license: "MIT", repository: { type: "git", url: "https://github.com/100mslive/web-sdks.git", directory: "packages/hms-video-store" }, main: "dist/index.cjs.js", module: "dist/index.js", typings: "dist/index.d.ts", files: ["dist", "src"], engines: { node: ">=12" }, exports: { ".": { require: "./dist/index.cjs.js", import: "./dist/index.js", default: "./dist/index.js" } }, sideEffects: false, scripts: { prestart: "rm -rf dist && yarn types:build", start: 'concurrently "yarn dev" "yarn types"', dev: "node ../../scripts/dev", "build:only": "node ../../scripts/build", build: "yarn build:only && yarn types:build", types: "tsc -w", "types:build": "tsc -p tsconfig.json", format: "prettier --write src/**/*.ts", test: "jest --maxWorkers=1", "test:watch": "jest --watch", "test:coverage": "jest --coverage", lint: "eslint -c ../../.eslintrc .", "lint:fix": "yarn lint --fix", prepare: "yarn build", size: "size-limit", analyze: "size-limit --why", docs: "rm -rf ./docs && typedoc && rm -f ./docs/README.md && mkdir ./docs/home &&mv ./docs/modules.md ./docs/home/content.md && node ../../scripts/docs-store && npx prettier --write './docs/**/*'" }, name: "@100mslive/hms-video-store", author: "100ms", dependencies: { eventemitter2: "^6.4.9", immer: "^9.0.6", "lodash.isequal": "^4.5.0", reselect: "4.0.0", "sdp-transform": "^2.14.1", "ua-parser-js": "^1.0.1", uuid: "^8.3.2", "webrtc-adapter": "^8.0.0", zustand: "3.5.7" }, devDependencies: { "@types/dom-screen-wake-lock": "^1.0.1", "@types/lodash.isequal": "^4.5.8", "@types/sdp-transform": "^2.4.4", "@types/ua-parser-js": "^0.7.36", "@types/uuid": "^8.3.0", "jest-canvas-mock": "^2.3.1", "jsdom-worker": "^0.3.0", tslib: "^2.2.0" }, description: "@100mslive Core SDK which abstracts the complexities of webRTC while providing a reactive store for data management with a unidirectional data flow", keywords: ["video", "webrtc", "conferencing", "100ms"] };
|
|
20384
20384
|
});
|
|
20385
20385
|
var Sr = ((n2) => (n2.Disconnected = "Disconnected", n2.Preview = "Preview", n2.Connecting = "Connecting", n2.Connected = "Connected", n2.Reconnecting = "Reconnecting", n2.Disconnecting = "Disconnecting", n2.Failed = "Failed", n2))(Sr || {});
|
|
20386
20386
|
var ei = () => ({ room: { id: "", isConnected: false, name: "", peers: [], localPeer: "", roomState: "Disconnected", recording: { browser: { running: false }, server: { running: false }, hls: { running: false } }, rtmp: { running: false }, hls: { running: false, variants: [] }, sessionId: "" }, peers: {}, tracks: {}, playlist: { audio: { list: {}, selection: { id: "", hasPrevious: false, hasNext: false }, progress: 0, volume: 0, currentTime: 0, playbackRate: 1 }, video: { list: {}, selection: { id: "", hasPrevious: false, hasNext: false }, progress: 0, volume: 0, currentTime: 0, playbackRate: 1 } }, messages: { byID: {}, allIDs: [] }, speakers: {}, connectionQualities: {}, settings: { audioInputDeviceId: "", audioOutputDeviceId: "", videoInputDeviceId: "" }, devices: { audioInput: [], audioOutput: [], videoInput: [] }, roles: {}, roleChangeRequests: [], errors: [], sessionStore: {}, templateAppData: {}, polls: {}, whiteboards: {}, hideLocalPeer: false });
|
|
@@ -20632,8 +20632,8 @@ function so() {
|
|
|
20632
20632
|
return "CUSTOM";
|
|
20633
20633
|
}
|
|
20634
20634
|
var Qe = so();
|
|
20635
|
-
var
|
|
20636
|
-
var
|
|
20635
|
+
var k2 = { WebSocketConnectionErrors: { FAILED_TO_CONNECT: 1e3, WEBSOCKET_CONNECTION_LOST: 1003, ABNORMAL_CLOSE: 1006 }, APIErrors: { SERVER_ERRORS: 2e3, INIT_CONFIG_NOT_AVAILABLE: 2002, ENDPOINT_UNREACHABLE: 2003, INVALID_TOKEN_FORMAT: 2004 }, TracksErrors: { GENERIC_TRACK: 3e3, CANT_ACCESS_CAPTURE_DEVICE: 3001, DEVICE_NOT_AVAILABLE: 3002, DEVICE_IN_USE: 3003, DEVICE_LOST_MIDWAY: 3004, NOTHING_TO_RETURN: 3005, INVALID_VIDEO_SETTINGS: 3006, CODEC_CHANGE_NOT_PERMITTED: 3007, AUTOPLAY_ERROR: 3008, OVER_CONSTRAINED: 3009, NO_AUDIO_DETECTED: 3010, SYSTEM_DENIED_PERMISSION: 3011, CURRENT_TAB_NOT_SHARED: 3012, AUDIO_PLAYBACK_ERROR: 3013, SELECTED_DEVICE_MISSING: 3014 }, WebrtcErrors: { CREATE_OFFER_FAILED: 4001, CREATE_ANSWER_FAILED: 4002, SET_LOCAL_DESCRIPTION_FAILED: 4003, SET_REMOTE_DESCRIPTION_FAILED: 4004, ICE_FAILURE: 4005, ICE_DISCONNECTED: 4006, STATS_FAILED: 4007 }, WebsocketMethodErrors: { SERVER_ERRORS: 5e3, ALREADY_JOINED: 5001, CANNOT_JOIN_PREVIEW_IN_PROGRESS: 5002 }, GenericErrors: { NOT_CONNECTED: 6e3, SIGNALLING: 6001, UNKNOWN: 6002, NOT_READY: 6003, JSON_PARSING_FAILED: 6004, TRACK_METADATA_MISSING: 6005, RTC_TRACK_MISSING: 6006, PEER_METADATA_MISSING: 6007, INVALID_ROLE: 6008, PREVIEW_IN_PROGRESS: 6009, MISSING_MEDIADEVICES: 6010, MISSING_RTCPEERCONNECTION: 6011, LOCAL_STORAGE_ACCESS_DENIED: 6012, VALIDATION_FAILED: 6013 }, PlaylistErrors: { NO_ENTRY_TO_PLAY: 8001, NO_ENTRY_IS_PLAYING: 8002 } };
|
|
20636
|
+
var f2 = class a2 extends Error {
|
|
20637
20637
|
constructor(t2, i2, r2, s2, o2, n2 = false) {
|
|
20638
20638
|
super(s2);
|
|
20639
20639
|
this.code = t2;
|
|
@@ -20678,111 +20678,111 @@ function fr(a11) {
|
|
|
20678
20678
|
}
|
|
20679
20679
|
var ao = ["join", "offer", "answer", "trickle", "on-error", "JOIN"];
|
|
20680
20680
|
var S2 = { WebSocketConnectionErrors: { FailedToConnect(a11, e = "") {
|
|
20681
|
-
return new
|
|
20681
|
+
return new f2(k2.WebSocketConnectionErrors.FAILED_TO_CONNECT, "WebsocketFailedToConnect", a11, `[WS]: ${e}`, `[WS]: ${e}`);
|
|
20682
20682
|
}, WebSocketConnectionLost(a11, e = "") {
|
|
20683
|
-
return new
|
|
20683
|
+
return new f2(k2.WebSocketConnectionErrors.WEBSOCKET_CONNECTION_LOST, "WebSocketConnectionLost", a11, "Network connection lost", e);
|
|
20684
20684
|
}, AbnormalClose(a11, e = "") {
|
|
20685
|
-
return new
|
|
20685
|
+
return new f2(k2.WebSocketConnectionErrors.ABNORMAL_CLOSE, "WebSocketAbnormalClose", a11, "Websocket closed abnormally", e);
|
|
20686
20686
|
} }, APIErrors: { ServerErrors(a11, e, t2 = "", i2 = true) {
|
|
20687
|
-
return new
|
|
20687
|
+
return new f2(a11, "ServerErrors", e, `[${e}]: Server error ${t2}`, t2, i2);
|
|
20688
20688
|
}, EndpointUnreachable(a11, e = "") {
|
|
20689
|
-
return new
|
|
20689
|
+
return new f2(k2.APIErrors.ENDPOINT_UNREACHABLE, "EndpointUnreachable", a11, `Endpoint is not reachable - ${e}`, e);
|
|
20690
20690
|
}, InvalidTokenFormat(a11, e = "") {
|
|
20691
|
-
return new
|
|
20691
|
+
return new f2(k2.APIErrors.INVALID_TOKEN_FORMAT, "InvalidTokenFormat", a11, `Token is not in proper JWT format - ${e}`, e, true);
|
|
20692
20692
|
}, InitConfigNotAvailable(a11, e = "") {
|
|
20693
|
-
return new
|
|
20693
|
+
return new f2(k2.APIErrors.INIT_CONFIG_NOT_AVAILABLE, "InitError", a11, `[INIT]: ${e}`, `[INIT]: ${e}`);
|
|
20694
20694
|
} }, TracksErrors: { GenericTrack(a11, e = "") {
|
|
20695
|
-
return new
|
|
20695
|
+
return new f2(k2.TracksErrors.GENERIC_TRACK, "GenericTrack", a11, `[TRACK]: ${e}`, `[TRACK]: ${e}`);
|
|
20696
20696
|
}, CantAccessCaptureDevice(a11, e, t2 = "") {
|
|
20697
|
-
return new
|
|
20697
|
+
return new f2(k2.TracksErrors.CANT_ACCESS_CAPTURE_DEVICE, "CantAccessCaptureDevice", a11, `User denied permission to access capture device - ${e}`, t2);
|
|
20698
20698
|
}, DeviceNotAvailable(a11, e, t2 = "") {
|
|
20699
|
-
return new
|
|
20699
|
+
return new f2(k2.TracksErrors.DEVICE_NOT_AVAILABLE, "DeviceNotAvailable", a11, `[TRACK]: Capture device is no longer available - ${e}`, t2);
|
|
20700
20700
|
}, DeviceInUse(a11, e, t2 = "") {
|
|
20701
|
-
return new
|
|
20701
|
+
return new f2(k2.TracksErrors.DEVICE_IN_USE, "DeviceInUse", a11, `[TRACK]: Capture device is in use by another application - ${e}`, t2);
|
|
20702
20702
|
}, DeviceLostMidway(a11, e, t2 = "") {
|
|
20703
|
-
return new
|
|
20703
|
+
return new f2(k2.TracksErrors.DEVICE_LOST_MIDWAY, "DeviceLostMidway", a11, `Lost access to capture device midway - ${e}`, t2);
|
|
20704
20704
|
}, NothingToReturn(a11, e = "", t2 = "There is no media to return. Please select either video or audio or both.") {
|
|
20705
|
-
return new
|
|
20705
|
+
return new f2(k2.TracksErrors.NOTHING_TO_RETURN, "NothingToReturn", a11, t2, e);
|
|
20706
20706
|
}, InvalidVideoSettings(a11, e = "") {
|
|
20707
|
-
return new
|
|
20707
|
+
return new f2(k2.TracksErrors.INVALID_VIDEO_SETTINGS, "InvalidVideoSettings", a11, "Cannot enable simulcast when no video settings are provided", e);
|
|
20708
20708
|
}, AutoplayBlocked(a11, e = "") {
|
|
20709
|
-
return new
|
|
20709
|
+
return new f2(k2.TracksErrors.AUTOPLAY_ERROR, "AutoplayBlocked", a11, "Autoplay blocked because the user didn't interact with the document first", e);
|
|
20710
20710
|
}, CodecChangeNotPermitted(a11, e = "") {
|
|
20711
|
-
return new
|
|
20711
|
+
return new f2(k2.TracksErrors.CODEC_CHANGE_NOT_PERMITTED, "CodecChangeNotPermitted", a11, "Codec can't be changed mid call.", e);
|
|
20712
20712
|
}, OverConstrained(a11, e, t2 = "") {
|
|
20713
|
-
return new
|
|
20713
|
+
return new f2(k2.TracksErrors.OVER_CONSTRAINED, "OverConstrained", a11, `[TRACK]: Requested constraints cannot be satisfied with the device hardware - ${e}`, t2);
|
|
20714
20714
|
}, NoAudioDetected(a11, e = "Please check the mic or use another audio input") {
|
|
20715
|
-
return new
|
|
20715
|
+
return new f2(k2.TracksErrors.NO_AUDIO_DETECTED, "NoAudioDetected", a11, "No audio input detected from microphone", e);
|
|
20716
20716
|
}, SystemDeniedPermission(a11, e, t2 = "") {
|
|
20717
|
-
return new
|
|
20717
|
+
return new f2(k2.TracksErrors.SYSTEM_DENIED_PERMISSION, "SystemDeniedPermission", a11, `Operating System denied permission to access capture device - ${e}`, t2);
|
|
20718
20718
|
}, CurrentTabNotShared() {
|
|
20719
|
-
return new
|
|
20719
|
+
return new f2(k2.TracksErrors.CURRENT_TAB_NOT_SHARED, "CurrentTabNotShared", "TRACK", "The app requires you to share the current tab", "You must screen share the current tab in order to proceed");
|
|
20720
20720
|
}, AudioPlaybackError(a11) {
|
|
20721
|
-
return new
|
|
20721
|
+
return new f2(k2.TracksErrors.AUDIO_PLAYBACK_ERROR, "Audio playback error", "TRACK", a11, a11);
|
|
20722
20722
|
}, SelectedDeviceMissing(a11) {
|
|
20723
|
-
return new
|
|
20723
|
+
return new f2(k2.TracksErrors.SELECTED_DEVICE_MISSING, "SelectedDeviceMissing", "TRACK", `Could not detect selected ${a11} device`, `Please check connection to the ${a11} device`, false);
|
|
20724
20724
|
} }, WebrtcErrors: { CreateOfferFailed(a11, e = "") {
|
|
20725
|
-
return new
|
|
20725
|
+
return new f2(k2.WebrtcErrors.CREATE_OFFER_FAILED, "CreateOfferFailed", a11, `[${a11.toString()}]: Failed to create offer. `, e);
|
|
20726
20726
|
}, CreateAnswerFailed(a11, e = "") {
|
|
20727
|
-
return new
|
|
20727
|
+
return new f2(k2.WebrtcErrors.CREATE_ANSWER_FAILED, "CreateAnswerFailed", a11, `[${a11.toString()}]: Failed to create answer. `, e);
|
|
20728
20728
|
}, SetLocalDescriptionFailed(a11, e = "") {
|
|
20729
|
-
return new
|
|
20729
|
+
return new f2(k2.WebrtcErrors.SET_LOCAL_DESCRIPTION_FAILED, "SetLocalDescriptionFailed", a11, `[${a11.toString()}]: Failed to set offer. `, e);
|
|
20730
20730
|
}, SetRemoteDescriptionFailed(a11, e = "") {
|
|
20731
|
-
return new
|
|
20731
|
+
return new f2(k2.WebrtcErrors.SET_REMOTE_DESCRIPTION_FAILED, "SetRemoteDescriptionFailed", a11, `[${a11.toString()}]: Failed to set answer. `, e, true);
|
|
20732
20732
|
}, ICEFailure(a11, e = "", t2 = false) {
|
|
20733
|
-
return new
|
|
20733
|
+
return new f2(k2.WebrtcErrors.ICE_FAILURE, "ICEFailure", a11, `[${a11.toString()}]: Ice connection state FAILED`, e, t2);
|
|
20734
20734
|
}, ICEDisconnected(a11, e = "") {
|
|
20735
|
-
return new
|
|
20735
|
+
return new f2(k2.WebrtcErrors.ICE_DISCONNECTED, "ICEDisconnected", a11, `[${a11.toString()}]: Ice connection state DISCONNECTED`, e);
|
|
20736
20736
|
}, StatsFailed(a11, e = "") {
|
|
20737
|
-
return new
|
|
20737
|
+
return new f2(k2.WebrtcErrors.STATS_FAILED, "StatsFailed", a11, `Failed to WebRTC get stats - ${e}`, e);
|
|
20738
20738
|
} }, WebsocketMethodErrors: { ServerErrors(a11, e, t2) {
|
|
20739
|
-
return new
|
|
20739
|
+
return new f2(a11, "ServerErrors", e, t2, t2, ao.includes(e));
|
|
20740
20740
|
}, AlreadyJoined(a11, e = "") {
|
|
20741
|
-
return new
|
|
20741
|
+
return new f2(k2.WebsocketMethodErrors.ALREADY_JOINED, "AlreadyJoined", a11, "[JOIN]: You have already joined this room.", e);
|
|
20742
20742
|
}, CannotJoinPreviewInProgress(a11, e = "") {
|
|
20743
|
-
return new
|
|
20743
|
+
return new f2(k2.WebsocketMethodErrors.CANNOT_JOIN_PREVIEW_IN_PROGRESS, "CannotJoinPreviewInProgress", a11, "[JOIN]: Cannot join if preview is in progress", e);
|
|
20744
20744
|
} }, GenericErrors: { NotConnected(a11, e = "") {
|
|
20745
|
-
return new
|
|
20745
|
+
return new f2(k2.GenericErrors.NOT_CONNECTED, "NotConnected", a11, "Client is not connected", e);
|
|
20746
20746
|
}, Signalling(a11, e) {
|
|
20747
|
-
return new
|
|
20747
|
+
return new f2(k2.GenericErrors.SIGNALLING, "Signalling", a11, `Unknown signalling error: ${a11.toString()} ${e} `, e);
|
|
20748
20748
|
}, Unknown(a11, e) {
|
|
20749
|
-
return new
|
|
20749
|
+
return new f2(k2.GenericErrors.UNKNOWN, "Unknown", a11, `Unknown exception: ${e}`, e);
|
|
20750
20750
|
}, NotReady(a11, e = "") {
|
|
20751
|
-
return new
|
|
20751
|
+
return new f2(k2.GenericErrors.NOT_READY, "NotReady", a11, e, e);
|
|
20752
20752
|
}, JsonParsingFailed(a11, e, t2 = "") {
|
|
20753
|
-
return new
|
|
20753
|
+
return new f2(k2.GenericErrors.JSON_PARSING_FAILED, "JsonParsingFailed", a11, `Failed to parse JSON message - ${e}`, t2);
|
|
20754
20754
|
}, TrackMetadataMissing(a11, e = "") {
|
|
20755
|
-
return new
|
|
20755
|
+
return new f2(k2.GenericErrors.TRACK_METADATA_MISSING, "TrackMetadataMissing", a11, "Track Metadata Missing", e);
|
|
20756
20756
|
}, RTCTrackMissing(a11, e = "") {
|
|
20757
|
-
return new
|
|
20757
|
+
return new f2(k2.GenericErrors.RTC_TRACK_MISSING, "RTCTrackMissing", a11, "RTC Track missing", e);
|
|
20758
20758
|
}, PeerMetadataMissing(a11, e = "") {
|
|
20759
|
-
return new
|
|
20759
|
+
return new f2(k2.GenericErrors.PEER_METADATA_MISSING, "PeerMetadataMissing", a11, "Peer Metadata Missing", e);
|
|
20760
20760
|
}, ValidationFailed(a11, e) {
|
|
20761
|
-
return new
|
|
20761
|
+
return new f2(k2.GenericErrors.VALIDATION_FAILED, "ValidationFailed", "VALIDATION", a11, e ? JSON.stringify(e) : "");
|
|
20762
20762
|
}, InvalidRole(a11, e) {
|
|
20763
|
-
return new
|
|
20763
|
+
return new f2(k2.GenericErrors.INVALID_ROLE, "InvalidRole", a11, "Invalid role. Join with valid role", e, true);
|
|
20764
20764
|
}, PreviewAlreadyInProgress(a11, e = "") {
|
|
20765
|
-
return new
|
|
20765
|
+
return new f2(k2.GenericErrors.PREVIEW_IN_PROGRESS, "PreviewAlreadyInProgress", a11, "[Preview]: Cannot join if preview is in progress", e);
|
|
20766
20766
|
}, LocalStorageAccessDenied(a11 = "Access to localStorage has been denied") {
|
|
20767
|
-
return new
|
|
20767
|
+
return new f2(k2.GenericErrors.LOCAL_STORAGE_ACCESS_DENIED, "LocalStorageAccessDenied", "NONE", "LocalStorageAccessDenied", a11);
|
|
20768
20768
|
}, MissingMediaDevices() {
|
|
20769
|
-
return new
|
|
20769
|
+
return new f2(k2.GenericErrors.MISSING_MEDIADEVICES, "MissingMediaDevices", "JOIN", "navigator.mediaDevices is undefined. 100ms SDK won't work on this website as WebRTC is not supported on HTTP endpoints(missing navigator.mediaDevices). Please ensure you're using the SDK either on localhost or a valid HTTPS endpoint.", "", true);
|
|
20770
20770
|
}, MissingRTCPeerConnection() {
|
|
20771
|
-
return new
|
|
20771
|
+
return new f2(k2.GenericErrors.MISSING_RTCPEERCONNECTION, "MissingRTCPeerConnection", "JOIN", "RTCPeerConnection which is a core requirement for WebRTC call was not found, this could be due to an unsupported browser or browser extensions blocking WebRTC", "", true);
|
|
20772
20772
|
} }, MediaPluginErrors: { PlatformNotSupported(a11, e = "") {
|
|
20773
|
-
return new
|
|
20773
|
+
return new f2(7001, "PlatformNotSupported", a11, "Check HMS Docs to see the list of supported platforms", e);
|
|
20774
20774
|
}, InitFailed(a11, e = "") {
|
|
20775
|
-
return new
|
|
20775
|
+
return new f2(7002, "InitFailed", a11, "Plugin init failed", e);
|
|
20776
20776
|
}, ProcessingFailed(a11, e = "") {
|
|
20777
|
-
return new
|
|
20777
|
+
return new f2(7003, "ProcessingFailed", a11, "Plugin processing failed", e);
|
|
20778
20778
|
}, AddAlreadyInProgress(a11, e = "") {
|
|
20779
|
-
return new
|
|
20779
|
+
return new f2(7004, "AddAlreadyInProgress", a11, "Plugin add already in progress", e);
|
|
20780
20780
|
}, DeviceNotSupported(a11, e = "") {
|
|
20781
|
-
return new
|
|
20781
|
+
return new f2(7005, "DeviceNotSupported", a11, "Check HMS Docs to see the list of supported devices", e);
|
|
20782
20782
|
} }, PlaylistErrors: { NoEntryToPlay(a11, e) {
|
|
20783
|
-
return new
|
|
20783
|
+
return new f2(k2.PlaylistErrors.NO_ENTRY_TO_PLAY, "NoEntryToPlay", a11, "Reached end of playlist", e);
|
|
20784
20784
|
}, NoEntryPlaying(a11, e) {
|
|
20785
|
-
return new
|
|
20785
|
+
return new f2(k2.PlaylistErrors.NO_ENTRY_IS_PLAYING, "NoEntryIsPlaying", a11, "No entry is playing at this time", e);
|
|
20786
20786
|
} } };
|
|
20787
20787
|
var vr = class {
|
|
20788
20788
|
constructor() {
|
|
@@ -20977,7 +20977,7 @@ var y2 = class {
|
|
|
20977
20977
|
return e = m(m({}, i2), e), e;
|
|
20978
20978
|
}
|
|
20979
20979
|
static getErrorProperties(e) {
|
|
20980
|
-
return e ? e instanceof
|
|
20980
|
+
return e ? e instanceof f2 ? e.toAnalyticsProperties() : { error_name: e.name, error_message: e.message, error_description: e.cause } : {};
|
|
20981
20981
|
}
|
|
20982
20982
|
};
|
|
20983
20983
|
y2.KEY_REQUESTED_AT = "requested_at", y2.KEY_RESPONDED_AT = "responded_at";
|
|
@@ -22354,7 +22354,6 @@ var ve = class a5 {
|
|
|
22354
22354
|
}
|
|
22355
22355
|
getTracksToPublish() {
|
|
22356
22356
|
return c2(this, arguments, function* (e = Cr) {
|
|
22357
|
-
var T, g2, f2, P7;
|
|
22358
22357
|
let t2 = this.getAVTrackSettings(e);
|
|
22359
22358
|
if (!t2)
|
|
22360
22359
|
return [];
|
|
@@ -22362,13 +22361,13 @@ var ve = class a5 {
|
|
|
22362
22361
|
if (u2 && p2)
|
|
22363
22362
|
return [];
|
|
22364
22363
|
let h2 = { audio: i2 && !n2 && (e.isAudioMuted ? "empty" : true), video: r2 && !o2 && (e.isVideoMuted ? "empty" : true) };
|
|
22365
|
-
h2.audio &&
|
|
22364
|
+
h2.audio && this.analyticsTimer.start("local_audio_track_time"), h2.video && this.analyticsTimer.start("local_video_track_time");
|
|
22366
22365
|
try {
|
|
22367
22366
|
d2.d(this.TAG, "Init Local Tracks", { fetchTrackOptions: h2 }), s2 = yield this.getLocalTracks(h2, t2, l2);
|
|
22368
|
-
} catch (
|
|
22369
|
-
s2 = yield this.retryGetLocalTracks(
|
|
22367
|
+
} catch (T) {
|
|
22368
|
+
s2 = yield this.retryGetLocalTracks(T, t2, h2, l2);
|
|
22370
22369
|
}
|
|
22371
|
-
return h2.audio &&
|
|
22370
|
+
return h2.audio && this.analyticsTimer.end("local_audio_track_time"), h2.video && this.analyticsTimer.end("local_video_track_time"), o2 && r2 && !u2 && s2.push(o2), n2 && i2 && !p2 && s2.push(n2), s2;
|
|
22372
22371
|
});
|
|
22373
22372
|
}
|
|
22374
22373
|
getLocalTracks() {
|
|
@@ -22399,8 +22398,8 @@ var ve = class a5 {
|
|
|
22399
22398
|
r2.srcObject = e, r2.addEventListener("loadedmetadata", () => c2(this, null, function* () {
|
|
22400
22399
|
let { videoWidth: l2, videoHeight: u2 } = r2, p2 = i2.screen, h2 = p2.width * p2.height, T = l2 / u2, g2 = p2.width / p2.height;
|
|
22401
22400
|
if (T > g2) {
|
|
22402
|
-
let
|
|
22403
|
-
l2 * u2 > h2 ? (
|
|
22401
|
+
let v2 = t2.video, E2 = T / g2, P7 = Math.sqrt(E2);
|
|
22402
|
+
l2 * u2 > h2 ? (v2.width = l2 / P7, v2.height = u2 / P7) : (v2.height = u2 * P7, v2.width = l2 * P7), yield e.getVideoTracks()[0].applyConstraints(v2);
|
|
22404
22403
|
}
|
|
22405
22404
|
}));
|
|
22406
22405
|
});
|
|
@@ -22418,8 +22417,8 @@ var ve = class a5 {
|
|
|
22418
22417
|
d2.d("retrieving screenshare with ", { config: i2 }, { constraints: s2 }), o2 = yield navigator.mediaDevices.getDisplayMedia(s2), t2 && (yield this.optimizeScreenShareConstraint(o2, s2));
|
|
22419
22418
|
} catch (g2) {
|
|
22420
22419
|
d2.w(this.TAG, "error in getting screenshare - ", g2);
|
|
22421
|
-
let
|
|
22422
|
-
throw this.eventBus.analytics.publish(y2.publish({ error:
|
|
22420
|
+
let v2 = Ae(g2, "screen");
|
|
22421
|
+
throw this.eventBus.analytics.publish(y2.publish({ error: v2, devices: this.deviceManager.getDevices(), settings: new ze(r2 == null ? void 0 : r2.video, r2 == null ? void 0 : r2.audio, false) })), v2;
|
|
22423
22422
|
}
|
|
22424
22423
|
let n2 = [], l2 = new Ge(o2), u2 = o2.getVideoTracks()[0], p2 = new F(l2, u2, "screen", this.eventBus, r2 == null ? void 0 : r2.video, this.store.getRoom());
|
|
22425
22424
|
p2.setSimulcastDefinitons(this.store.getSimulcastDefinitionsForPeer(this.store.getLocalPeer(), "screen"));
|
|
@@ -22427,7 +22426,7 @@ var ve = class a5 {
|
|
|
22427
22426
|
let g2 = this.validateCurrentTabCapture(p2, i2.forceCurrentTab);
|
|
22428
22427
|
p2.isCurrentTab = g2, yield p2.cropTo(i2.cropTarget);
|
|
22429
22428
|
} catch (g2) {
|
|
22430
|
-
throw o2.getTracks().forEach((
|
|
22429
|
+
throw o2.getTracks().forEach((v2) => v2.stop()), g2;
|
|
22431
22430
|
}
|
|
22432
22431
|
n2.push(p2);
|
|
22433
22432
|
let h2 = o2.getAudioTracks()[0];
|
|
@@ -22501,16 +22500,16 @@ var ve = class a5 {
|
|
|
22501
22500
|
}
|
|
22502
22501
|
retryGetLocalTracks(e, t2, i2, r2) {
|
|
22503
22502
|
return c2(this, null, function* () {
|
|
22504
|
-
if (e instanceof
|
|
22503
|
+
if (e instanceof f2 && e.action === "TRACK") {
|
|
22505
22504
|
this.observer.onFailure(e);
|
|
22506
|
-
let s2 = e.code ===
|
|
22505
|
+
let s2 = e.code === k2.TracksErrors.OVER_CONSTRAINED, o2 = e.message.includes("audio"), n2 = e.message.includes("video");
|
|
22507
22506
|
if (s2) {
|
|
22508
22507
|
let l2 = new De().video(new Fe()).audio(new Ve()).build();
|
|
22509
22508
|
d2.w(this.TAG, "Fetch AV Tracks failed with overconstrained error", { fetchTrackOptions: i2 }, { error: e });
|
|
22510
22509
|
try {
|
|
22511
22510
|
return yield this.getLocalTracks(i2, l2, r2);
|
|
22512
22511
|
} catch (u2) {
|
|
22513
|
-
let p2 = u2 instanceof
|
|
22512
|
+
let p2 = u2 instanceof f2 ? u2.nativeError : u2, h2 = u2;
|
|
22514
22513
|
if ((p2 == null ? void 0 : p2.name) === "OverconstrainedError") {
|
|
22515
22514
|
let T = S2.TracksErrors.GenericTrack("TRACK", "Overconstrained error after dropping all constraints");
|
|
22516
22515
|
T.addNativeError(p2), h2 = T;
|
|
@@ -23047,11 +23046,11 @@ var Ks = (a11, e, t2, i2) => c2(void 0, null, function* () {
|
|
|
23047
23046
|
break;
|
|
23048
23047
|
}
|
|
23049
23048
|
}), Object.keys(m({}, l2)).forEach((p2) => {
|
|
23050
|
-
var
|
|
23051
|
-
let h2 = (
|
|
23049
|
+
var P7, w2;
|
|
23050
|
+
let h2 = (P7 = l2[p2]) == null ? void 0 : P7.codecId, T = h2 ? n2[h2] : void 0, g2;
|
|
23052
23051
|
T && (g2 = T.substring(T.indexOf("/") + 1));
|
|
23053
|
-
let
|
|
23054
|
-
s2[p2] = M2(m({},
|
|
23052
|
+
let v2 = M2(m({}, l2[p2]), { rid: (w2 = l2[p2]) == null ? void 0 : w2.rid }), E2 = u2[v2.ssrc];
|
|
23053
|
+
s2[p2] = M2(m({}, v2), { bitrate: Pt("bytesSent", v2, i2 == null ? void 0 : i2[p2]), packetsLost: E2 == null ? void 0 : E2.packetsLost, jitter: E2 == null ? void 0 : E2.jitter, roundTripTime: E2 == null ? void 0 : E2.roundTripTime, totalRoundTripTime: E2 == null ? void 0 : E2.totalRoundTripTime, peerName: t2, peerID: e.peerId, enabled: e.enabled, codec: g2 });
|
|
23055
23054
|
});
|
|
23056
23055
|
} catch (n2) {
|
|
23057
23056
|
a11.analytics.publish(y2.rtcStatsFailed(S2.WebrtcErrors.StatsFailed("TRACK", `Error getting local track stats ${e.trackId} - ${n2.message}`))), d2.w("[HMSWebrtcStats]", "Error in getting local track stats", e, n2, n2.name);
|
|
@@ -23135,20 +23134,20 @@ var ui = class {
|
|
|
23135
23134
|
yield this.updateLocalPeerStats(), yield this.updateLocalTrackStats(), yield this.updateRemoteTrackStats();
|
|
23136
23135
|
});
|
|
23137
23136
|
this.updateLocalPeerStats = () => c2(this, null, function* () {
|
|
23138
|
-
var p2, h2, T, g2,
|
|
23137
|
+
var p2, h2, T, g2, v2, E2;
|
|
23139
23138
|
let e2 = this.getLocalPeerStats(), t3;
|
|
23140
23139
|
try {
|
|
23141
23140
|
t3 = yield (h2 = (p2 = this.getStats).publish) == null ? void 0 : h2.call(p2);
|
|
23142
|
-
} catch (
|
|
23143
|
-
this.eventBus.analytics.publish(y2.rtcStatsFailed(S2.WebrtcErrors.StatsFailed("PUBLISH",
|
|
23141
|
+
} catch (P7) {
|
|
23142
|
+
this.eventBus.analytics.publish(y2.rtcStatsFailed(S2.WebrtcErrors.StatsFailed("PUBLISH", P7.message))), d2.w(this.TAG, "Error in getting publish stats", P7);
|
|
23144
23143
|
}
|
|
23145
23144
|
let i3 = t3 && Or("publish", t3, e2), r3;
|
|
23146
23145
|
try {
|
|
23147
23146
|
r3 = yield (g2 = (T = this.getStats).subscribe) == null ? void 0 : g2.call(T);
|
|
23148
|
-
} catch (
|
|
23149
|
-
this.eventBus.analytics.publish(y2.rtcStatsFailed(S2.WebrtcErrors.StatsFailed("SUBSCRIBE",
|
|
23147
|
+
} catch (P7) {
|
|
23148
|
+
this.eventBus.analytics.publish(y2.rtcStatsFailed(S2.WebrtcErrors.StatsFailed("SUBSCRIBE", P7.message))), d2.w(this.TAG, "Error in getting subscribe stats", P7);
|
|
23150
23149
|
}
|
|
23151
|
-
let s2 = r3 && Or("subscribe", r3, e2), { packetsLost: o2, jitter: n2 } = js(r3), l2 = xr(o2, (
|
|
23150
|
+
let s2 = r3 && Or("subscribe", r3, e2), { packetsLost: o2, jitter: n2 } = js(r3), l2 = xr(o2, (v2 = e2 == null ? void 0 : e2.subscribe) == null ? void 0 : v2.packetsLost, s2 == null ? void 0 : s2.timestamp, (E2 = e2 == null ? void 0 : e2.subscribe) == null ? void 0 : E2.timestamp), u2 = s2 && Object.assign(s2, { packetsLostRate: l2, jitter: n2, packetsLost: o2 });
|
|
23152
23151
|
this.peerStats[this.localPeerID] = { publish: i3, subscribe: u2 };
|
|
23153
23152
|
});
|
|
23154
23153
|
this.updateRemoteTrackStats = () => c2(this, null, function* () {
|
|
@@ -24634,30 +24633,30 @@ var Ai = class {
|
|
|
24634
24633
|
}
|
|
24635
24634
|
handleStatsUpdate(e) {
|
|
24636
24635
|
return c2(this, null, function* () {
|
|
24637
|
-
var n2, l2, u2, p2, h2, T, g2,
|
|
24636
|
+
var n2, l2, u2, p2, h2, T, g2, v2;
|
|
24638
24637
|
let t2 = e.getLocalPeerStats();
|
|
24639
24638
|
t2 && this.peerStatsList.push(t2);
|
|
24640
24639
|
let i2 = (u2 = (l2 = (n2 = this.sdk.getLocalPeer()) == null ? void 0 : n2.audioTrack) == null ? void 0 : l2.nativeTrack) == null ? void 0 : u2.id, r2 = (T = (h2 = (p2 = this.sdk.getLocalPeer()) == null ? void 0 : p2.videoTrack) == null ? void 0 : h2.nativeTrack) == null ? void 0 : T.id, s2 = e.getLocalTrackStats();
|
|
24641
24640
|
s2 && (i2 && this.localAudioTrackStatsList.push(s2[i2]), r2 && this.localVideoTrackStatsList.push(s2[r2]));
|
|
24642
|
-
let o2 = yield (
|
|
24643
|
-
o2 == null || o2.forEach((
|
|
24644
|
-
if (
|
|
24645
|
-
let
|
|
24646
|
-
|
|
24641
|
+
let o2 = yield (v2 = (g2 = this.sdk.getWebrtcInternals()) == null ? void 0 : g2.getSubscribePeerConnection()) == null ? void 0 : v2.getStats();
|
|
24642
|
+
o2 == null || o2.forEach((E2) => {
|
|
24643
|
+
if (E2.type === "inbound-rtp") {
|
|
24644
|
+
let P7 = E2.kind === "audio" ? this.remoteAudioTrackStatsList : this.remoteVideoTrackStatsList, w2 = Pt("bytesReceived", E2, de(P7));
|
|
24645
|
+
P7.push(M2(m({}, E2), { bitrate: w2 }));
|
|
24647
24646
|
}
|
|
24648
24647
|
});
|
|
24649
24648
|
});
|
|
24650
24649
|
}
|
|
24651
24650
|
buildReport() {
|
|
24652
|
-
var T, g2,
|
|
24653
|
-
let e = (T = de(this.peerStatsList)) == null ? void 0 : T.publish, t2 = (g2 = de(this.peerStatsList)) == null ? void 0 : g2.subscribe, i2 = e != null && e.responsesReceived ? ((e == null ? void 0 : e.totalRoundTripTime) || 0) / e.responsesReceived : 0, r2 = t2 != null && t2.responsesReceived ? ((t2 == null ? void 0 : t2.totalRoundTripTime) || 0) / t2.responsesReceived : 0, s2 = Number(((i2 + r2) / 2 * 1e3).toFixed(2)), o2 = ((
|
|
24651
|
+
var T, g2, v2, E2, P7, w2, Oe, Xt;
|
|
24652
|
+
let e = (T = de(this.peerStatsList)) == null ? void 0 : T.publish, t2 = (g2 = de(this.peerStatsList)) == null ? void 0 : g2.subscribe, i2 = e != null && e.responsesReceived ? ((e == null ? void 0 : e.totalRoundTripTime) || 0) / e.responsesReceived : 0, r2 = t2 != null && t2.responsesReceived ? ((t2 == null ? void 0 : t2.totalRoundTripTime) || 0) / t2.responsesReceived : 0, s2 = Number(((i2 + r2) / 2 * 1e3).toFixed(2)), o2 = ((v2 = de(this.remoteAudioTrackStatsList)) == null ? void 0 : v2.packetsReceived) || 0, n2 = ((E2 = de(this.remoteVideoTrackStatsList)) == null ? void 0 : E2.packetsReceived) || 0, l2 = this.localAudioTrackStatsList.map((x2) => x2 ? Ne(Object.values(x2), ($) => $.bitrate) : 0), u2 = this.localVideoTrackStatsList.map((x2) => x2 ? Ne(Object.values(x2), ($) => $.bitrate) : 0), p2 = de(this.localAudioTrackStatsList), h2 = de(this.localVideoTrackStatsList);
|
|
24654
24653
|
return { combined: { roundTripTime: s2, packetsReceived: o2 + n2, packetsLost: (t2 == null ? void 0 : t2.packetsLost) || 0, bytesSent: (e == null ? void 0 : e.bytesSent) || 0, bytesReceived: (t2 == null ? void 0 : t2.bytesReceived) || 0, bitrateSent: Ne(this.peerStatsList, (x2) => {
|
|
24655
24654
|
var $;
|
|
24656
24655
|
return ($ = x2.publish) == null ? void 0 : $.bitrate;
|
|
24657
24656
|
}), bitrateReceived: Ne(this.peerStatsList, (x2) => {
|
|
24658
24657
|
var $;
|
|
24659
24658
|
return ($ = x2.subscribe) == null ? void 0 : $.bitrate;
|
|
24660
|
-
}) }, audio: { roundTripTime: s2, packetsReceived: o2, packetsLost: ((
|
|
24659
|
+
}) }, audio: { roundTripTime: s2, packetsReceived: o2, packetsLost: ((P7 = de(this.remoteAudioTrackStatsList)) == null ? void 0 : P7.packetsLost) || 0, bytesReceived: ((w2 = de(this.remoteAudioTrackStatsList)) == null ? void 0 : w2.bytesReceived) || 0, bitrateSent: Ne(l2, (x2) => x2), bitrateReceived: Ne(this.remoteAudioTrackStatsList, (x2) => x2.bitrate), bytesSent: p2 ? Object.values(p2).reduce((x2, $) => x2 + ($.bytesSent || 0), 0) : 0 }, video: { roundTripTime: s2, packetsLost: ((Oe = de(this.remoteVideoTrackStatsList)) == null ? void 0 : Oe.packetsLost) || 0, bytesReceived: ((Xt = de(this.remoteVideoTrackStatsList)) == null ? void 0 : Xt.bytesReceived) || 0, packetsReceived: n2, bitrateSent: Ne(u2, (x2) => x2), bitrateReceived: Ne(this.remoteVideoTrackStatsList, (x2) => x2.bitrate), bytesSent: h2 ? Object.values(h2).reduce((x2, $) => x2 + ($.bytesSent || 0), 0) : 0 } };
|
|
24661
24660
|
}
|
|
24662
24661
|
};
|
|
24663
24662
|
var sn2 = ((n2) => (n2[n2.STARTING = 0] = "STARTING", n2[n2.INIT_FETCHED = 1] = "INIT_FETCHED", n2[n2.SIGNAL_CONNECTED = 2] = "SIGNAL_CONNECTED", n2[n2.ICE_ESTABLISHED = 3] = "ICE_ESTABLISHED", n2[n2.MEDIA_CAPTURED = 4] = "MEDIA_CAPTURED", n2[n2.MEDIA_PUBLISHED = 5] = "MEDIA_PUBLISHED", n2[n2.COMPLETED = 6] = "COMPLETED", n2))(sn2 || {});
|
|
@@ -24856,9 +24855,9 @@ var Dt = class {
|
|
|
24856
24855
|
this.mediaRecorder.ondataavailable = function(g2) {
|
|
24857
24856
|
n2.push(g2.data);
|
|
24858
24857
|
}, this.mediaRecorder.onstop = () => {
|
|
24859
|
-
var
|
|
24860
|
-
let g2 = new Blob(n2, { type: (
|
|
24861
|
-
this.recordedAudio = URL.createObjectURL(g2), (
|
|
24858
|
+
var v2, E2;
|
|
24859
|
+
let g2 = new Blob(n2, { type: (v2 = this.mediaRecorder) == null ? void 0 : v2.mimeType });
|
|
24860
|
+
this.recordedAudio = URL.createObjectURL(g2), (E2 = this.onStopMicCheck) == null || E2.call(this);
|
|
24862
24861
|
}, this.mediaRecorder.start();
|
|
24863
24862
|
let l2 = setTimeout(() => {
|
|
24864
24863
|
this.stopMicCheck();
|
|
@@ -25555,26 +25554,26 @@ var Li = class {
|
|
|
25555
25554
|
e = `${e}_fullSync`, b2.time(`store-sync-${e}`);
|
|
25556
25555
|
let t2 = {}, i2 = [], r2 = {}, s2 = {}, o2 = {}, n2, l2 = this.sdk.getPeers();
|
|
25557
25556
|
for (let g2 of l2) {
|
|
25558
|
-
let
|
|
25559
|
-
t2[
|
|
25560
|
-
let
|
|
25561
|
-
for (let
|
|
25562
|
-
if (!
|
|
25557
|
+
let v2 = _2.convertPeer(g2);
|
|
25558
|
+
t2[v2.id] = v2, i2.push(v2.id), o2[v2.id] = { peerID: v2.id, downlinkQuality: g2.networkQuality || -1 };
|
|
25559
|
+
let E2 = [g2.audioTrack, g2.videoTrack, ...g2.auxiliaryTracks];
|
|
25560
|
+
for (let P7 of E2) {
|
|
25561
|
+
if (!P7)
|
|
25563
25562
|
continue;
|
|
25564
|
-
let w2 = _2.convertTrack(
|
|
25563
|
+
let w2 = _2.convertTrack(P7);
|
|
25565
25564
|
r2[w2.id] = w2;
|
|
25566
25565
|
}
|
|
25567
25566
|
if (g2.isLocal) {
|
|
25568
|
-
let
|
|
25569
|
-
n2 = this.getPreviewFields(
|
|
25567
|
+
let P7 = g2;
|
|
25568
|
+
n2 = this.getPreviewFields(P7), Object.assign(s2, this.getMediaSettings(P7));
|
|
25570
25569
|
}
|
|
25571
25570
|
}
|
|
25572
25571
|
let u2 = this.sdk.getRecordingState(), p2 = this.sdk.getRTMPState(), h2 = this.sdk.getHLSState(), T = this.sdk.getTranscriptionState();
|
|
25573
25572
|
this.setState((g2) => {
|
|
25574
|
-
var
|
|
25573
|
+
var P7;
|
|
25575
25574
|
g2.room.peers = i2;
|
|
25576
|
-
let
|
|
25577
|
-
ba(
|
|
25575
|
+
let v2 = g2.peers, E2 = g2.tracks;
|
|
25576
|
+
ba(v2, t2), Ra(E2, r2), Object.assign(g2.settings, s2), g2.room.isConnected && Object.assign(g2.connectionQualities, o2), (P7 = g2.preview) != null && P7.localPeer && (n2 != null && n2.localPeer) ? Object.assign(g2.preview, n2) : g2.preview = n2, Object.assign(g2.roles, _2.convertRoles(this.sdk.getRoles())), Object.assign(g2.playlist, _2.convertPlaylist(this.sdk.getPlaylistManager())), Object.assign(g2.room, _2.convertRecordingStreamingState(u2, p2, h2, T)), Object.assign(g2.templateAppData, this.sdk.getTemplateAppData());
|
|
25578
25577
|
}, e), b2.timeEnd(`store-sync-${e}`);
|
|
25579
25578
|
}
|
|
25580
25579
|
onPreview(e) {
|
|
@@ -25703,7 +25702,7 @@ var Li = class {
|
|
|
25703
25702
|
i2.room.roomState = "Failed", i2.errors.push(t2);
|
|
25704
25703
|
}, "errorTerminal")) : this.store.getState().errors.length < 50 && this.setState((r2) => {
|
|
25705
25704
|
r2.errors.push(t2);
|
|
25706
|
-
}, "error"), this.syncRoomState("errorSync"), this.hmsNotifications.sendError(t2), b2.e("received error from sdk", t2 instanceof
|
|
25705
|
+
}, "error"), this.syncRoomState("errorSync"), this.hmsNotifications.sendError(t2), b2.e("received error from sdk", t2 instanceof f2 ? `${t2}` : t2);
|
|
25707
25706
|
}
|
|
25708
25707
|
handleTrackRemove(e, t2) {
|
|
25709
25708
|
this.setState((i2) => {
|
|
@@ -25865,8 +25864,8 @@ var wi = class {
|
|
|
25865
25864
|
try {
|
|
25866
25865
|
let g2 = false;
|
|
25867
25866
|
for (; !g2; ) {
|
|
25868
|
-
let { value:
|
|
25869
|
-
g2 =
|
|
25867
|
+
let { value: v2, done: E2 } = yield h2.read();
|
|
25868
|
+
g2 = E2, v2 && (n2 += v2.byteLength, this.sendScore({ scoreMap: r2, downloadedSize: n2, startTime: o2 }));
|
|
25870
25869
|
}
|
|
25871
25870
|
} catch (g2) {
|
|
25872
25871
|
g2.name !== "AbortError" && d2.d(this.TAG, g2);
|
|
@@ -25912,8 +25911,8 @@ var wt = class {
|
|
|
25912
25911
|
r3 && (yield this.diffRolesAndPublishTracks({ oldRole: e2, newRole: t3 }), (s3 = this.listener) == null || s3.onPeerUpdate(8, r3));
|
|
25913
25912
|
});
|
|
25914
25913
|
this.diffRolesAndPublishTracks = (i3) => c2(this, [i3], function* ({ oldRole: e2, newRole: t3 }) {
|
|
25915
|
-
var g2,
|
|
25916
|
-
let r3 = new Set(e2.publishParams.allowed), s3 = new Set(t3.publishParams.allowed), o3 = this.removeTrack(r3, s3, "video"), n2 = this.removeTrack(r3, s3, "audio"), l2 = this.removeTrack(r3, s3, "screen"), u2 = this.hasSimulcastDifference((g2 = e2.publishParams.simulcast) == null ? void 0 : g2.video, (
|
|
25914
|
+
var g2, v2, E2, P7, w2, Oe;
|
|
25915
|
+
let r3 = new Set(e2.publishParams.allowed), s3 = new Set(t3.publishParams.allowed), o3 = this.removeTrack(r3, s3, "video"), n2 = this.removeTrack(r3, s3, "audio"), l2 = this.removeTrack(r3, s3, "screen"), u2 = this.hasSimulcastDifference((g2 = e2.publishParams.simulcast) == null ? void 0 : g2.video, (v2 = t3.publishParams.simulcast) == null ? void 0 : v2.video), p2 = this.hasSimulcastDifference((E2 = e2.publishParams.simulcast) == null ? void 0 : E2.screen, (P7 = t3.publishParams.simulcast) == null ? void 0 : P7.screen), h2 = (Oe = (w2 = this.store.getLocalPeer()) == null ? void 0 : w2.videoTrack) == null ? void 0 : Oe.enabled;
|
|
25917
25916
|
yield this.removeAudioTrack(n2), yield this.removeVideoTracks(o3 || u2), yield this.removeScreenTracks(l2 || p2);
|
|
25918
25917
|
let T = this.getSettings();
|
|
25919
25918
|
u2 && (T.isVideoMuted = !h2), yield this.publish(T), yield this.syncDevices(T, t3);
|
|
@@ -27299,8 +27298,8 @@ var Vt = class {
|
|
|
27299
27298
|
var h2, T;
|
|
27300
27299
|
let p2 = (h2 = e == null ? void 0 : e.questions) == null ? void 0 : h2.find((g2) => g2.index === n2.question);
|
|
27301
27300
|
if (p2) {
|
|
27302
|
-
let g2 = { id: n2.response_id, questionIndex: n2.question, option: n2.option, options: n2.options, text: n2.text, responseFinal: u2, peer: { peerid: l2.peerid, userHash: l2.hash, userid: l2.userid, username: l2.username }, skipped: n2.skipped, type: n2.type, update: n2.update },
|
|
27303
|
-
(T = r2.questions) != null && T[n2.question - 1] && (r2.questions[n2.question - 1].responses = [...
|
|
27301
|
+
let g2 = { id: n2.response_id, questionIndex: n2.question, option: n2.option, options: n2.options, text: n2.text, responseFinal: u2, peer: { peerid: l2.peerid, userHash: l2.hash, userid: l2.userid, username: l2.username }, skipped: n2.skipped, type: n2.type, update: n2.update }, v2 = p2.responses && !t2 ? [...p2.responses] : [];
|
|
27302
|
+
(T = r2.questions) != null && T[n2.question - 1] && (r2.questions[n2.question - 1].responses = [...v2, g2]);
|
|
27304
27303
|
}
|
|
27305
27304
|
}), this.store.setPoll(r2), (o2 = this.listener) == null || o2.onPollsUpdate(4, [r2]);
|
|
27306
27305
|
});
|
|
@@ -27315,9 +27314,9 @@ var Vt = class {
|
|
|
27315
27314
|
}
|
|
27316
27315
|
for (let l2 of r2) {
|
|
27317
27316
|
let u2 = yield this.transport.signal.getPollQuestions({ poll_id: l2.poll_id, index: 0, count: 50 }), p2 = qi(l2), h2 = this.store.getPoll(l2.poll_id);
|
|
27318
|
-
p2.questions = u2.questions.map(({ question: T, options: g2, answer:
|
|
27319
|
-
var
|
|
27320
|
-
return M2(m({}, T), { options: g2, answer:
|
|
27317
|
+
p2.questions = u2.questions.map(({ question: T, options: g2, answer: v2 }, E2) => {
|
|
27318
|
+
var P7, w2;
|
|
27319
|
+
return M2(m({}, T), { options: g2, answer: v2, responses: (w2 = (P7 = h2 == null ? void 0 : h2.questions) == null ? void 0 : P7[E2]) == null ? void 0 : w2.responses });
|
|
27321
27320
|
}), t2.push(p2), this.store.setPoll(p2);
|
|
27322
27321
|
}
|
|
27323
27322
|
return (n2 = this.listener) == null || n2.onPollsUpdate(3, t2), t2;
|
|
@@ -27651,7 +27650,7 @@ var Qi = class {
|
|
|
27651
27650
|
toSdkError(e) {
|
|
27652
27651
|
if (!(e != null && e.code))
|
|
27653
27652
|
return;
|
|
27654
|
-
let t2 = e.message || "error in streaming/recording", i2 = new
|
|
27653
|
+
let t2 = e.message || "error in streaming/recording", i2 = new f2(e.code, "ServerErrors", "NONE", t2, t2);
|
|
27655
27654
|
return d2.e(this.TAG, "error in streaming/recording", i2), i2;
|
|
27656
27655
|
}
|
|
27657
27656
|
};
|
|
@@ -27867,18 +27866,18 @@ var rr = class {
|
|
|
27867
27866
|
d2.d(this.TAG, `schedule: Already a task for ${j2[e]} scheduled, waiting for its completion`), yield g2.promise;
|
|
27868
27867
|
return;
|
|
27869
27868
|
}
|
|
27870
|
-
let
|
|
27869
|
+
let v2 = new ir((E2, P7) => {
|
|
27871
27870
|
});
|
|
27872
|
-
this.inProgress.set(e,
|
|
27871
|
+
this.inProgress.set(e, v2), this.sendEvent(t2, e);
|
|
27873
27872
|
}
|
|
27874
27873
|
let u2 = false, p2 = Na[e];
|
|
27875
27874
|
for (let g2 in p2) {
|
|
27876
|
-
let
|
|
27875
|
+
let v2 = p2[parseInt(g2)];
|
|
27877
27876
|
try {
|
|
27878
|
-
let
|
|
27879
|
-
|
|
27880
|
-
} catch (
|
|
27881
|
-
d2.d(this.TAG, `schedule: Stopping retry task of ${j2[e]} as it's dependency ${j2[
|
|
27877
|
+
let E2 = this.inProgress.get(v2);
|
|
27878
|
+
E2 && (d2.d(this.TAG, `schedule: Suspending retry task of ${j2[e]}, waiting for ${j2[v2]} to recover`), yield E2.promise, d2.d(this.TAG, `schedule: Resuming retry task ${j2[e]} as it's dependency ${j2[v2]} is recovered`));
|
|
27879
|
+
} catch (E2) {
|
|
27880
|
+
d2.d(this.TAG, `schedule: Stopping retry task of ${j2[e]} as it's dependency ${j2[v2]} failed to recover`), u2 = true;
|
|
27882
27881
|
break;
|
|
27883
27882
|
}
|
|
27884
27883
|
}
|
|
@@ -28087,16 +28086,16 @@ var Gt = class extends ct {
|
|
|
28087
28086
|
Object.keys(r2).forEach((s2) => {
|
|
28088
28087
|
let o2 = r2[s2], n2 = this.store.getLocalPeerTracks().find((l2) => l2.getTrackIDBeingSent() === s2);
|
|
28089
28088
|
Object.keys(o2).forEach((l2) => {
|
|
28090
|
-
var g2,
|
|
28089
|
+
var g2, v2, E2;
|
|
28091
28090
|
let u2 = o2[l2];
|
|
28092
28091
|
if (!n2)
|
|
28093
28092
|
return;
|
|
28094
|
-
let p2 = this.getTrackIdentifier(n2.trackId, u2), h2 = M2(m({}, u2), { availableOutgoingBitrate: (
|
|
28093
|
+
let p2 = this.getTrackIdentifier(n2.trackId, u2), h2 = M2(m({}, u2), { availableOutgoingBitrate: (v2 = (g2 = t2.getLocalPeerStats()) == null ? void 0 : g2.publish) == null ? void 0 : v2.availableOutgoingBitrate });
|
|
28095
28094
|
if (p2 && this.trackAnalytics.has(p2))
|
|
28096
|
-
(
|
|
28095
|
+
(E2 = this.trackAnalytics.get(p2)) == null || E2.pushTempStat(h2);
|
|
28097
28096
|
else if (n2) {
|
|
28098
|
-
let
|
|
28099
|
-
|
|
28097
|
+
let P7 = new zr({ track: n2, sampleWindowSize: this.sampleWindowSize, rid: u2.rid, ssrc: u2.ssrc.toString(), kind: u2.kind });
|
|
28098
|
+
P7.pushTempStat(h2), this.trackAnalytics.set(this.getTrackIdentifier(n2.trackId, u2), P7);
|
|
28100
28099
|
}
|
|
28101
28100
|
let T = this.trackAnalytics.get(p2);
|
|
28102
28101
|
T != null && T.shouldCreateSample() && (i2 = true);
|
|
@@ -28140,20 +28139,20 @@ var Wt = class extends ct {
|
|
|
28140
28139
|
handleStatsUpdate(t2) {
|
|
28141
28140
|
let i2 = t2.getAllRemoteTracksStats(), r2 = false;
|
|
28142
28141
|
Object.keys(i2).forEach((s2) => {
|
|
28143
|
-
var
|
|
28144
|
-
let o2 = this.store.getTrackById(s2), n2 = i2[s2], l2 = (
|
|
28145
|
-
let Oe = (w2 == null ? void 0 : w2.jitterBufferDelay) || 0, Xt = (w2 == null ? void 0 : w2.jitterBufferEmittedCount) || 0, x2 = ((
|
|
28142
|
+
var v2, E2;
|
|
28143
|
+
let o2 = this.store.getTrackById(s2), n2 = i2[s2], l2 = (v2 = this.trackAnalytics.get(s2)) == null ? void 0 : v2.getLatestStat(), p2 = ((P7, w2) => {
|
|
28144
|
+
let Oe = (w2 == null ? void 0 : w2.jitterBufferDelay) || 0, Xt = (w2 == null ? void 0 : w2.jitterBufferEmittedCount) || 0, x2 = ((P7 == null ? void 0 : P7.jitterBufferDelay) || 0) - Oe, $ = ((P7 == null ? void 0 : P7.jitterBufferEmittedCount) || 0) - Xt;
|
|
28146
28145
|
return $ > 0 ? x2 * 1e3 / $ : (w2 == null ? void 0 : w2.calculatedJitterBufferDelay) || 0;
|
|
28147
28146
|
})(n2, l2), h2 = this.calculateAvSyncForStat(n2, t2), T = M2(m({}, n2), { calculatedJitterBufferDelay: p2, avSync: h2 });
|
|
28148
28147
|
if (n2.kind === "video") {
|
|
28149
|
-
let
|
|
28150
|
-
T.expectedFrameHeight =
|
|
28148
|
+
let P7 = o2.getPreferredLayerDefinition();
|
|
28149
|
+
T.expectedFrameHeight = P7 == null ? void 0 : P7.resolution.height, T.expectedFrameWidth = P7 == null ? void 0 : P7.resolution.width;
|
|
28151
28150
|
}
|
|
28152
28151
|
if (this.trackAnalytics.has(s2))
|
|
28153
|
-
(
|
|
28152
|
+
(E2 = this.trackAnalytics.get(s2)) == null || E2.pushTempStat(T);
|
|
28154
28153
|
else if (o2) {
|
|
28155
|
-
let
|
|
28156
|
-
|
|
28154
|
+
let P7 = new Xr({ track: o2, sampleWindowSize: this.sampleWindowSize, ssrc: n2.ssrc.toString(), kind: n2.kind });
|
|
28155
|
+
P7.pushTempStat(T), this.trackAnalytics.set(s2, P7);
|
|
28157
28156
|
}
|
|
28158
28157
|
let g2 = this.trackAnalytics.get(s2);
|
|
28159
28158
|
g2 != null && g2.shouldCreateSample() && (r2 = true);
|
|
@@ -28503,7 +28502,7 @@ var Jt = class {
|
|
|
28503
28502
|
return this.handleError(u2, p2), d2.d(ur, `config is ${JSON.stringify(p2, null, 2)}`), pn2(p2, o2);
|
|
28504
28503
|
} catch (p2) {
|
|
28505
28504
|
let h2 = yield u2.text();
|
|
28506
|
-
throw d2.e(ur, "json error", p2.message, h2), p2 instanceof
|
|
28505
|
+
throw d2.e(ur, "json error", p2.message, h2), p2 instanceof f2 ? p2 : S2.APIErrors.ServerErrors(u2.status, "INIT", p2.message);
|
|
28507
28506
|
}
|
|
28508
28507
|
} catch (u2) {
|
|
28509
28508
|
let p2 = u2;
|
|
@@ -28570,7 +28569,7 @@ var Qt = class {
|
|
|
28570
28569
|
this.callbacks.set(i2, { resolve: n2, reject: l2, metadata: { method: e } });
|
|
28571
28570
|
});
|
|
28572
28571
|
} catch (o2) {
|
|
28573
|
-
if (o2 instanceof
|
|
28572
|
+
if (o2 instanceof f2)
|
|
28574
28573
|
throw o2;
|
|
28575
28574
|
let n2 = o2;
|
|
28576
28575
|
throw S2.WebsocketMethodErrors.ServerErrors(Number(n2.code), fr(e), n2.message);
|
|
@@ -28926,7 +28925,7 @@ var zt = class {
|
|
|
28926
28925
|
} catch (t3) {
|
|
28927
28926
|
d2.d(I2, "[role=SUBSCRIBE] onOffer renegotiation FAILED \u274C", t3), this.state = "Failed";
|
|
28928
28927
|
let i3;
|
|
28929
|
-
t3 instanceof
|
|
28928
|
+
t3 instanceof f2 ? i3 = t3 : i3 = S2.GenericErrors.Unknown("PUBLISH", t3.message), this.observer.onFailure(i3), this.eventBus.analytics.publish(y2.subscribeFail(i3));
|
|
28930
28929
|
}
|
|
28931
28930
|
}), onTrickle: (e2) => c2(this, null, function* () {
|
|
28932
28931
|
let t3 = e2.target === 0 ? this.publishConnection : this.subscribeConnection;
|
|
@@ -28974,8 +28973,8 @@ var zt = class {
|
|
|
28974
28973
|
}), onConnectionStateChange: (e2) => c2(this, null, function* () {
|
|
28975
28974
|
var i3, r3, s3, o3, n3, l3, u3, p3;
|
|
28976
28975
|
(e2 === "disconnected" ? d2.w.bind(d2) : d2.d.bind(d2))(I2, `Publish connection state change: ${e2}`), e2 === "connected" && ((i3 = this.connectivityListener) == null || i3.onICESuccess(true), (r3 = this.publishConnection) == null || r3.handleSelectedIceCandidatePairs()), e2 === "disconnected" && setTimeout(() => {
|
|
28977
|
-
var h2, T, g2,
|
|
28978
|
-
((h2 = this.publishConnection) == null ? void 0 : h2.connectionState) === "disconnected" && this.handleIceConnectionFailure(0, S2.WebrtcErrors.ICEDisconnected("PUBLISH", `local candidate - ${(
|
|
28976
|
+
var h2, T, g2, v2, E2, P7, w2;
|
|
28977
|
+
((h2 = this.publishConnection) == null ? void 0 : h2.connectionState) === "disconnected" && this.handleIceConnectionFailure(0, S2.WebrtcErrors.ICEDisconnected("PUBLISH", `local candidate - ${(v2 = (g2 = (T = this.publishConnection) == null ? void 0 : T.selectedCandidatePair) == null ? void 0 : g2.local) == null ? void 0 : v2.candidate}; remote candidate - ${(w2 = (P7 = (E2 = this.publishConnection) == null ? void 0 : E2.selectedCandidatePair) == null ? void 0 : P7.remote) == null ? void 0 : w2.candidate}`));
|
|
28979
28978
|
}, 5e3), e2 === "failed" && (yield this.handleIceConnectionFailure(0, S2.WebrtcErrors.ICEFailure("PUBLISH", `local candidate - ${(n3 = (o3 = (s3 = this.publishConnection) == null ? void 0 : s3.selectedCandidatePair) == null ? void 0 : o3.local) == null ? void 0 : n3.candidate}; remote candidate - ${(p3 = (u3 = (l3 = this.publishConnection) == null ? void 0 : l3.selectedCandidatePair) == null ? void 0 : u3.remote) == null ? void 0 : p3.candidate}`)));
|
|
28980
28979
|
}), onIceCandidate: (e2) => {
|
|
28981
28980
|
var t3;
|
|
@@ -28999,8 +28998,8 @@ var zt = class {
|
|
|
28999
28998
|
}), onConnectionStateChange: (e2) => c2(this, null, function* () {
|
|
29000
28999
|
var i3, r3, s3, o3, n3, l3;
|
|
29001
29000
|
(e2 === "disconnected" ? d2.w.bind(d2) : d2.d.bind(d2))(I2, `Subscribe connection state change: ${e2}`), e2 === "failed" && (yield this.handleIceConnectionFailure(1, S2.WebrtcErrors.ICEFailure("SUBSCRIBE", `local candidate - ${(s3 = (r3 = (i3 = this.subscribeConnection) == null ? void 0 : i3.selectedCandidatePair) == null ? void 0 : r3.local) == null ? void 0 : s3.candidate}; remote candidate - ${(l3 = (n3 = (o3 = this.subscribeConnection) == null ? void 0 : o3.selectedCandidatePair) == null ? void 0 : n3.remote) == null ? void 0 : l3.candidate}`))), e2 === "disconnected" && setTimeout(() => {
|
|
29002
|
-
var u3, p3, h2, T, g2,
|
|
29003
|
-
((u3 = this.subscribeConnection) == null ? void 0 : u3.connectionState) === "disconnected" && this.handleIceConnectionFailure(1, S2.WebrtcErrors.ICEDisconnected("SUBSCRIBE", `local candidate - ${(T = (h2 = (p3 = this.subscribeConnection) == null ? void 0 : p3.selectedCandidatePair) == null ? void 0 : h2.local) == null ? void 0 : T.candidate}; remote candidate - ${(
|
|
29001
|
+
var u3, p3, h2, T, g2, v2, E2;
|
|
29002
|
+
((u3 = this.subscribeConnection) == null ? void 0 : u3.connectionState) === "disconnected" && this.handleIceConnectionFailure(1, S2.WebrtcErrors.ICEDisconnected("SUBSCRIBE", `local candidate - ${(T = (h2 = (p3 = this.subscribeConnection) == null ? void 0 : p3.selectedCandidatePair) == null ? void 0 : h2.local) == null ? void 0 : T.candidate}; remote candidate - ${(E2 = (v2 = (g2 = this.subscribeConnection) == null ? void 0 : g2.selectedCandidatePair) == null ? void 0 : v2.remote) == null ? void 0 : E2.candidate}`));
|
|
29004
29003
|
}, 5e3), e2 === "connected" && this.handleSubscribeConnectionConnected();
|
|
29005
29004
|
}), onIceCandidate: (e2) => {
|
|
29006
29005
|
var t3;
|
|
@@ -29044,8 +29043,8 @@ var zt = class {
|
|
|
29044
29043
|
h2 !== this.state && (this.state = h2, yield this.observer.onStateChange(this.state, T));
|
|
29045
29044
|
});
|
|
29046
29045
|
this.retryScheduler = new rr(l2, this.sendErrorAnalyticsEvent.bind(this)), this.eventBus.statsUpdate.subscribe((h2) => {
|
|
29047
|
-
var g2,
|
|
29048
|
-
let T = ((
|
|
29046
|
+
var g2, v2;
|
|
29047
|
+
let T = ((v2 = (g2 = h2.getLocalPeerStats()) == null ? void 0 : g2.subscribe) == null ? void 0 : v2.bitrate) || 0;
|
|
29049
29048
|
this.maxSubscribeBitrate = Math.max(this.maxSubscribeBitrate, T);
|
|
29050
29049
|
}), this.eventBus.localAudioEnabled.subscribe(({ track: h2 }) => this.trackUpdate(h2)), this.eventBus.localVideoEnabled.subscribe(({ track: h2 }) => this.trackUpdate(h2));
|
|
29051
29050
|
}
|
|
@@ -29085,7 +29084,7 @@ var zt = class {
|
|
|
29085
29084
|
try {
|
|
29086
29085
|
return yield this.internalConnect(e, t2, i2, o2);
|
|
29087
29086
|
} catch (n2) {
|
|
29088
|
-
if (n2 instanceof
|
|
29087
|
+
if (n2 instanceof f2 && ([k2.WebSocketConnectionErrors.WEBSOCKET_CONNECTION_LOST, k2.WebSocketConnectionErrors.FAILED_TO_CONNECT, k2.WebSocketConnectionErrors.ABNORMAL_CLOSE, k2.APIErrors.ENDPOINT_UNREACHABLE].includes(n2.code) || n2.code.toString().startsWith("5") || n2.code.toString().startsWith("429"))) {
|
|
29089
29088
|
let u2 = () => c2(this, null, function* () {
|
|
29090
29089
|
return yield this.internalConnect(e, t2, i2, o2), !!(this.initConfig && this.initConfig.endpoint);
|
|
29091
29090
|
});
|
|
@@ -29187,7 +29186,7 @@ var zt = class {
|
|
|
29187
29186
|
yield this.negotiateJoin({ name: e, data: t2, autoSubscribeVideo: i2, isWebRTC: r2 });
|
|
29188
29187
|
} catch (o2) {
|
|
29189
29188
|
d2.e(I2, "Join negotiation failed \u274C", o2);
|
|
29190
|
-
let n2 = o2 instanceof
|
|
29189
|
+
let n2 = o2 instanceof f2 ? o2 : S2.WebsocketMethodErrors.ServerErrors(500, "JOIN", `Websocket join error - ${o2.message}`), l2 = parseInt(`${n2.code / 100}`) === 5 || [k2.WebSocketConnectionErrors.WEBSOCKET_CONNECTION_LOST, 429].includes(n2.code);
|
|
29191
29190
|
if (n2.code === 410 && (n2.isTerminal = true), l2) {
|
|
29192
29191
|
this.joinRetryCount = 0, n2.isTerminal = false;
|
|
29193
29192
|
let u2 = () => c2(this, null, function* () {
|
|
@@ -29253,7 +29252,7 @@ var zt = class {
|
|
|
29253
29252
|
this.callbacks.delete(et), d2.timeEnd("renegotiation-offer-exchange"), yield this.publishConnection.setRemoteDescription(r2), t2.promise.resolve(true), d2.d(I2, "[role=PUBLISH] onRenegotiationNeeded DONE \u2705");
|
|
29254
29253
|
} catch (i2) {
|
|
29255
29254
|
let r2;
|
|
29256
|
-
i2 instanceof
|
|
29255
|
+
i2 instanceof f2 ? r2 = i2 : r2 = S2.GenericErrors.Unknown("PUBLISH", i2.message), t2.promise.reject(r2), d2.d(I2, "[role=PUBLISH] onRenegotiationNeeded FAILED \u274C");
|
|
29257
29256
|
}
|
|
29258
29257
|
}
|
|
29259
29258
|
});
|
|
@@ -29353,7 +29352,7 @@ var zt = class {
|
|
|
29353
29352
|
}
|
|
29354
29353
|
getAdditionalAnalyticsProperties() {
|
|
29355
29354
|
var o2, n2, l2, u2, p2, h2, T, g2;
|
|
29356
|
-
let e = Va(), t2 = typeof document != "undefined" && document.hidden, i2 = this.store.getRemoteVideoTracks().filter((
|
|
29355
|
+
let e = Va(), t2 = typeof document != "undefined" && document.hidden, i2 = this.store.getRemoteVideoTracks().filter((v2) => v2.degraded).length, r2 = (u2 = (l2 = (n2 = (o2 = this.getWebrtcInternals()) == null ? void 0 : o2.getCurrentStats()) == null ? void 0 : n2.getLocalPeerStats()) == null ? void 0 : l2.publish) == null ? void 0 : u2.bitrate, s2 = (g2 = (T = (h2 = (p2 = this.getWebrtcInternals()) == null ? void 0 : p2.getCurrentStats()) == null ? void 0 : h2.getLocalPeerStats()) == null ? void 0 : T.subscribe) == null ? void 0 : g2.bitrate;
|
|
29357
29356
|
return { network_info: e, document_hidden: t2, num_degraded_tracks: i2, bitrate: { publish: r2, subscribe: s2 }, max_sub_bitrate: this.maxSubscribeBitrate, recent_pong_response_times: this.signal.getPongResponseTimes(), transport_state: this.state };
|
|
29358
29357
|
}
|
|
29359
29358
|
};
|
|
@@ -29447,7 +29446,7 @@ var hr = class {
|
|
|
29447
29446
|
var s2, o2, n2, l2;
|
|
29448
29447
|
if (e.error && e.type) {
|
|
29449
29448
|
let u2 = e.type.includes("audio") ? (s2 = this.localPeer) == null ? void 0 : s2.audioTrack : (o2 = this.localPeer) == null ? void 0 : o2.videoTrack;
|
|
29450
|
-
(n2 = this.errorListener) == null || n2.onError(e.error), [
|
|
29449
|
+
(n2 = this.errorListener) == null || n2.onError(e.error), [k2.TracksErrors.CANT_ACCESS_CAPTURE_DEVICE, k2.TracksErrors.DEVICE_IN_USE, k2.TracksErrors.DEVICE_NOT_AVAILABLE].includes(e.error.code) && u2 && (u2.setEnabled(false), (l2 = this.listener) == null || l2.onTrackUpdate(2, u2, this.localPeer));
|
|
29451
29450
|
}
|
|
29452
29451
|
})();
|
|
29453
29452
|
};
|
|
@@ -29483,7 +29482,7 @@ var hr = class {
|
|
|
29483
29482
|
(i2 = this.notificationManager) == null || i2.setListener(this.listener), this.audioSinkManager.setListener(this.listener), this.interactivityCenter.setListener(this.listener);
|
|
29484
29483
|
return;
|
|
29485
29484
|
}
|
|
29486
|
-
this.sdkState.isInitialised = true, this.store = new Nt(), this.eventBus = new Ut(), this.pluginUsageTracker = new Oi(this.eventBus), this.wakeLockManager = new _i(), this.networkTestManager = new wi(this.eventBus, this.listener), this.playlistManager = new bt(this, this.eventBus), this.deviceManager = new xt(this.store, this.eventBus), this.audioSinkManager = new Ot(this.store, this.deviceManager, this.eventBus), this.audioOutput = new xi(this.deviceManager, this.audioSinkManager), this.audioSinkManager.setListener(this.listener), this.eventBus.autoplayError.subscribe(this.handleAutoplayError), this.localTrackManager = new ve(this.store, this.observer, this.deviceManager, this.eventBus, this.analyticsTimer), this.analyticsEventsService = new Ni(this.store), this.transport = new zt(this.observer, this.deviceManager, this.store, this.eventBus, this.analyticsEventsService, this.analyticsTimer, this.pluginUsageTracker),
|
|
29485
|
+
this.sdkState.isInitialised = true, this.store = new Nt(), this.eventBus = new Ut(), this.pluginUsageTracker = new Oi(this.eventBus), this.wakeLockManager = new _i(), this.networkTestManager = new wi(this.eventBus, this.listener), this.playlistManager = new bt(this, this.eventBus), this.deviceManager = new xt(this.store, this.eventBus), this.audioSinkManager = new Ot(this.store, this.deviceManager, this.eventBus), this.audioOutput = new xi(this.deviceManager, this.audioSinkManager), this.audioSinkManager.setListener(this.listener), this.eventBus.autoplayError.subscribe(this.handleAutoplayError), this.localTrackManager = new ve(this.store, this.observer, this.deviceManager, this.eventBus, this.analyticsTimer), this.analyticsEventsService = new Ni(this.store), this.transport = new zt(this.observer, this.deviceManager, this.store, this.eventBus, this.analyticsEventsService, this.analyticsTimer, this.pluginUsageTracker), "onInitSuccess" in e && this.transport.setConnectivityListener(e), this.sessionStore = new Zi(this.transport), this.interactivityCenter = new Vt(this.transport, this.store, this.listener), this.eventBus.analytics.subscribe(this.sendAnalyticsEvent), this.eventBus.deviceChange.subscribe(this.handleDeviceChange), this.eventBus.audioPluginFailed.subscribe(this.handleAudioPluginError);
|
|
29487
29486
|
}
|
|
29488
29487
|
validateJoined(e) {
|
|
29489
29488
|
if (!this.localPeer)
|
|
@@ -29610,8 +29609,8 @@ var hr = class {
|
|
|
29610
29609
|
n2 != null && n2.autoManageWakeLock && this.wakeLockManager.acquireLock(), this.localPeer ? (this.localPeer.name = e.userName, this.localPeer.role = this.store.getPolicyForRole(s2), this.localPeer.customerUserId = r2, this.localPeer.metadata = e.metaData, delete this.localPeer.asRole) : this.createAndAddLocalPeerToStore(e, s2, r2), this.roleChangeManager = new wt(this.store, this.transport, this.deviceManager, this.getAndPublishTracks.bind(this), this.removeTrack.bind(this), this.listener), this.eventBus.localRoleUpdate.subscribe(this.handleLocalRoleUpdate), d2.d(this.TAG, `\u23F3 Joining room ${i2}`), d2.time(`join-room-${i2}`);
|
|
29611
29610
|
try {
|
|
29612
29611
|
yield this.transport.join(e.authToken, this.localPeer.peerId, { name: e.userName, metaData: e.metaData }, e.initEndpoint, e.autoVideoSubscribe, e.iceServers), d2.d(this.TAG, `\u2705 Joined room ${i2}`), this.analyticsTimer.start("peer_list_time"), yield this.notifyJoin(), this.sdkState.isJoinInProgress = false, yield this.publish(e.settings, o2);
|
|
29613
|
-
} catch (
|
|
29614
|
-
throw this.analyticsTimer.end("join_time"), this.sdkState.isJoinInProgress = false, (g2 = this.listener) == null || g2.onError(
|
|
29612
|
+
} catch (v2) {
|
|
29613
|
+
throw this.analyticsTimer.end("join_time"), this.sdkState.isJoinInProgress = false, (g2 = this.listener) == null || g2.onError(v2), this.sendJoinAnalyticsEvent(this.sdkState.isPreviewCalled, v2), d2.e(this.TAG, "Unable to join room", v2), v2;
|
|
29615
29614
|
}
|
|
29616
29615
|
d2.timeEnd(`join-room-${i2}`);
|
|
29617
29616
|
});
|
|
@@ -39765,7 +39764,7 @@ var useCloseScreenshareWhiteboard = () => {
|
|
|
39765
39764
|
};
|
|
39766
39765
|
|
|
39767
39766
|
// src/Prebuilt/layouts/VideoStreamingSection.tsx
|
|
39768
|
-
var HLSView = React155.lazy(() => import("./HLSView-
|
|
39767
|
+
var HLSView = React155.lazy(() => import("./HLSView-72D4HXOZ.js"));
|
|
39769
39768
|
var VideoStreamingSection = ({
|
|
39770
39769
|
screenType,
|
|
39771
39770
|
elements,
|
|
@@ -42938,4 +42937,4 @@ object-assign/index.js:
|
|
|
42938
42937
|
@license MIT
|
|
42939
42938
|
*)
|
|
42940
42939
|
*/
|
|
42941
|
-
//# sourceMappingURL=chunk-
|
|
42940
|
+
//# sourceMappingURL=chunk-OZVDS5TG.js.map
|