@100mslive/roomkit-react 0.3.7-alpha.5 → 0.3.8-alpha.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{HLSView-JXKL2OA3.js → HLSView-CTZXD762.js} +35 -17
- package/dist/{HLSView-JXKL2OA3.js.map → HLSView-CTZXD762.js.map} +3 -3
- package/dist/Prebuilt/components/HMSVideo/utils.d.ts +1 -0
- package/dist/{chunk-JAZO4PHJ.js → chunk-NDLMRKFR.js} +87 -87
- package/dist/{chunk-JAZO4PHJ.js.map → chunk-NDLMRKFR.js.map} +3 -3
- package/dist/index.cjs.js +112 -94
- package/dist/index.cjs.js.map +3 -3
- package/dist/index.js +1 -1
- package/dist/meta.cjs.json +15 -15
- package/dist/meta.esbuild.json +24 -24
- package/package.json +6 -6
- package/src/Prebuilt/components/HMSVideo/VideoProgress.tsx +3 -2
- package/src/Prebuilt/components/HMSVideo/VideoTime.tsx +16 -7
- package/src/Prebuilt/components/HMSVideo/utils.ts +10 -0
- package/src/Prebuilt/components/RoomDetails/RoomDetailsPane.tsx +2 -2
- package/src/Prebuilt/layouts/SidePane.tsx +1 -1
package/dist/index.cjs.js
CHANGED
@@ -108,7 +108,7 @@ var __async = (__this, __arguments, generator) => {
|
|
108
108
|
var define_process_env_default;
|
109
109
|
var init_define_process_env = __esm({
|
110
110
|
"<define:process.env>"() {
|
111
|
-
define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_22d4797e-3f34-4266-8018-3b76699bbc42", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_devDependencies__types_node: "^16.11.17", npm_package_devDependencies_rollup: "^2.70.1", 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", 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.1 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_devDependencies__rollup_plugin_node_resolve: "^13.1.3", 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.7-alpha.5", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_22d4797e-3f34-4266-8018-3b76699bbc42", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.1/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.7-alpha.5", 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.8", 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.7", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/26.2.11394342", 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: "589", 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_devDependencies__rollup_plugin_image: "^3.0.2", 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.9/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240407.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.2/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:19470", 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__rollup_plugin_commonjs: "^21.0.3", 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.7-alpha.5", npm_package_devDependencies__types_lodash_merge: "^4.6.6", npm_package_devDependencies__storybook_cli: "^7.0.27", npm_package_devDependencies__rollup_plugin_json: "^6.0.0", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", STATS_D: "false", GITHUB_RUN_ID: "8661705130", 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: "3dd4ad3ad8988f0550edafae26b500b11925936e", 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: "9635e8a32c8a4f1291705b3cdf94692310711c3bf492ccabc6be7487a8d280d9", 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--1712923473185-0.8411518963013371:/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.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1712923472990-0.9491991007938292:/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.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1712923450974-0.6907630919940266:/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.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1712923450796-0.2538488914339292:/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.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.1/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.1/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_08a0a851-7ab1-446f-993c-8466b602452e", INVOCATION_ID: "e93636146e4048978ec4162db7ef9d5f", 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: "513", 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", npm_package_devDependencies__rollup_plugin_typescript: "^8.3.1", 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_rollup_plugin_terser: "^7.0.2", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 158", 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_devDependencies_rollup_plugin_import_css: "^3.3.1", 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.7-alpha.5", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.7-alpha.5", 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", npm_package_devDependencies_rollup_plugin_esbuild: "^5.0.0", GITHUB_SHA: "3dd4ad3ad8988f0550edafae26b500b11925936e", 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_22d4797e-3f34-4266-8018-3b76699bbc42", 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_22d4797e-3f34-4266-8018-3b76699bbc42", 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.172+1/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_22d4797e-3f34-4266-8018-3b76699bbc42" };
|
111
|
+
define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_7c4c1950-8a61-422b-b70f-231782daf5a5", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_devDependencies__types_node: "^16.11.17", npm_package_devDependencies_rollup: "^2.70.1", 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", 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.1 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_devDependencies__rollup_plugin_node_resolve: "^13.1.3", 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.8-alpha.0", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_7c4c1950-8a61-422b-b70f-231782daf5a5", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.1/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.8-alpha.0", 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.8", 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.7", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/26.2.11394342", 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: "603", 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_devDependencies__rollup_plugin_image: "^3.0.2", 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.9/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240407.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.2/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:19646", 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__rollup_plugin_commonjs: "^21.0.3", 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.8-alpha.0", npm_package_devDependencies__types_lodash_merge: "^4.6.6", npm_package_devDependencies__storybook_cli: "^7.0.27", npm_package_devDependencies__rollup_plugin_json: "^6.0.0", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", STATS_D: "false", GITHUB_RUN_ID: "8700818252", 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: "01f2b5f23cc814beb7f077b46b6736f1e00ceaad", 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: "eb4c117f5ff5e55682f3f7490c15fc5440ba61b18b3b42ef49564303057c59a3", npm_package_exports___import: "./dist/index.js", STATS_BLT: "true", 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--1713248088685-0.8813268667616405:/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.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1713248088490-0.9103108704604872:/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.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1713248066660-0.5344358402590024:/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.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1713248066480-0.3470210036877275:/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.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.1/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.1/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_1ff258cc-9913-4d21-9d50-6cca116c61b9", INVOCATION_ID: "dafba751830c4d43b8a2b569f0046558", 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: "515", 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", npm_package_devDependencies__rollup_plugin_typescript: "^8.3.1", 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_rollup_plugin_terser: "^7.0.2", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 190", 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_devDependencies_rollup_plugin_import_css: "^3.3.1", 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.8-alpha.0", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.8-alpha.0", 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", npm_package_devDependencies_rollup_plugin_esbuild: "^5.0.0", GITHUB_SHA: "01f2b5f23cc814beb7f077b46b6736f1e00ceaad", 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_7c4c1950-8a61-422b-b70f-231782daf5a5", 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_7c4c1950-8a61-422b-b70f-231782daf5a5", 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.172+1/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_7c4c1950-8a61-422b-b70f-231782daf5a5" };
|
112
112
|
}
|
113
113
|
});
|
114
114
|
|
@@ -19206,8 +19206,8 @@ var require_grammar = __commonJS({
|
|
19206
19206
|
var require_parser = __commonJS({
|
19207
19207
|
"../../node_modules/sdp-transform/lib/parser.js"(exports) {
|
19208
19208
|
init_define_process_env();
|
19209
|
-
var toIntIfInt = function(
|
19210
|
-
return String(Number(
|
19209
|
+
var toIntIfInt = function(v) {
|
19210
|
+
return String(Number(v)) === v ? Number(v) : v;
|
19211
19211
|
};
|
19212
19212
|
var attachProperties = function(match17, location, names, rawName) {
|
19213
19213
|
if (rawName && !names) {
|
@@ -19486,9 +19486,9 @@ function ie(a2) {
|
|
19486
19486
|
function ot(a2 = "prod", e) {
|
19487
19487
|
let t = "web", i = Ve !== "LOCAL" && a2 === "prod" ? "prod" : "debug";
|
19488
19488
|
if (Ce)
|
19489
|
-
return
|
19489
|
+
return bs({ os: "web_nodejs", os_version: process.version, sdk: t, sdk_version: As, env: i, domain: Ve, is_prebuilt: !!(e != null && e.isPrebuilt), framework: "node", framework_version: process.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
|
19490
19490
|
let r = pe.getOS(), s = pe.getDevice(), o = pe.getBrowser(), n = pr(`web_${r.name}`), l = r.version || "", u = pr(`${o.name}_${o.version}`), p = u;
|
19491
|
-
return s.type && (p = `${pr(`${s.vendor}_${s.type}`)}/${u}`),
|
19491
|
+
return s.type && (p = `${pr(`${s.vendor}_${s.type}`)}/${u}`), bs({ os: n, os_version: l, sdk: t, sdk_version: As, device_model: p, env: i, domain: Ve, is_prebuilt: !!(e != null && e.isPrebuilt), framework: e == null ? void 0 : e.type, framework_version: e == null ? void 0 : e.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
|
19492
19492
|
}
|
19493
19493
|
function pr(a2) {
|
19494
19494
|
return a2.replace(/ /g, "_");
|
@@ -19509,7 +19509,7 @@ function pm(a2) {
|
|
19509
19509
|
return a2 ? e.sessionStore[a2] : e.sessionStore;
|
19510
19510
|
};
|
19511
19511
|
}
|
19512
|
-
var import_ua_parser_js, import_lodash3, import_uuid3, import_uuid4, import_lodash4, import_uuid5, import_uuid6, import_uuid7, import_eventemitter2, import_eventemitter22, import_uuid8, import_eventemitter23, Dt, import_eventemitter24, import_uuid9, import_uuid10, Ra, Ia, Ha, Ft, Kr, qr, $r,
|
19512
|
+
var import_ua_parser_js, import_lodash3, import_uuid3, import_uuid4, import_lodash4, import_uuid5, import_uuid6, import_uuid7, import_eventemitter2, import_eventemitter22, import_uuid8, import_eventemitter23, Dt, import_eventemitter24, import_uuid9, import_uuid10, Ra, Ia, Ha, Ft, Kr, qr, $r, S, M, Zi, wa, ur, er, Da, jr, tr, Jr, B, Na, Dn, _n, G, Kt, Yr, D, ir, Oa, ye, xn, xa, oe, Ua, z, ue, Un, Bn, Z, q, Ba, Zr, Vn, Fn, sr, Va, Wn, $n, Kn, qn, jn, Jn, Qn, zn, at, Fa, Yn, Y, ts, Xn, ne, Zn, qt, Ga, is, ec, rs, tc, ic, rc, sc, ac, oc, nc, cc, ss, pc, Wa, hc, os, ar, ns, cs, ds, ls, us, ps, hs, ms, Ss, $a, d, pe, _, gs, Ce, qa, yc, Ts, fs, Ms, ys, Ve, y, f, Ja, m, cr, ks, ce, Es, As, bs, I, k, hr, j, mr, Sr, gr, ws, Ds, _s, Ns, Tr, Bs, fr, Vs, vr, Mr, Ws, $s, pt, Qe, gt, E, Cr, Tt, Zs, fo, vo, W, Lr, Mo, yo, ko, Eo, Po, Q, um, mm, Sm, ni, ea, gm, Tm, fm, Ao, bo, Mm, ta, ym, Ro, km, Em, Pm, Am, bm, Rm, ia, ra, Hm, Cm, sa, Lm, wm, aa, Dm, _m, Nm, oa, na, Io, Ho, Co, Om, xm, Um, Bm, Vm, ca, Ym, Lo, Xm, Zm, eS, Do, _o, Or, Te, $, Vi, Qi, en, tn, rn, sn, Aa, an, ba, Fr, ve, on, nn, cn, dn, ln, un, pn, hn, mn, Sn, Gr, gn, Tn, fn, vn, Mn, yn;
|
19513
19513
|
var init_dist = __esm({
|
19514
19514
|
"../hms-video-store/dist/index.js"() {
|
19515
19515
|
"use strict";
|
@@ -19544,7 +19544,7 @@ var init_dist = __esm({
|
|
19544
19544
|
Kr = Object.prototype.hasOwnProperty;
|
19545
19545
|
qr = Object.prototype.propertyIsEnumerable;
|
19546
19546
|
$r = (a2, e, t) => e in a2 ? Ra(a2, e, { enumerable: true, configurable: true, writable: true, value: t }) : a2[e] = t;
|
19547
|
-
|
19547
|
+
S = (a2, e) => {
|
19548
19548
|
for (var t in e || (e = {}))
|
19549
19549
|
Kr.call(e, t) && $r(a2, t, e[t]);
|
19550
19550
|
if (Ft)
|
@@ -19552,7 +19552,7 @@ var init_dist = __esm({
|
|
19552
19552
|
qr.call(e, t) && $r(a2, t, e[t]);
|
19553
19553
|
return a2;
|
19554
19554
|
};
|
19555
|
-
|
19555
|
+
M = (a2, e) => Ia(a2, Ha(e));
|
19556
19556
|
Zi = (a2, e) => {
|
19557
19557
|
var t = {};
|
19558
19558
|
for (var i in a2)
|
@@ -19564,7 +19564,7 @@ var init_dist = __esm({
|
|
19564
19564
|
};
|
19565
19565
|
wa = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
|
19566
19566
|
ur = wa((od, za) => {
|
19567
|
-
za.exports = { version: "0.12.
|
19567
|
+
za.exports = { version: "0.12.8-alpha.0", 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"] };
|
19568
19568
|
});
|
19569
19569
|
er = ((n) => (n.Disconnected = "Disconnected", n.Preview = "Preview", n.Connecting = "Connecting", n.Connected = "Connected", n.Reconnecting = "Reconnecting", n.Disconnecting = "Disconnecting", n.Failed = "Failed", n))(er || {});
|
19570
19570
|
Da = ((e) => (e.CHAT = "chat", e))(Da || {});
|
@@ -19786,7 +19786,7 @@ var init_dist = __esm({
|
|
19786
19786
|
Ms = ((fs = (Ts = pe.getBrowser()) == null ? void 0 : Ts.name) == null ? void 0 : fs.toLowerCase()) === "firefox";
|
19787
19787
|
ys = ((i) => (i.CUSTOM = "CUSTOM", i.LOCAL = "LOCAL", i.HMS = "HMS", i))(ys || {});
|
19788
19788
|
Ve = ja();
|
19789
|
-
|
19789
|
+
y = { 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 } };
|
19790
19790
|
f = class a extends Error {
|
19791
19791
|
constructor(t, i, r, s, o, n = false) {
|
19792
19792
|
super(s);
|
@@ -19817,98 +19817,98 @@ var init_dist = __esm({
|
|
19817
19817
|
}
|
19818
19818
|
};
|
19819
19819
|
Ja = ["join", "offer", "answer", "trickle", "on-error", "JOIN"];
|
19820
|
-
|
19821
|
-
return new f(
|
19820
|
+
m = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
|
19821
|
+
return new f(y.WebSocketConnectionErrors.FAILED_TO_CONNECT, "WebsocketFailedToConnect", a2, `[WS]: ${e}`, `[WS]: ${e}`);
|
19822
19822
|
}, WebSocketConnectionLost(a2, e = "") {
|
19823
|
-
return new f(
|
19823
|
+
return new f(y.WebSocketConnectionErrors.WEBSOCKET_CONNECTION_LOST, "WebSocketConnectionLost", a2, "Network connection lost", e);
|
19824
19824
|
}, AbnormalClose(a2, e = "") {
|
19825
|
-
return new f(
|
19825
|
+
return new f(y.WebSocketConnectionErrors.ABNORMAL_CLOSE, "WebSocketAbnormalClose", a2, "Websocket closed abnormally", e);
|
19826
19826
|
} }, APIErrors: { ServerErrors(a2, e, t = "", i = true) {
|
19827
19827
|
return new f(a2, "ServerErrors", e, `[${e}]: Server error ${t}`, t, i);
|
19828
19828
|
}, EndpointUnreachable(a2, e = "") {
|
19829
|
-
return new f(
|
19829
|
+
return new f(y.APIErrors.ENDPOINT_UNREACHABLE, "EndpointUnreachable", a2, `Endpoint is not reachable - ${e}`, e);
|
19830
19830
|
}, InvalidTokenFormat(a2, e = "") {
|
19831
|
-
return new f(
|
19831
|
+
return new f(y.APIErrors.INVALID_TOKEN_FORMAT, "InvalidTokenFormat", a2, `Token is not in proper JWT format - ${e}`, e, true);
|
19832
19832
|
}, InitConfigNotAvailable(a2, e = "") {
|
19833
|
-
return new f(
|
19833
|
+
return new f(y.APIErrors.INIT_CONFIG_NOT_AVAILABLE, "InitError", a2, `[INIT]: ${e}`, `[INIT]: ${e}`);
|
19834
19834
|
} }, TracksErrors: { GenericTrack(a2, e = "") {
|
19835
|
-
return new f(
|
19835
|
+
return new f(y.TracksErrors.GENERIC_TRACK, "GenericTrack", a2, `[TRACK]: ${e}`, `[TRACK]: ${e}`);
|
19836
19836
|
}, CantAccessCaptureDevice(a2, e, t = "") {
|
19837
|
-
return new f(
|
19837
|
+
return new f(y.TracksErrors.CANT_ACCESS_CAPTURE_DEVICE, "CantAccessCaptureDevice", a2, `User denied permission to access capture device - ${e}`, t);
|
19838
19838
|
}, DeviceNotAvailable(a2, e, t = "") {
|
19839
|
-
return new f(
|
19839
|
+
return new f(y.TracksErrors.DEVICE_NOT_AVAILABLE, "DeviceNotAvailable", a2, `[TRACK]: Capture device is no longer available - ${e}`, t);
|
19840
19840
|
}, DeviceInUse(a2, e, t = "") {
|
19841
|
-
return new f(
|
19841
|
+
return new f(y.TracksErrors.DEVICE_IN_USE, "DeviceInUse", a2, `[TRACK]: Capture device is in use by another application - ${e}`, t);
|
19842
19842
|
}, DeviceLostMidway(a2, e, t = "") {
|
19843
|
-
return new f(
|
19843
|
+
return new f(y.TracksErrors.DEVICE_LOST_MIDWAY, "DeviceLostMidway", a2, `Lost access to capture device midway - ${e}`, t);
|
19844
19844
|
}, NothingToReturn(a2, e = "", t = "There is no media to return. Please select either video or audio or both.") {
|
19845
|
-
return new f(
|
19845
|
+
return new f(y.TracksErrors.NOTHING_TO_RETURN, "NothingToReturn", a2, t, e);
|
19846
19846
|
}, InvalidVideoSettings(a2, e = "") {
|
19847
|
-
return new f(
|
19847
|
+
return new f(y.TracksErrors.INVALID_VIDEO_SETTINGS, "InvalidVideoSettings", a2, "Cannot enable simulcast when no video settings are provided", e);
|
19848
19848
|
}, AutoplayBlocked(a2, e = "") {
|
19849
|
-
return new f(
|
19849
|
+
return new f(y.TracksErrors.AUTOPLAY_ERROR, "AutoplayBlocked", a2, "Autoplay blocked because the user didn't interact with the document first", e);
|
19850
19850
|
}, CodecChangeNotPermitted(a2, e = "") {
|
19851
|
-
return new f(
|
19851
|
+
return new f(y.TracksErrors.CODEC_CHANGE_NOT_PERMITTED, "CodecChangeNotPermitted", a2, "Codec can't be changed mid call.", e);
|
19852
19852
|
}, OverConstrained(a2, e, t = "") {
|
19853
|
-
return new f(
|
19853
|
+
return new f(y.TracksErrors.OVER_CONSTRAINED, "OverConstrained", a2, `[TRACK]: Requested constraints cannot be satisfied with the device hardware - ${e}`, t);
|
19854
19854
|
}, NoAudioDetected(a2, e = "Please check the mic or use another audio input") {
|
19855
|
-
return new f(
|
19855
|
+
return new f(y.TracksErrors.NO_AUDIO_DETECTED, "NoAudioDetected", a2, "No audio input detected from microphone", e);
|
19856
19856
|
}, SystemDeniedPermission(a2, e, t = "") {
|
19857
|
-
return new f(
|
19857
|
+
return new f(y.TracksErrors.SYSTEM_DENIED_PERMISSION, "SystemDeniedPermission", a2, `Operating System denied permission to access capture device - ${e}`, t);
|
19858
19858
|
}, CurrentTabNotShared() {
|
19859
|
-
return new f(
|
19859
|
+
return new f(y.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");
|
19860
19860
|
}, AudioPlaybackError(a2) {
|
19861
|
-
return new f(
|
19861
|
+
return new f(y.TracksErrors.AUDIO_PLAYBACK_ERROR, "Audio playback error", "TRACK", a2, a2);
|
19862
19862
|
}, SelectedDeviceMissing(a2) {
|
19863
|
-
return new f(
|
19863
|
+
return new f(y.TracksErrors.SELECTED_DEVICE_MISSING, "SelectedDeviceMissing", "TRACK", `Could not detect selected ${a2} device`, `Please check connection to the ${a2} device`, false);
|
19864
19864
|
} }, WebrtcErrors: { CreateOfferFailed(a2, e = "") {
|
19865
|
-
return new f(
|
19865
|
+
return new f(y.WebrtcErrors.CREATE_OFFER_FAILED, "CreateOfferFailed", a2, `[${a2.toString()}]: Failed to create offer. `, e);
|
19866
19866
|
}, CreateAnswerFailed(a2, e = "") {
|
19867
|
-
return new f(
|
19867
|
+
return new f(y.WebrtcErrors.CREATE_ANSWER_FAILED, "CreateAnswerFailed", a2, `[${a2.toString()}]: Failed to create answer. `, e);
|
19868
19868
|
}, SetLocalDescriptionFailed(a2, e = "") {
|
19869
|
-
return new f(
|
19869
|
+
return new f(y.WebrtcErrors.SET_LOCAL_DESCRIPTION_FAILED, "SetLocalDescriptionFailed", a2, `[${a2.toString()}]: Failed to set offer. `, e);
|
19870
19870
|
}, SetRemoteDescriptionFailed(a2, e = "") {
|
19871
|
-
return new f(
|
19871
|
+
return new f(y.WebrtcErrors.SET_REMOTE_DESCRIPTION_FAILED, "SetRemoteDescriptionFailed", a2, `[${a2.toString()}]: Failed to set answer. `, e, true);
|
19872
19872
|
}, ICEFailure(a2, e = "", t = false) {
|
19873
|
-
return new f(
|
19873
|
+
return new f(y.WebrtcErrors.ICE_FAILURE, "ICEFailure", a2, `[${a2.toString()}]: Ice connection state FAILED`, e, t);
|
19874
19874
|
}, ICEDisconnected(a2, e = "") {
|
19875
|
-
return new f(
|
19875
|
+
return new f(y.WebrtcErrors.ICE_DISCONNECTED, "ICEDisconnected", a2, `[${a2.toString()}]: Ice connection state DISCONNECTED`, e);
|
19876
19876
|
}, StatsFailed(a2, e = "") {
|
19877
|
-
return new f(
|
19877
|
+
return new f(y.WebrtcErrors.STATS_FAILED, "StatsFailed", a2, `Failed to WebRTC get stats - ${e}`, e);
|
19878
19878
|
} }, WebsocketMethodErrors: { ServerErrors(a2, e, t) {
|
19879
19879
|
return new f(a2, "ServerErrors", e, t, t, Ja.includes(e));
|
19880
19880
|
}, AlreadyJoined(a2, e = "") {
|
19881
|
-
return new f(
|
19881
|
+
return new f(y.WebsocketMethodErrors.ALREADY_JOINED, "AlreadyJoined", a2, "[JOIN]: You have already joined this room.", e);
|
19882
19882
|
}, CannotJoinPreviewInProgress(a2, e = "") {
|
19883
|
-
return new f(
|
19883
|
+
return new f(y.WebsocketMethodErrors.CANNOT_JOIN_PREVIEW_IN_PROGRESS, "CannotJoinPreviewInProgress", a2, "[JOIN]: Cannot join if preview is in progress", e);
|
19884
19884
|
} }, GenericErrors: { NotConnected(a2, e = "") {
|
19885
|
-
return new f(
|
19885
|
+
return new f(y.GenericErrors.NOT_CONNECTED, "NotConnected", a2, "Client is not connected", e);
|
19886
19886
|
}, Signalling(a2, e) {
|
19887
|
-
return new f(
|
19887
|
+
return new f(y.GenericErrors.SIGNALLING, "Signalling", a2, `Unknown signalling error: ${a2.toString()} ${e} `, e);
|
19888
19888
|
}, Unknown(a2, e) {
|
19889
|
-
return new f(
|
19889
|
+
return new f(y.GenericErrors.UNKNOWN, "Unknown", a2, `Unknown exception: ${e}`, e);
|
19890
19890
|
}, NotReady(a2, e = "") {
|
19891
|
-
return new f(
|
19891
|
+
return new f(y.GenericErrors.NOT_READY, "NotReady", a2, e, e);
|
19892
19892
|
}, JsonParsingFailed(a2, e, t = "") {
|
19893
|
-
return new f(
|
19893
|
+
return new f(y.GenericErrors.JSON_PARSING_FAILED, "JsonParsingFailed", a2, `Failed to parse JSON message - ${e}`, t);
|
19894
19894
|
}, TrackMetadataMissing(a2, e = "") {
|
19895
|
-
return new f(
|
19895
|
+
return new f(y.GenericErrors.TRACK_METADATA_MISSING, "TrackMetadataMissing", a2, "Track Metadata Missing", e);
|
19896
19896
|
}, RTCTrackMissing(a2, e = "") {
|
19897
|
-
return new f(
|
19897
|
+
return new f(y.GenericErrors.RTC_TRACK_MISSING, "RTCTrackMissing", a2, "RTC Track missing", e);
|
19898
19898
|
}, PeerMetadataMissing(a2, e = "") {
|
19899
|
-
return new f(
|
19899
|
+
return new f(y.GenericErrors.PEER_METADATA_MISSING, "PeerMetadataMissing", a2, "Peer Metadata Missing", e);
|
19900
19900
|
}, ValidationFailed(a2, e) {
|
19901
|
-
return new f(
|
19901
|
+
return new f(y.GenericErrors.VALIDATION_FAILED, "ValidationFailed", "VALIDATION", a2, e ? JSON.stringify(e) : "");
|
19902
19902
|
}, InvalidRole(a2, e) {
|
19903
|
-
return new f(
|
19903
|
+
return new f(y.GenericErrors.INVALID_ROLE, "InvalidRole", a2, "Invalid role. Join with valid role", e, true);
|
19904
19904
|
}, PreviewAlreadyInProgress(a2, e = "") {
|
19905
|
-
return new f(
|
19905
|
+
return new f(y.GenericErrors.PREVIEW_IN_PROGRESS, "PreviewAlreadyInProgress", a2, "[Preview]: Cannot join if preview is in progress", e);
|
19906
19906
|
}, LocalStorageAccessDenied(a2 = "Access to localStorage has been denied") {
|
19907
|
-
return new f(
|
19907
|
+
return new f(y.GenericErrors.LOCAL_STORAGE_ACCESS_DENIED, "LocalStorageAccessDenied", "NONE", "LocalStorageAccessDenied", a2);
|
19908
19908
|
}, MissingMediaDevices() {
|
19909
|
-
return new f(
|
19909
|
+
return new f(y.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);
|
19910
19910
|
}, MissingRTCPeerConnection() {
|
19911
|
-
return new f(
|
19911
|
+
return new f(y.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);
|
19912
19912
|
} }, MediaPluginErrors: { PlatformNotSupported(a2, e = "") {
|
19913
19913
|
return new f(7001, "PlatformNotSupported", a2, "Check HMS Docs to see the list of supported platforms", e);
|
19914
19914
|
}, InitFailed(a2, e = "") {
|
@@ -19920,9 +19920,9 @@ var init_dist = __esm({
|
|
19920
19920
|
}, DeviceNotSupported(a2, e = "") {
|
19921
19921
|
return new f(7005, "DeviceNotSupported", a2, "Check HMS Docs to see the list of supported devices", e);
|
19922
19922
|
} }, PlaylistErrors: { NoEntryToPlay(a2, e) {
|
19923
|
-
return new f(
|
19923
|
+
return new f(y.PlaylistErrors.NO_ENTRY_TO_PLAY, "NoEntryToPlay", a2, "Reached end of playlist", e);
|
19924
19924
|
}, NoEntryPlaying(a2, e) {
|
19925
|
-
return new f(
|
19925
|
+
return new f(y.PlaylistErrors.NO_ENTRY_IS_PLAYING, "NoEntryIsPlaying", a2, "No entry is playing at this time", e);
|
19926
19926
|
} } };
|
19927
19927
|
cr = class {
|
19928
19928
|
constructor() {
|
@@ -19953,7 +19953,7 @@ var init_dist = __esm({
|
|
19953
19953
|
try {
|
19954
19954
|
_ && !localStorage && (window.localStorage = new cr());
|
19955
19955
|
} catch (a2) {
|
19956
|
-
d.e("Error initialising localStorage",
|
19956
|
+
d.e("Error initialising localStorage", m.GenericErrors.LocalStorageAccessDenied());
|
19957
19957
|
}
|
19958
19958
|
};
|
19959
19959
|
ce = class {
|
@@ -19965,7 +19965,7 @@ var init_dist = __esm({
|
|
19965
19965
|
try {
|
19966
19966
|
return _ && !this.storage && (ks(), this.storage = window.localStorage), this.storage;
|
19967
19967
|
} catch (e) {
|
19968
|
-
return d.e("Error initialising localStorage",
|
19968
|
+
return d.e("Error initialising localStorage", m.GenericErrors.LocalStorageAccessDenied()), null;
|
19969
19969
|
}
|
19970
19970
|
}
|
19971
19971
|
get() {
|
@@ -19987,20 +19987,20 @@ var init_dist = __esm({
|
|
19987
19987
|
let a2, e = new ce("hms-analytics-deviceId"), t = e.get();
|
19988
19988
|
return t ? a2 = t : (a2 = (0, import_uuid4.v4)(), e.set(a2)), a2;
|
19989
19989
|
};
|
19990
|
-
|
19991
|
-
|
19990
|
+
As = ur().version;
|
19991
|
+
bs = (a2, e = ",") => Object.keys(a2).filter((t) => ie(a2[t])).map((t) => `${t}:${a2[t]}`).join(e);
|
19992
19992
|
I = class {
|
19993
19993
|
constructor({ name: e, level: t, properties: i, includesPII: r, timestamp: s }) {
|
19994
19994
|
this.metadata = { peer: {}, userAgent: ot() };
|
19995
19995
|
this.name = e, this.level = t, this.includesPII = r || false, this.properties = i || {}, this.timestamp = s || (/* @__PURE__ */ new Date()).getTime(), this.event_id = (0, import_uuid3.v4)(), this.device_id = Es();
|
19996
19996
|
}
|
19997
19997
|
toSignalParams() {
|
19998
|
-
return { name: this.name, info:
|
19998
|
+
return { name: this.name, info: M(S({}, this.properties), { timestamp: this.timestamp, domain: Ve }), timestamp: (/* @__PURE__ */ new Date()).getTime() };
|
19999
19999
|
}
|
20000
20000
|
};
|
20001
|
-
|
20001
|
+
k = class {
|
20002
20002
|
static connect(e, t, i = /* @__PURE__ */ new Date(), r = /* @__PURE__ */ new Date(), s) {
|
20003
|
-
let o = this.eventNameFor("connect", e === void 0), n = e ? 2 : 1, l = this.getPropertiesWithError(
|
20003
|
+
let o = this.eventNameFor("connect", e === void 0), n = e ? 2 : 1, l = this.getPropertiesWithError(M(S({}, t), { [this.KEY_REQUESTED_AT]: i == null ? void 0 : i.getTime(), [this.KEY_RESPONDED_AT]: r == null ? void 0 : r.getTime(), endpoint: s }), e);
|
20004
20004
|
return new I({ name: o, level: n, properties: l });
|
20005
20005
|
}
|
20006
20006
|
static disconnect(e, t) {
|
@@ -20014,7 +20014,7 @@ var init_dist = __esm({
|
|
20014
20014
|
}
|
20015
20015
|
static join(i) {
|
20016
20016
|
var r = i, { error: e } = r, t = Zi(r, ["error"]);
|
20017
|
-
let s = this.eventNameFor("join", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(
|
20017
|
+
let s = this.eventNameFor("join", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(M(S({}, t), { is_preview_called: !!t.is_preview_called }), e);
|
20018
20018
|
return new I({ name: s, level: o, properties: n });
|
20019
20019
|
}
|
20020
20020
|
static publish({ devices: e, settings: t, error: i }) {
|
@@ -20057,7 +20057,7 @@ var init_dist = __esm({
|
|
20057
20057
|
let i = "video.degradation.stats", r = 1, s = { degradedAt: e.degradedAt, trackId: e.trackId };
|
20058
20058
|
if (!t && e.degradedAt instanceof Date) {
|
20059
20059
|
let o = /* @__PURE__ */ new Date(), n = o.valueOf() - e.degradedAt.valueOf();
|
20060
|
-
s =
|
20060
|
+
s = M(S({}, s), { duration: n, restoredAt: o });
|
20061
20061
|
}
|
20062
20062
|
return new I({ name: i, level: r, properties: s });
|
20063
20063
|
}
|
@@ -20082,13 +20082,13 @@ var init_dist = __esm({
|
|
20082
20082
|
}
|
20083
20083
|
static getPropertiesWithError(e, t) {
|
20084
20084
|
let i = this.getErrorProperties(t);
|
20085
|
-
return e =
|
20085
|
+
return e = S(S({}, i), e), e;
|
20086
20086
|
}
|
20087
20087
|
static getErrorProperties(e) {
|
20088
20088
|
return e ? e instanceof f ? e.toAnalyticsProperties() : { error_name: e.name, error_message: e.message, error_description: e.cause } : {};
|
20089
20089
|
}
|
20090
20090
|
};
|
20091
|
-
|
20091
|
+
k.KEY_REQUESTED_AT = "requested_at", k.KEY_RESPONDED_AT = "responded_at";
|
20092
20092
|
hr = class {
|
20093
20093
|
constructor() {
|
20094
20094
|
this.storage = new ce("hms-device-selection");
|
@@ -20196,7 +20196,7 @@ var init_dist = __esm({
|
|
20196
20196
|
};
|
20197
20197
|
Qe.makePeerId = () => (0, import_uuid7.v4)();
|
20198
20198
|
gt = "HMS-Store:";
|
20199
|
-
|
20199
|
+
E = class {
|
20200
20200
|
static v(e, ...t) {
|
20201
20201
|
this.log(0, e, ...t);
|
20202
20202
|
}
|
@@ -20261,7 +20261,7 @@ var init_dist = __esm({
|
|
20261
20261
|
}
|
20262
20262
|
}
|
20263
20263
|
};
|
20264
|
-
|
20264
|
+
E.level = 0;
|
20265
20265
|
Cr = (a2, e) => e;
|
20266
20266
|
Tt = (a2, e) => e;
|
20267
20267
|
Zs = (a2, e) => e;
|
@@ -20306,12 +20306,12 @@ var init_dist = __esm({
|
|
20306
20306
|
gm = R(yo);
|
20307
20307
|
Tm = R(ko);
|
20308
20308
|
fm = R(Eo);
|
20309
|
-
|
20309
|
+
Ao = R((a2, e) => {
|
20310
20310
|
let t = W(a2, e);
|
20311
20311
|
if (t && t.videoTrack && t.videoTrack !== "")
|
20312
20312
|
return a2.tracks[t.videoTrack];
|
20313
20313
|
});
|
20314
|
-
|
20314
|
+
bo = R((a2, e) => {
|
20315
20315
|
let t = W(a2, e);
|
20316
20316
|
if (t && t.audioTrack && t.audioTrack !== "")
|
20317
20317
|
return a2.tracks[t.audioTrack];
|
@@ -20323,7 +20323,7 @@ var init_dist = __esm({
|
|
20323
20323
|
ta = (a2, e) => e ? a2.speakers[e] : null;
|
20324
20324
|
ym = R(createSelector(ta, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
|
20325
20325
|
Ro = (a2, e) => {
|
20326
|
-
let t =
|
20326
|
+
let t = bo(e)(a2);
|
20327
20327
|
return ta(a2, t == null ? void 0 : t.id);
|
20328
20328
|
};
|
20329
20329
|
km = R(createSelector(Ro, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
|
@@ -20338,14 +20338,14 @@ var init_dist = __esm({
|
|
20338
20338
|
return i ? a2.tracks[i] : void 0;
|
20339
20339
|
}
|
20340
20340
|
});
|
20341
|
-
|
20341
|
+
Am = R(createSelector(D, W, (a2, e) => {
|
20342
20342
|
let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
|
20343
20343
|
let r = a2[i];
|
20344
20344
|
return rt(r) && it(r);
|
20345
20345
|
});
|
20346
20346
|
return t ? a2[t] : void 0;
|
20347
20347
|
}));
|
20348
|
-
|
20348
|
+
bm = R(createSelector(D, W, (a2, e) => {
|
20349
20349
|
let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
|
20350
20350
|
let r = a2[i];
|
20351
20351
|
return rt(r) && tt(r);
|
@@ -20385,7 +20385,7 @@ var init_dist = __esm({
|
|
20385
20385
|
let t = Lr(a2, e);
|
20386
20386
|
if (t) {
|
20387
20387
|
if (t.type !== "audio") {
|
20388
|
-
|
20388
|
+
E.w("Please pass audio track here");
|
20389
20389
|
return;
|
20390
20390
|
}
|
20391
20391
|
return t.volume;
|
@@ -20403,7 +20403,7 @@ var init_dist = __esm({
|
|
20403
20403
|
let t = Lr(a2, e);
|
20404
20404
|
if (t) {
|
20405
20405
|
if (t.type !== "video") {
|
20406
|
-
|
20406
|
+
E.w("Please pass video track here");
|
20407
20407
|
return;
|
20408
20408
|
}
|
20409
20409
|
return t.layer;
|
@@ -20504,11 +20504,11 @@ var init_dist = __esm({
|
|
20504
20504
|
tn = (a2) => a2.localPeer.audioTrack;
|
20505
20505
|
rn = (a2) => a2.localPeer.videoTrack;
|
20506
20506
|
sn = (a2, e) => e;
|
20507
|
-
|
20507
|
+
Aa = (a2, e) => e;
|
20508
20508
|
an = (a2) => a2.remoteTrackStats;
|
20509
|
-
|
20509
|
+
ba = (a2) => a2.peerStats;
|
20510
20510
|
Fr = (a2) => a2.localTrackStats;
|
20511
|
-
ve = createSelector([
|
20511
|
+
ve = createSelector([ba, en], (a2, e) => a2[e]);
|
20512
20512
|
on = createSelector(ve, (a2) => {
|
20513
20513
|
var e;
|
20514
20514
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.packetsLost;
|
@@ -20541,9 +20541,9 @@ var init_dist = __esm({
|
|
20541
20541
|
var e;
|
20542
20542
|
return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bytesReceived;
|
20543
20543
|
});
|
20544
|
-
mn = createSelector([
|
20545
|
-
Sn = createSelector([an,
|
20546
|
-
Gr = createSelector([Fr,
|
20544
|
+
mn = createSelector([ba, sn], (a2, e) => e ? a2[e] : void 0);
|
20545
|
+
Sn = createSelector([an, Aa], (a2, e) => e ? a2[e] : void 0);
|
20546
|
+
Gr = createSelector([Fr, Aa], (a2, e) => e ? a2[e] : void 0);
|
20547
20547
|
gn = R(mn);
|
20548
20548
|
Tn = R(Sn);
|
20549
20549
|
fn = createSelector([Fr, tn], (a2, e) => {
|
@@ -25234,13 +25234,13 @@ var init_RoomDetailsPane = __esm({
|
|
25234
25234
|
RoomDetailsPane = () => {
|
25235
25235
|
const { description } = useRoomLayoutHeader();
|
25236
25236
|
const isMwebHLSStream = useMobileHLSStream();
|
25237
|
-
return /* @__PURE__ */ import_react126.default.createElement(Box, { css: { flex: "1 1 0" } }, isMwebHLSStream ? /* @__PURE__ */ import_react126.default.createElement(Flex, { direction: "row", align: "center", gap: "2" }, /* @__PURE__ */ import_react126.default.createElement(Logo, null), /* @__PURE__ */ import_react126.default.createElement(ShowRoomDetailHeader, null)) : /* @__PURE__ */ import_react126.default.createElement(ShowRoomDetailHeader, null), /* @__PURE__ */ import_react126.default.createElement(Box, { css: { mt: "$10" } }, /* @__PURE__ */ import_react126.default.createElement(Text, { css: { color: "$on_surface_high", fontWeight: "$semiBold", display: isMwebHLSStream ? "none" : "" } }, "Description"), /* @__PURE__ */ import_react126.default.createElement(Text, { variant: "sm", css: { c: "$on_surface_medium" } }, description)));
|
25237
|
+
return /* @__PURE__ */ import_react126.default.createElement(Box, { css: { flex: "1 1 0", position: "relative" } }, isMwebHLSStream ? /* @__PURE__ */ import_react126.default.createElement(Flex, { direction: "row", align: "center", gap: "2" }, /* @__PURE__ */ import_react126.default.createElement(Logo, null), /* @__PURE__ */ import_react126.default.createElement(ShowRoomDetailHeader, null)) : /* @__PURE__ */ import_react126.default.createElement(ShowRoomDetailHeader, null), /* @__PURE__ */ import_react126.default.createElement(Box, { css: { mt: "$10" } }, /* @__PURE__ */ import_react126.default.createElement(Text, { css: { color: "$on_surface_high", fontWeight: "$semiBold", display: isMwebHLSStream ? "none" : "" } }, "Description"), /* @__PURE__ */ import_react126.default.createElement(Text, { variant: "sm", css: { c: "$on_surface_medium" } }, description)));
|
25238
25238
|
};
|
25239
25239
|
ShowRoomDetailHeader = () => {
|
25240
25240
|
const { title, details } = useRoomLayoutHeader();
|
25241
25241
|
const toggleDetailsPane = useSidepaneToggle(SIDE_PANE_OPTIONS.ROOM_DETAILS);
|
25242
25242
|
const isMwebHLSStream = useMobileHLSStream();
|
25243
|
-
return /* @__PURE__ */ import_react126.default.createElement(Flex, { direction: "column" }, /* @__PURE__ */ import_react126.default.createElement(Flex, { justify: "between", align: "center", css: { w: "100%" } }, /* @__PURE__ */ import_react126.default.createElement(Text, { variant: "h6" }, title), !isMwebHLSStream && /* @__PURE__ */ import_react126.default.createElement(
|
25243
|
+
return /* @__PURE__ */ import_react126.default.createElement(Flex, { direction: "column", css: { position: "sticky", top: 0, bg: "$surface_dim" } }, /* @__PURE__ */ import_react126.default.createElement(Flex, { justify: "between", align: "center", css: { w: "100%" } }, /* @__PURE__ */ import_react126.default.createElement(Text, { variant: "h6" }, title), !isMwebHLSStream && /* @__PURE__ */ import_react126.default.createElement(
|
25244
25244
|
Flex,
|
25245
25245
|
{
|
25246
25246
|
onClick: toggleDetailsPane,
|
@@ -28576,7 +28576,7 @@ var init_SidePane = __esm({
|
|
28576
28576
|
mobileStream: isMobileHLSStream,
|
28577
28577
|
hideControls,
|
28578
28578
|
overlayChat: !!((_g = elements == null ? void 0 : elements.chat) == null ? void 0 : _g.is_overlay),
|
28579
|
-
roomDescription:
|
28579
|
+
roomDescription: sidepane === SIDE_PANE_OPTIONS.ROOM_DETAILS,
|
28580
28580
|
virtualBackground: sidepane === SIDE_PANE_OPTIONS.VB
|
28581
28581
|
};
|
28582
28582
|
const SidepaneComponent = (0, import_ts_pattern11.match)(sidepane).with(SIDE_PANE_OPTIONS.POLLS, () => /* @__PURE__ */ import_react155.default.createElement(
|
@@ -31094,6 +31094,15 @@ function getDurationFromSeconds2(timeInSeconds) {
|
|
31094
31094
|
}
|
31095
31095
|
return videoTimeStr;
|
31096
31096
|
}
|
31097
|
+
function getDuration(videoEl) {
|
31098
|
+
if (isFinite(videoEl.duration)) {
|
31099
|
+
return videoEl.duration;
|
31100
|
+
}
|
31101
|
+
if (videoEl.seekable.length > 0) {
|
31102
|
+
return videoEl.seekable.end(0);
|
31103
|
+
}
|
31104
|
+
return 0;
|
31105
|
+
}
|
31097
31106
|
var init_utils6 = __esm({
|
31098
31107
|
"src/Prebuilt/components/HMSVideo/utils.ts"() {
|
31099
31108
|
"use strict";
|
@@ -31120,15 +31129,15 @@ var init_VideoProgress = __esm({
|
|
31120
31129
|
const [bufferProgress, setBufferProgress] = (0, import_react188.useState)(0);
|
31121
31130
|
const videoEl = hlsPlayer2 == null ? void 0 : hlsPlayer2.getVideoElement();
|
31122
31131
|
const setProgress = (0, import_react188.useCallback)(() => {
|
31123
|
-
var _a8
|
31132
|
+
var _a8;
|
31124
31133
|
if (!videoEl) {
|
31125
31134
|
return;
|
31126
31135
|
}
|
31127
|
-
const duration =
|
31136
|
+
const duration = getDuration(videoEl);
|
31128
31137
|
const videoProgress2 = Math.floor(getPercentage(videoEl.currentTime, duration));
|
31129
31138
|
let bufferProgress2 = 0;
|
31130
31139
|
if (videoEl.buffered.length > 0) {
|
31131
|
-
bufferProgress2 = Math.floor(getPercentage((
|
31140
|
+
bufferProgress2 = Math.floor(getPercentage((_a8 = videoEl.buffered) == null ? void 0 : _a8.end(0), duration));
|
31132
31141
|
}
|
31133
31142
|
if (!isNaN(videoProgress2)) {
|
31134
31143
|
setVideoProgress(videoProgress2);
|
@@ -31147,6 +31156,7 @@ var init_VideoProgress = __esm({
|
|
31147
31156
|
if (!videoEl) {
|
31148
31157
|
return;
|
31149
31158
|
}
|
31159
|
+
setProgress();
|
31150
31160
|
videoEl.addEventListener("timeupdate", timeupdateHandler);
|
31151
31161
|
return function cleanup() {
|
31152
31162
|
videoEl == null ? void 0 : videoEl.removeEventListener("timeupdate", timeupdateHandler);
|
@@ -31218,24 +31228,32 @@ var init_VideoTime = __esm({
|
|
31218
31228
|
init_utils6();
|
31219
31229
|
VideoTime = () => {
|
31220
31230
|
const { hlsPlayer: hlsPlayer2 } = useHMSPlayerContext();
|
31221
|
-
const [videoTime, setVideoTime] = (0, import_react189.useState)(
|
31222
|
-
(0, import_react189.
|
31223
|
-
|
31231
|
+
const [videoTime, setVideoTime] = (0, import_react189.useState)(getDurationFromSeconds2(0));
|
31232
|
+
const updateTime = (0, import_react189.useCallback)(
|
31233
|
+
(currentTime) => {
|
31224
31234
|
const videoEl = hlsPlayer2 == null ? void 0 : hlsPlayer2.getVideoElement();
|
31225
31235
|
if (videoEl) {
|
31226
|
-
const duration =
|
31236
|
+
const duration = getDuration(videoEl);
|
31227
31237
|
setVideoTime(getDurationFromSeconds2(duration - currentTime));
|
31228
31238
|
} else {
|
31229
31239
|
setVideoTime(getDurationFromSeconds2(currentTime));
|
31230
31240
|
}
|
31241
|
+
},
|
31242
|
+
[hlsPlayer2]
|
31243
|
+
);
|
31244
|
+
(0, import_react189.useEffect)(() => {
|
31245
|
+
const timeupdateHandler = (currentTime) => {
|
31246
|
+
updateTime(currentTime);
|
31231
31247
|
};
|
31232
31248
|
if (hlsPlayer2) {
|
31233
31249
|
hlsPlayer2.on(import_hls_player2.HMSHLSPlayerEvents.CURRENT_TIME, timeupdateHandler);
|
31250
|
+
const videoEl = hlsPlayer2 == null ? void 0 : hlsPlayer2.getVideoElement();
|
31251
|
+
updateTime(videoEl.currentTime);
|
31234
31252
|
}
|
31235
31253
|
return function cleanup() {
|
31236
31254
|
hlsPlayer2 == null ? void 0 : hlsPlayer2.off(import_hls_player2.HMSHLSPlayerEvents.CURRENT_TIME, timeupdateHandler);
|
31237
31255
|
};
|
31238
|
-
}, [hlsPlayer2]);
|
31256
|
+
}, [hlsPlayer2, updateTime]);
|
31239
31257
|
return hlsPlayer2 ? /* @__PURE__ */ import_react189.default.createElement(
|
31240
31258
|
Text,
|
31241
31259
|
{
|