Skip to content

The free and privacy-friendly screen recorder with no limits 🎥

2x oversampled capture, MP4 on MediaRecorder, better permissions policy handling

Alyssa X090077c59d4d
diff --git a/THIRD_PARTY_NOTICES.md b/THIRD_PARTY_NOTICES.md
new file mode 100644
index 0000000..f711938
--- /dev/null
+++ b/THIRD_PARTY_NOTICES.md
@@ -0,0 +1,926 @@
+# Third-party notices
+
+Screenity is licensed under the [GNU General Public License v3.0](./LICENSE).
+
+The extension bundles some third-party open source code. Each dependency keeps its own license, listed below with its full license text.
+
+This only covers code that ships in the built extension (runtime dependencies and bundled binaries). Build tooling isn't included.
+
+Generated from `package.json` and `package-lock.json`. Regenerate if the dependencies change.
+
+---
+
+## Bundled binaries: Google MediaPipe
+
+These prebuilt MediaPipe files (`@mediapipe/tasks-vision`) are checked into `src/assets/mediapipeVision/` and ship in the extension:
+
+- `vision_wasm_internal.wasm`
+- `vision_wasm_internal.js`
+- `selfie_segmenter.tflite`
+
+Copyright 2019-2024 The MediaPipe Authors (Google LLC), under the **Apache License, Version 2.0** (full text below). Attribution notice:
+
+> MediaPipe
+> Copyright 2019-2024 The MediaPipe Authors.
+>
+> This product includes software developed at Google LLC.
+
+---
+
+## Components by license
+
+### Apache License 2.0
+_SPDX `Apache-2.0`, 2 packages_
+
+- **@mediapipe/tasks-vision** @ 0.10.32, Copyright 2019-2024 The MediaPipe Authors (Google LLC)
+- **localforage** @ 1.10.0, Copyright (c) 2013-2017 Mozilla
+
+### Mozilla Public License 2.0
+_SPDX `MPL-2.0`, 1 package_
+
+- **mediabunny** @ 1.46.0, Copyright (c) Vanilagy and contributors
+
+### MIT License
+_SPDX `MIT`, 144 packages_
+
+- **@babel/runtime** @ 7.28.4, Copyright (c) 2014-present Sebastian McKenzie and other contributors
+- **@floating-ui/core** @ 1.7.3, Copyright (c) 2021-present Floating UI contributors
+- **@floating-ui/dom** @ 1.7.4, Copyright (c) 2021-present Floating UI contributors
+- **@floating-ui/react-dom** @ 2.1.6, Copyright (c) 2021-present Floating UI contributors
+- **@floating-ui/utils** @ 0.2.10, Copyright (c) 2021-present Floating UI contributors
+- **@radix-ui/number** @ 1.0.1, Copyright (c) 2022 WorkOS
+- **@radix-ui/primitive** @ 1.1.3, Copyright (c) 2022 WorkOS
+- **@radix-ui/react-alert-dialog** @ 1.1.15, Copyright (c) 2022 WorkOS
+- **@radix-ui/react-arrow** @ 1.1.7, Copyright (c) 2022 WorkOS
+- **@radix-ui/react-collapsible** @ 1.1.12, Copyright (c) 2022 WorkOS
+- **@radix-ui/react-collection** @ 1.1.7, Copyright (c) 2022 WorkOS
+- **@radix-ui/react-compose-refs** @ 1.1.2, Copyright (c) 2022 WorkOS
+- **@radix-ui/react-context** @ 1.1.2, Copyright (c) 2022 WorkOS
+- **@radix-ui/react-dialog** @ 1.1.15, Copyright (c) 2022 WorkOS
+- **@radix-ui/react-direction** @ 1.1.1, Copyright (c) 2022 WorkOS
+- **@radix-ui/react-dismissable-layer** @ 1.1.11, Copyright (c) 2022 WorkOS
+- **@radix-ui/react-dropdown-menu** @ 2.1.16, Copyright (c) 2022 WorkOS
+- **@radix-ui/react-focus-guards** @ 1.1.3, Copyright (c) 2022 WorkOS
+- **@radix-ui/react-focus-scope** @ 1.1.7, Copyright (c) 2022 WorkOS
+- **@radix-ui/react-id** @ 1.1.1, Copyright (c) 2022 WorkOS
+- **@radix-ui/react-menu** @ 2.1.16, Copyright (c) 2022 WorkOS
+- **@radix-ui/react-popover** @ 1.1.15, Copyright (c) 2022 WorkOS
+- **@radix-ui/react-popper** @ 1.2.8, Copyright (c) 2022 WorkOS
+- **@radix-ui/react-portal** @ 1.1.9, Copyright (c) 2022 WorkOS
+- **@radix-ui/react-presence** @ 1.1.5, Copyright (c) 2022 WorkOS
+- **@radix-ui/react-primitive** @ 2.1.3, Copyright (c) 2022 WorkOS
+- **@radix-ui/react-roving-focus** @ 1.1.11, Copyright (c) 2022 WorkOS
+- **@radix-ui/react-select** @ 1.2.2, Copyright (c) 2022 WorkOS
+- **@radix-ui/react-separator** @ 1.1.7, Copyright (c) 2022 WorkOS
+- **@radix-ui/react-slider** @ 1.3.6, Copyright (c) 2022 WorkOS
+- **@radix-ui/react-slot** @ 1.2.3, Copyright (c) 2022 WorkOS
+- **@radix-ui/react-switch** @ 1.2.6, Copyright (c) 2022 WorkOS
+- **@radix-ui/react-tabs** @ 1.1.13, Copyright (c) 2022 WorkOS
+- **@radix-ui/react-toast** @ 1.2.15, Copyright (c) 2022 WorkOS
+- **@radix-ui/react-toggle** @ 1.1.10, Copyright (c) 2022 WorkOS
+- **@radix-ui/react-toggle-group** @ 1.1.11, Copyright (c) 2022 WorkOS
+- **@radix-ui/react-toolbar** @ 1.1.11, Copyright (c) 2022 WorkOS
+- **@radix-ui/react-tooltip** @ 1.2.8, Copyright (c) 2022 WorkOS
+- **@radix-ui/react-use-callback-ref** @ 1.1.1, Copyright (c) 2022 WorkOS
+- **@radix-ui/react-use-controllable-state** @ 1.2.2, Copyright (c) 2022 WorkOS
+- **@radix-ui/react-use-effect-event** @ 0.0.2, Copyright (c) 2022 WorkOS
+- **@radix-ui/react-use-escape-keydown** @ 1.1.1, Copyright (c) 2022 WorkOS
+- **@radix-ui/react-use-layout-effect** @ 1.1.1, Copyright (c) 2022 WorkOS
+- **@radix-ui/react-use-previous** @ 1.0.1, Copyright (c) 2022 WorkOS
+- **@radix-ui/react-use-rect** @ 1.1.1, Copyright (c) 2022 WorkOS
+- **@radix-ui/react-use-size** @ 1.1.1, Copyright (c) 2022 WorkOS
+- **@radix-ui/react-visually-hidden** @ 1.0.3, Copyright (c) 2022 WorkOS
+- **@radix-ui/rect** @ 1.1.1, Copyright (c) 2022 WorkOS
+- **@sentry-internal/feedback** @ 7.120.4, Copyright (c) 2023 Sentry (https://sentry.io) and individual contributors. All rights reserved.
+- **@sentry-internal/replay-canvas** @ 7.120.4, Copyright (c) 2024 Sentry (https://sentry.io) and individual contributors. All rights reserved.
+- **@sentry-internal/tracing** @ 7.120.4, Copyright (c) 2020 Sentry (https://sentry.io) and individual contributors. All rights reserved.
+- **@sentry/browser** @ 7.120.4, Copyright (c) 2019 Sentry (https://sentry.io) and individual contributors. All rights reserved.
+- **@sentry/core** @ 7.120.4, Copyright (c) 2019 Sentry (https://sentry.io) and individual contributors. All rights reserved.
+- **@sentry/integrations** @ 7.120.4, Copyright (c) 2019 Sentry (https://sentry.io) and individual contributors. All rights reserved.
+- **@sentry/replay** @ 7.120.4, Copyright (c) 2022 Sentry (https://sentry.io) and individual contributors. All rights reserved.
+- **@sentry/types** @ 7.120.4, Copyright (c) 2019 Sentry (https://sentry.io) and individual contributors. All rights reserved.
+- **@sentry/utils** @ 7.120.4, Copyright (c) 2019 Sentry (https://sentry.io) and individual contributors. All rights reserved.
+- **@tanem/svg-injector** @ 10.1.68, Copyright (c) 2018 Tane Morgan
+- **@types/dom-mediacapture-transform** @ 0.1.11, Copyright (c) Microsoft Corporation.
+- **@types/dom-webcodecs** @ 0.1.13, Copyright (c) Microsoft Corporation.
+- **@types/prop-types** @ 15.7.15, Copyright (c) Microsoft Corporation.
+- **@uiw/color-convert** @ 1.4.3, Copyright (c) Kenny Wong <[email protected]>
+- **@uiw/react-color-wheel** @ 1.4.3, Copyright (c) Kenny Wong <[email protected]>
+- **@uiw/react-drag-event-interactive** @ 1.4.3, Copyright (c) Kenny Wong <[email protected]>
+- **advanced-cropper** @ 0.18.0, Copyright (c) Norserium
+- **aria-hidden** @ 1.2.6, Copyright (c) 2017 Anton Korzunov
+- **asynckit** @ 0.4.0, Copyright (c) 2016 Alex Indigo
+- **axios** @ 1.13.5, # Copyright (c) 2014-present Matt Zabriskie & Collaborators
+- **base64-js** @ 1.5.1, Copyright (c) 2014 Jameson Little
+- **buffer** @ 6.0.3, Copyright (c) Feross Aboukhadijeh, and other contributors.
+- **call-bind-apply-helpers** @ 1.0.2, Copyright (c) 2024 Jordan Harband
+- **classnames** @ 2.5.1, Copyright (c) 2018 Jed Watson
+- **clsx** @ 1.2.1, Copyright (c) Luke Edwards <[email protected]> (lukeed.com)
+- **combined-stream** @ 1.0.8, Copyright (c) 2011 Debuggable Limited <[email protected]>
+- **content-type** @ 1.0.5, Copyright (c) 2015 Douglas Christopher Wilson
+- **core-js** @ 3.46.0, Copyright (c) 2014-2025 Denis Pushkarev, 2025 CoreJS Company
+- **core-util-is** @ 1.0.3
+- **custom-event-polyfill** @ 1.0.7, Copyright (c) 2016 Evan Krambuhl
+- **delayed-stream** @ 1.0.0, Copyright (c) 2011 Debuggable Limited <[email protected]>
+- **detect-node-es** @ 1.1.0, Copyright (c) 2017 Ilya Kantor
+- **driver.js** @ 1.4.0, Copyright (c) Kamran Ahmed
+- **dunder-proto** @ 1.0.1, Copyright (c) 2024 ECMAScript Shims
+- **ebml-block** @ 1.1.2, Copyright (c) 2016 Mathias Rasmussen
+- **es-define-property** @ 1.0.1, Copyright (c) 2024 Jordan Harband
+- **es-errors** @ 1.3.0, Copyright (c) 2024 Jordan Harband
+- **es-object-atoms** @ 1.1.1, Copyright (c) 2024 Jordan Harband
+- **es-set-tostringtag** @ 2.1.0, Copyright (c) 2022 ECMAScript Shims
+- **events** @ 3.3.0
+- **fabric** @ 6.9.1, Copyright (c) 2008-2015 Printio (Juriy Zaytsev, Maxim Chernyak)
+- **fix-webm-duration** @ 1.0.6, Copyright (c) 2018 Yury Sitnikov
+- **follow-redirects** @ 1.15.11, Copyright 2014-present Olivier Lalonde <[email protected]>, James Talmage <[email protected]>, Ruben Verborgh
+- **form-data** @ 4.0.5, Copyright (c) 2012 Felix Geisendörfer ([email protected]) and contributors
+- **function-bind** @ 1.1.2, Copyright (c) 2013 Raynos.
+- **get-intrinsic** @ 1.3.0, Copyright (c) 2020 Jordan Harband
+- **get-nonce** @ 1.0.1, Copyright (c) 2020 Anton Korzunov
+- **get-proto** @ 1.0.1, Copyright (c) 2025 Jordan Harband
+- **gif.js** @ 0.2.0, Copyright (c) Johan Nordberg <[email protected]>
+- **gopd** @ 1.2.0, Copyright (c) 2022 Jordan Harband
+- **has-symbols** @ 1.1.0, Copyright (c) 2016 Jordan Harband
+- **has-tostringtag** @ 1.0.2, Copyright (c) 2021 Inspect JS
+- **hasown** @ 2.0.2, Copyright (c) Jordan Harband and contributors
+- **humps** @ 2.0.1, Copyright (c) Dom Christie
+- **immediate** @ 3.0.6, Copyright (c) 2012 Barnesandnoble.com, llc, Donavon West, Domenic Denicola, Brian Cavalier
+- **int64-buffer** @ 1.1.0, Copyright (c) 2015-2020 Yusuke Kawasaki
+- **isarray** @ 2.0.5, Copyright (c) 2013 Julian Gruber <[email protected]>
+- **js-tokens** @ 4.0.0, Copyright (c) 2014, 2015, 2016, 2017, 2018 Simon Lydell
+- **lie** @ 3.3.0, #Copyright (c) 2014-2018 Calvin Metcalf, Jordan Harband
+- **loadjs** @ 4.3.0, Copyright (c) 2015 Andres Morey
+- **loose-envify** @ 1.4.0, Copyright (c) 2015 Andres Suarez <[email protected]>
+- **math-intrinsics** @ 1.1.0, Copyright (c) 2024 ECMAScript Shims
+- **mime-db** @ 1.52.0, Copyright (c) 2014 Jonathan Ong <[email protected]>
+- **mime-types** @ 2.1.35, Copyright (c) 2014 Jonathan Ong <[email protected]>
+- **object-assign** @ 4.1.1, Copyright (c) Sindre Sorhus <[email protected]> (sindresorhus.com)
+- **plyr** @ 3.7.8, Copyright (c) 2017 Sam Potts
+- **plyr-react** @ 5.3.0, Copyright (c) 2020 Chintan Prajapati
+- **process-nextick-args** @ 2.0.1, # Copyright (c) 2015 Calvin Metcalf
+- **prop-types** @ 15.8.1, Copyright (c) 2013-present, Facebook, Inc.
+- **proxy-from-env** @ 1.1.0, Copyright (C) 2016-2018 Rob Wu <[email protected]>
+- **querystring** @ 0.2.1, Copyright 2012 Irakli Gozalishvili
+- **rangetouch** @ 2.0.1, Copyright (c) 2019 Sam Potts
+- **re-resizable** @ 6.11.2, Copyright (c) 2018 @bokuweb
+- **react** @ 18.3.1, Copyright (c) Facebook, Inc. and its affiliates.
+- **react-advanced-cropper** @ 0.19.6, Copyright (c) Norserium, https://github.com/Norserium
+- **react-aptor** @ 2.0.0, Copyright (c) 2022 Amir.H Ebrahimi
+- **react-dom** @ 18.3.1, Copyright (c) Facebook, Inc. and its affiliates.
+- **react-draggable** @ 4.4.6, Copyright (c) 2014-2016 Matt Zabriskie. All rights reserved.
+- **react-hotkeys-hook** @ 4.6.2, Copyright (c) 2018 Johannes Klauss
+- **react-is** @ 16.13.1, Copyright (c) Facebook, Inc. and its affiliates.
+- **react-remove-scroll** @ 2.7.1, Copyright (c) 2017 Anton Korzunov
+- **react-remove-scroll-bar** @ 2.3.8, Copyright (c) Anton Korzunov <[email protected]>
+- **react-rnd** @ 10.5.2, Copyright (c) 2017 @bokuweb
+- **react-shadow** @ 20.6.0, Copyright (c) 2015 Adam Timberlake
+- **react-style-singleton** @ 2.2.3, Copyright (c) 2017 Anton Korzunov
+- **react-svg** @ 16.3.0, Copyright (c) 2014 Tane Morgan
+- **readable-stream** @ 2.3.8
+- **safe-buffer** @ 5.1.2, Copyright (c) Feross Aboukhadijeh
+- **scheduler** @ 0.23.2, Copyright (c) Facebook, Inc. and its affiliates.
+- **setimmediate** @ 1.0.5, Copyright (c) 2012 Barnesandnoble.com, llc, Donavon West, and Domenic Denicola
+- **ssestream** @ 1.1.0, Copyright (c) EventSource GitHub organisation
+- **string_decoder** @ 1.1.1
+- **url-polyfill** @ 1.1.14, Copyright (c) 2017 Valentin Richard
+- **use-callback-ref** @ 1.3.3, Copyright (c) 2017 Anton Korzunov
+- **use-sidecar** @ 1.1.3, Copyright (c) 2017 Anton Korzunov
+- **util-deprecate** @ 1.0.2, Copyright (c) 2014 Nathan Rajlich <[email protected]>
+
+### MIT License (dual-licensed MIT / GPL-3.0-or-later; used here under MIT)
+_SPDX `(MIT OR GPL-3.0-or-later)`, 1 package_
+
+- **jszip** @ 3.10.1, Copyright (c) 2009-2016 Stuart Knightley, David Duponchel, Franz Buchinger, António Afonso
+
+### MIT License AND zlib License
+_SPDX `(MIT AND Zlib)`, 1 package_
+
+- **pako** @ 1.0.11, Copyright (C) 2014-2017 by Vitaly Puzrin and Andrei Tuputcyn
+
+### BSD 3-Clause License
+_SPDX `BSD-3-Clause`, 2 packages_
+
+- **ieee754** @ 1.2.1, Copyright 2008 Fair Oaks Labs, Inc.
+- **wavesurfer.js** @ 7.11.0, Copyright (c) 2012-2023, katspaugh and contributors
+
+### ISC License
+_SPDX `ISC`, 2 packages_
+
+- **inherits** @ 2.0.4, Copyright (c) Isaac Z. Schlueter
+- **webm-duration-fix** @ 1.0.4, Copyright (c) buynao
+
+### BSD Zero Clause License
+_SPDX `0BSD`, 1 package_
+
+- **tslib** @ 2.8.1, Copyright (c) Microsoft Corporation.
+
+---
+
+# Full license texts
+
+## Apache License 2.0
+
+Applies to the Apache-2.0 components above, including the bundled MediaPipe files.
+
+```
+Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "{}"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright 2014 Mozilla
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+```
+
+## Mozilla Public License 2.0
+
+Applies to **mediabunny**, bundled unmodified from npm (`[email protected]`). Source is available upstream.
+
+```
+Mozilla Public License Version 2.0
+==================================
+
+1. Definitions
+--------------
+
+1.1. "Contributor"
+ means each individual or legal entity that creates, contributes to
+ the creation of, or owns Covered Software.
+
+1.2. "Contributor Version"
+ means the combination of the Contributions of others (if any) used
+ by a Contributor and that particular Contributor's Contribution.
+
+1.3. "Contribution"
+ means Covered Software of a particular Contributor.
+
+1.4. "Covered Software"
+ means Source Code Form to which the initial Contributor has attached
+ the notice in Exhibit A, the Executable Form of such Source Code
+ Form, and Modifications of such Source Code Form, in each case
+ including portions thereof.
+
+1.5. "Incompatible With Secondary Licenses"
+ means
+
+ (a) that the initial Contributor has attached the notice described
+ in Exhibit B to the Covered Software; or
+
+ (b) that the Covered Software was made available under the terms of
+ version 1.1 or earlier of the License, but not also under the
+ terms of a Secondary License.
+
+1.6. "Executable Form"
+ means any form of the work other than Source Code Form.
+
+1.7. "Larger Work"
+ means a work that combines Covered Software with other material, in
+ a separate file or files, that is not Covered Software.
+
+1.8. "License"
+ means this document.
+
+1.9. "Licensable"
+ means having the right to grant, to the maximum extent possible,
+ whether at the time of the initial grant or subsequently, any and
+ all of the rights conveyed by this License.
+
+1.10. "Modifications"
+ means any of the following:
+
+ (a) any file in Source Code Form that results from an addition to,
+ deletion from, or modification of the contents of Covered
+ Software; or
+
+ (b) any new file in Source Code Form that contains any Covered
+ Software.
+
+1.11. "Patent Claims" of a Contributor
+ means any patent claim(s), including without limitation, method,
+ process, and apparatus claims, in any patent Licensable by such
+ Contributor that would be infringed, but for the grant of the
+ License, by the making, using, selling, offering for sale, having
+ made, import, or transfer of either its Contributions or its
+ Contributor Version.
+
+1.12. "Secondary License"
+ means either the GNU General Public License, Version 2.0, the GNU
+ Lesser General Public License, Version 2.1, the GNU Affero General
+ Public License, Version 3.0, or any later versions of those
+ licenses.
+
+1.13. "Source Code Form"
+ means the form of the work preferred for making modifications.
+
+1.14. "You" (or "Your")
+ means an individual or a legal entity exercising rights under this
+ License. For legal entities, "You" includes any entity that
+ controls, is controlled by, or is under common control with You. For
+ purposes of this definition, "control" means (a) the power, direct
+ or indirect, to cause the direction or management of such entity,
+ whether by contract or otherwise, or (b) ownership of more than
+ fifty percent (50%) of the outstanding shares or beneficial
+ ownership of such entity.
+
+2. License Grants and Conditions
+--------------------------------
+
+2.1. Grants
+
+Each Contributor hereby grants You a world-wide, royalty-free,
+non-exclusive license:
+
+(a) under intellectual property rights (other than patent or trademark)
+ Licensable by such Contributor to use, reproduce, make available,
+ modify, display, perform, distribute, and otherwise exploit its
+ Contributions, either on an unmodified basis, with Modifications, or
+ as part of a Larger Work; and
+
+(b) under Patent Claims of such Contributor to make, use, sell, offer
+ for sale, have made, import, and otherwise transfer either its
+ Contributions or its Contributor Version.
+
+2.2. Effective Date
+
+The licenses granted in Section 2.1 with respect to any Contribution
+become effective for each Contribution on the date the Contributor first
+distributes such Contribution.
+
+2.3. Limitations on Grant Scope
+
+The licenses granted in this Section 2 are the only rights granted under
+this License. No additional rights or licenses will be implied from the
+distribution or licensing of Covered Software under this License.
+Notwithstanding Section 2.1(b) above, no patent license is granted by a
+Contributor:
+
+(a) for any code that a Contributor has removed from Covered Software;
+ or
+
+(b) for infringements caused by: (i) Your and any other third party's
+ modifications of Covered Software, or (ii) the combination of its
+ Contributions with other software (except as part of its Contributor
+ Version); or
+
+(c) under Patent Claims infringed by Covered Software in the absence of
+ its Contributions.
+
+This License does not grant any rights in the trademarks, service marks,
+or logos of any Contributor (except as may be necessary to comply with
+the notice requirements in Section 3.4).
+
+2.4. Subsequent Licenses
+
+No Contributor makes additional grants as a result of Your choice to
+distribute the Covered Software under a subsequent version of this
+License (see Section 10.2) or under the terms of a Secondary License (if
+permitted under the terms of Section 3.3).
+
+2.5. Representation
+
+Each Contributor represents that the Contributor believes its
+Contributions are its original creation(s) or it has sufficient rights
+to grant the rights to its Contributions conveyed by this License.
+
+2.6. Fair Use
+
+This License is not intended to limit any rights You have under
+applicable copyright doctrines of fair use, fair dealing, or other
+equivalents.
+
+2.7. Conditions
+
+Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted
+in Section 2.1.
+
+3. Responsibilities
+-------------------
+
+3.1. Distribution of Source Form
+
+All distribution of Covered Software in Source Code Form, including any
+Modifications that You create or to which You contribute, must be under
+the terms of this License. You must inform recipients that the Source
+Code Form of the Covered Software is governed by the terms of this
+License, and how they can obtain a copy of this License. You may not
+attempt to alter or restrict the recipients' rights in the Source Code
+Form.
+
+3.2. Distribution of Executable Form
+
+If You distribute Covered Software in Executable Form then:
+
+(a) such Covered Software must also be made available in Source Code
+ Form, as described in Section 3.1, and You must inform recipients of
+ the Executable Form how they can obtain a copy of such Source Code
+ Form by reasonable means in a timely manner, at a charge no more
+ than the cost of distribution to the recipient; and
+
+(b) You may distribute such Executable Form under the terms of this
+ License, or sublicense it under different terms, provided that the
+ license for the Executable Form does not attempt to limit or alter
+ the recipients' rights in the Source Code Form under this License.
+
+3.3. Distribution of a Larger Work
+
+You may create and distribute a Larger Work under terms of Your choice,
+provided that You also comply with the requirements of this License for
+the Covered Software. If the Larger Work is a combination of Covered
+Software with a work governed by one or more Secondary Licenses, and the
+Covered Software is not Incompatible With Secondary Licenses, this
+License permits You to additionally distribute such Covered Software
+under the terms of such Secondary License(s), so that the recipient of
+the Larger Work may, at their option, further distribute the Covered
+Software under the terms of either this License or such Secondary
+License(s).
+
+3.4. Notices
+
+You may not remove or alter the substance of any license notices
+(including copyright notices, patent notices, disclaimers of warranty,
+or limitations of liability) contained within the Source Code Form of
+the Covered Software, except that You may alter any license notices to
+the extent required to remedy known factual inaccuracies.
+
+3.5. Application of Additional Terms
+
+You may choose to offer, and to charge a fee for, warranty, support,
+indemnity or liability obligations to one or more recipients of Covered
+Software. However, You may do so only on Your own behalf, and not on
+behalf of any Contributor. You must make it absolutely clear that any
+such warranty, support, indemnity, or liability obligation is offered by
+You alone, and You hereby agree to indemnify every Contributor for any
+liability incurred by such Contributor as a result of warranty, support,
+indemnity or liability terms You offer. You may include additional
+disclaimers of warranty and limitations of liability specific to any
+jurisdiction.
+
+4. Inability to Comply Due to Statute or Regulation
+---------------------------------------------------
+
+If it is impossible for You to comply with any of the terms of this
+License with respect to some or all of the Covered Software due to
+statute, judicial order, or regulation then You must: (a) comply with
+the terms of this License to the maximum extent possible; and (b)
+describe the limitations and the code they affect. Such description must
+be placed in a text file included with all distributions of the Covered
+Software under this License. Except to the extent prohibited by statute
+or regulation, such description must be sufficiently detailed for a
+recipient of ordinary skill to be able to understand it.
+
+5. Termination
+--------------
+
+5.1. The rights granted under this License will terminate automatically
+if You fail to comply with any of its terms. However, if You become
+compliant, then the rights granted under this License from a particular
+Contributor are reinstated (a) provisionally, unless and until such
+Contributor explicitly and finally terminates Your grants, and (b) on an
+ongoing basis, if such Contributor fails to notify You of the
+non-compliance by some reasonable means prior to 60 days after You have
+come back into compliance. Moreover, Your grants from a particular
+Contributor are reinstated on an ongoing basis if such Contributor
+notifies You of the non-compliance by some reasonable means, this is the
+first time You have received notice of non-compliance with this License
+from such Contributor, and You become compliant prior to 30 days after
+Your receipt of the notice.
+
+5.2. If You initiate litigation against any entity by asserting a patent
+infringement claim (excluding declaratory judgment actions,
+counter-claims, and cross-claims) alleging that a Contributor Version
+directly or indirectly infringes any patent, then the rights granted to
+You by any and all Contributors for the Covered Software under Section
+2.1 of this License shall terminate.
+
+5.3. In the event of termination under Sections 5.1 or 5.2 above, all
+end user license agreements (excluding distributors and resellers) which
+have been validly granted by You or Your distributors under this License
+prior to termination shall survive termination.
+
+************************************************************************
+* *
+* 6. Disclaimer of Warranty *
+* ------------------------- *
+* *
+* Covered Software is provided under this License on an "as is" *
+* basis, without warranty of any kind, either expressed, implied, or *
+* statutory, including, without limitation, warranties that the *
+* Covered Software is free of defects, merchantable, fit for a *
+* particular purpose or non-infringing. The entire risk as to the *
+* quality and performance of the Covered Software is with You. *
+* Should any Covered Software prove defective in any respect, You *
+* (not any Contributor) assume the cost of any necessary servicing, *
+* repair, or correction. This disclaimer of warranty constitutes an *
+* essential part of this License. No use of any Covered Software is *
+* authorized under this License except under this disclaimer. *
+* *
+************************************************************************
+
+************************************************************************
+* *
+* 7. Limitation of Liability *
+* -------------------------- *
+* *
+* Under no circumstances and under no legal theory, whether tort *
+* (including negligence), contract, or otherwise, shall any *
+* Contributor, or anyone who distributes Covered Software as *
+* permitted above, be liable to You for any direct, indirect, *
+* special, incidental, or consequential damages of any character *
+* including, without limitation, damages for lost profits, loss of *
+* goodwill, work stoppage, computer failure or malfunction, or any *
+* and all other commercial damages or losses, even if such party *
+* shall have been informed of the possibility of such damages. This *
+* limitation of liability shall not apply to liability for death or *
+* personal injury resulting from such party's negligence to the *
+* extent applicable law prohibits such limitation. Some *
+* jurisdictions do not allow the exclusion or limitation of *
+* incidental or consequential damages, so this exclusion and *
+* limitation may not apply to You. *
+* *
+************************************************************************
+
+8. Litigation
+-------------
+
+Any litigation relating to this License may be brought only in the
+courts of a jurisdiction where the defendant maintains its principal
+place of business and such litigation shall be governed by laws of that
+jurisdiction, without reference to its conflict-of-law provisions.
+Nothing in this Section shall prevent a party's ability to bring
+cross-claims or counter-claims.
+
+9. Miscellaneous
+----------------
+
+This License represents the complete agreement concerning the subject
+matter hereof. If any provision of this License is held to be
+unenforceable, such provision shall be reformed only to the extent
+necessary to make it enforceable. Any law or regulation which provides
+that the language of a contract shall be construed against the drafter
+shall not be used to construe this License against a Contributor.
+
+10. Versions of the License
+---------------------------
+
+10.1. New Versions
+
+Mozilla Foundation is the license steward. Except as provided in Section
+10.3, no one other than the license steward has the right to modify or
+publish new versions of this License. Each version will be given a
+distinguishing version number.
+
+10.2. Effect of New Versions
+
+You may distribute the Covered Software under the terms of the version
+of the License under which You originally received the Covered Software,
+or under the terms of any subsequent version published by the license
+steward.
+
+10.3. Modified Versions
+
+If you create software not governed by this License, and you want to
+create a new license for such software, you may create and use a
+modified version of this License if you rename the license and remove
+any references to the name of the license steward (except to note that
+such modified license differs from this License).
+
+10.4. Distributing Source Code Form that is Incompatible With Secondary
+Licenses
+
+If You choose to distribute Source Code Form that is Incompatible With
+Secondary Licenses under the terms of this version of the License, the
+notice described in Exhibit B of this License must be attached.
+
+Exhibit A - Source Code Form License Notice
+-------------------------------------------
+
+ This Source Code Form is subject to the terms of the Mozilla Public
+ License, v. 2.0. If a copy of the MPL was not distributed with this
+ file, You can obtain one at https://mozilla.org/MPL/2.0/.
+
+If it is not possible or desirable to put the notice in a particular
+file, then You may include the notice in a location (such as a LICENSE
+file in a relevant directory) where a recipient would be likely to look
+for such a notice.
+
+You may add additional accurate notices of copyright ownership.
+
+Exhibit B - "Incompatible With Secondary Licenses" Notice
+---------------------------------------------------------
+
+ This Source Code Form is "Incompatible With Secondary Licenses", as
+ defined by the Mozilla Public License, v. 2.0.
+```
+
+## MIT License
+
+Applies to the MIT components above, and to `jszip` (dual-licensed, used here under MIT). Each keeps its own copyright notice from the list, with this permission notice:
+
+```
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+```
+
+## BSD 3-Clause License
+
+Applies to the BSD-3-Clause components above, with each component's copyright notice from the list.
+
+```
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+1. Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+2. Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+3. Neither the name of the copyright holder nor the names of its contributors
+ may be used to endorse or promote products derived from this software
+ without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+```
+
+## ISC License
+
+Applies to the ISC components above, with each component's copyright notice from the list.
+
+```
+Permission to use, copy, modify, and/or distribute this software for any
+purpose with or without fee is hereby granted, provided that the above
+copyright notice and this permission notice appear in all copies.
+
+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
+REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
+INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
+LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
+OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+PERFORMANCE OF THIS SOFTWARE.
+```
+
+## BSD Zero Clause License (0BSD)
+
+Applies to **tslib**.
+
+```
+Copyright (c) Microsoft Corporation.
+
+Permission to use, copy, modify, and/or distribute this software for any
+purpose with or without fee is hereby granted.
+
+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
+REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
+INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
+LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
+OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+PERFORMANCE OF THIS SOFTWARE.
+```
+
+## zlib License (pako)
+
+**pako** is under both the MIT and zlib licenses. Combined notice:
+
+```
+(The MIT License)
+
+Copyright (C) 2014-2017 by Vitaly Puzrin and Andrei Tuputcyn
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
+```
diff --git a/eslint.config.mjs b/eslint.config.mjs
new file mode 100644
index 0000000..daea602
--- /dev/null
+++ b/eslint.config.mjs
@@ -0,0 +1,54 @@
+import globals from "globals";
+import reactHooks from "eslint-plugin-react-hooks";
+
+// Deliberately narrow: correctness rules only, no style. The bug this exists to
+// catch is a symbol used but never imported, which compiles fine under webpack
+// and only fails at runtime.
+export default [
+ {
+ ignores: [
+ "build/**",
+ "node_modules/**",
+ "tests/**",
+ // Vendored/generated third-party bundles.
+ "src/assets/**",
+ "src/pages/Editor/mediabunny/**",
+ "**/*.min.js",
+ ],
+ },
+ {
+ files: ["**/*.js", "**/*.jsx", "**/*.mjs"],
+ // The codebase carries react-hooks disable directives; registering the
+ // plugin makes them resolve. Its rules stay off, this config is not a
+ // style pass.
+ plugins: { "react-hooks": reactHooks },
+ linterOptions: {
+ // Directives reference rules this config doesn't enable, which is fine.
+ reportUnusedDisableDirectives: "off",
+ },
+ languageOptions: {
+ ecmaVersion: "latest",
+ sourceType: "module",
+ parserOptions: { ecmaFeatures: { jsx: true } },
+ globals: {
+ ...globals.browser,
+ ...globals.webextensions,
+ ...globals.worker,
+ ...globals.node,
+ },
+ },
+ rules: {
+ "no-undef": "error",
+ "no-dupe-keys": "error",
+ "no-dupe-args": "error",
+ "no-unreachable": "error",
+ "no-const-assign": "error",
+ "no-self-assign": "error",
+ "no-cond-assign": "error",
+ "no-compare-neg-zero": "error",
+ "no-dupe-else-if": "error",
+ "no-duplicate-case": "error",
+ "use-isnan": "error",
+ },
+ },
+];
diff --git a/package-lock.json b/package-lock.json
index 66663a6..c9bdb13 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "screenity",
- "version": "4.4.14",
+ "version": "4.5.6",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "screenity",
- "version": "4.4.14",
+ "version": "4.5.6",
"hasInstallScript": true,
"dependencies": {
"@babel/plugin-transform-react-jsx": "^7.27.1",
@@ -69,7 +69,10 @@
"cross-env": "^7.0.3",
"css-loader": "^6.7.2",
"dotenv-cli": "^11.0.0",
+ "eslint": "10.7.0",
+ "eslint-plugin-react-hooks": "7.1.1",
"fs-extra": "^10.1.0",
+ "globals": "17.7.0",
"html-loader": "^3.1.0",
"html-webpack-plugin": "^5.5.0",
"prettier": "^2.7.1",
@@ -1822,6 +1825,113 @@
"node": ">=10.0.0"
}
},
+ "node_modules/@eslint-community/eslint-utils": {
+ "version": "4.9.1",
+ "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.9.1.tgz",
+ "integrity": "sha512-phrYmNiYppR7znFEdqgfWHXR6NCkZEK7hwWDHZUjit/2/U0r6XvkDl0SYnoM51Hq7FhCGdLDT6zxCCOY1hexsQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "eslint-visitor-keys": "^3.4.3"
+ },
+ "engines": {
+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint"
+ },
+ "peerDependencies": {
+ "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0"
+ }
+ },
+ "node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys": {
+ "version": "3.4.3",
+ "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz",
+ "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint"
+ }
+ },
+ "node_modules/@eslint-community/regexpp": {
+ "version": "4.12.2",
+ "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.2.tgz",
+ "integrity": "sha512-EriSTlt5OC9/7SXkRSCAhfSxxoSUgBm33OH+IkwbdpgoqsSsUg7y3uh+IICI/Qg4BBWr3U2i39RpmycbxMq4ew==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": "^12.0.0 || ^14.0.0 || >=16.0.0"
+ }
+ },
+ "node_modules/@eslint/config-array": {
+ "version": "0.23.5",
+ "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.23.5.tgz",
+ "integrity": "sha512-Y3kKLvC1dvTOT+oGlqNQ1XLqK6D1HU2YXPc52NmAlJZbMMWDzGYXMiPRJ8TYD39muD/OTjlZmNJ4ib7dvSrMBA==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@eslint/object-schema": "^3.0.5",
+ "debug": "^4.3.1",
+ "minimatch": "^10.2.4"
+ },
+ "engines": {
+ "node": "^20.19.0 || ^22.13.0 || >=24"
+ }
+ },
+ "node_modules/@eslint/config-helpers": {
+ "version": "0.6.0",
+ "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.6.0.tgz",
+ "integrity": "sha512-ii6Bw9jJ2zi2cWA2Z+9/QZ/+3DX6kwaV5Q986D/CdP3Lap3w/pgQZ373FV7byY/i7L4IRH/G43I5dz1ClsCbpA==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@eslint/core": "^1.2.1"
+ },
+ "engines": {
+ "node": "^20.19.0 || ^22.13.0 || >=24"
+ }
+ },
+ "node_modules/@eslint/core": {
+ "version": "1.2.1",
+ "resolved": "https://registry.npmjs.org/@eslint/core/-/core-1.2.1.tgz",
+ "integrity": "sha512-MwcE1P+AZ4C6DWlpin/OmOA54mmIZ/+xZuJiQd4SyB29oAJjN30UW9wkKNptW2ctp4cEsvhlLY/CsQ1uoHDloQ==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@types/json-schema": "^7.0.15"
+ },
+ "engines": {
+ "node": "^20.19.0 || ^22.13.0 || >=24"
+ }
+ },
+ "node_modules/@eslint/object-schema": {
+ "version": "3.0.5",
+ "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-3.0.5.tgz",
+ "integrity": "sha512-vqTaUEgxzm+YDSdElad6PiRoX4t8VGDjCtt05zn4nU810UIx/uNEV7/lZJ6KwFThKZOzOxzXy48da+No7HZaMw==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": "^20.19.0 || ^22.13.0 || >=24"
+ }
+ },
+ "node_modules/@eslint/plugin-kit": {
+ "version": "0.7.2",
+ "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.7.2.tgz",
+ "integrity": "sha512-+CNAzxglkrpNf/kKywqQfk74QjtceuOE7Qm+AF8miRvPF/wmmK5+OJOgVh3AVTT3RP2mH3+FOaxlE5v72owk0A==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@eslint/core": "^1.2.1",
+ "levn": "^0.4.1"
+ },
+ "engines": {
+ "node": "^20.19.0 || ^22.13.0 || >=24"
+ }
+ },
"node_modules/@floating-ui/core": {
"version": "1.7.3",
"resolved": "https://registry.npmjs.org/@floating-ui/core/-/core-1.7.3.tgz",
@@ -1856,6 +1966,72 @@
"resolved": "https://registry.npmjs.org/@floating-ui/utils/-/utils-0.2.10.tgz",
"integrity": "sha512-aGTxbpbg8/b5JfU1HXSrbH3wXZuLPJcNEcZQFMxLs3oSzgtVu6nFPkbbGGUvBcUjKV2YyB9Wxxabo+HEH9tcRQ=="
},
+ "node_modules/@humanfs/core": {
+ "version": "0.19.2",
+ "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.2.tgz",
+ "integrity": "sha512-UhXNm+CFMWcbChXywFwkmhqjs3PRCmcSa/hfBgLIb7oQ5HNb1wS0icWsGtSAUNgefHeI+eBrA8I1fxmbHsGdvA==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@humanfs/types": "^0.15.0"
+ },
+ "engines": {
+ "node": ">=18.18.0"
+ }
+ },
+ "node_modules/@humanfs/node": {
+ "version": "0.16.8",
+ "resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.8.tgz",
+ "integrity": "sha512-gE1eQNZ3R++kTzFUpdGlpmy8kDZD/MLyHqDwqjkVQI0JMdI1D51sy1H958PNXYkM2rAac7e5/CnIKZrHtPh3BQ==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@humanfs/core": "^0.19.2",
+ "@humanfs/types": "^0.15.0",
+ "@humanwhocodes/retry": "^0.4.0"
+ },
+ "engines": {
+ "node": ">=18.18.0"
+ }
+ },
+ "node_modules/@humanfs/types": {
+ "version": "0.15.0",
+ "resolved": "https://registry.npmjs.org/@humanfs/types/-/types-0.15.0.tgz",
+ "integrity": "sha512-ZZ1w0aoQkwuUuC7Yf+7sdeaNfqQiiLcSRbfI08oAxqLtpXQr9AIVX7Ay7HLDuiLYAaFPu8oBYNq/QIi9URHJ3Q==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": ">=18.18.0"
+ }
+ },
+ "node_modules/@humanwhocodes/module-importer": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz",
+ "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": ">=12.22"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/nzakas"
+ }
+ },
+ "node_modules/@humanwhocodes/retry": {
+ "version": "0.4.3",
+ "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.4.3.tgz",
+ "integrity": "sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": ">=18.18"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/nzakas"
+ }
+ },
"node_modules/@isaacs/fs-minipass": {
"version": "4.0.1",
"resolved": "https://registry.npmjs.org/@isaacs/fs-minipass/-/fs-minipass-4.0.1.tgz",
@@ -4114,11 +4290,17 @@
"@types/estree": "*"
}
},
+ "node_modules/@types/esrecurse": {
+ "version": "4.3.1",
+ "resolved": "https://registry.npmjs.org/@types/esrecurse/-/esrecurse-4.3.1.tgz",
+ "integrity": "sha512-xJBAbDifo5hpffDBuHl0Y8ywswbiAp/Wi7Y/GtAgSlZyIABppyurxVueOPE8LUQOxdlgi6Zqce7uoEpqNTeiUw==",
+ "dev": true,
+ "license": "MIT"
+ },
"node_modules/@types/estree": {
"version": "1.0.8",
"resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.8.tgz",
- "integrity": "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==",
- "peer": true
+ "integrity": "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w=="
},
"node_modules/@types/express": {
"version": "4.17.23",
@@ -4580,9 +4762,10 @@
}
},
"node_modules/acorn": {
- "version": "8.15.0",
- "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz",
- "integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==",
+ "version": "8.17.0",
+ "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.17.0.tgz",
+ "integrity": "sha512-xRQbDb9BnwDafYNn6Vwl839DYVjqXYb1XVGtWAZ1kcDc6iwAL4hg3B1dZlRiuENFeO2H53gFG3in621AdERVAg==",
+ "license": "MIT",
"bin": {
"acorn": "bin/acorn"
},
@@ -4613,6 +4796,16 @@
"acorn": "^8.14.0"
}
},
+ "node_modules/acorn-jsx": {
+ "version": "5.3.2",
+ "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz",
+ "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==",
+ "dev": true,
+ "license": "MIT",
+ "peerDependencies": {
+ "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0"
+ }
+ },
"node_modules/acorn-walk": {
"version": "8.3.5",
"resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.3.5.tgz",
@@ -6049,6 +6242,13 @@
"node": ">=8"
}
},
+ "node_modules/deep-is": {
+ "version": "0.1.4",
+ "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz",
+ "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==",
+ "dev": true,
+ "license": "MIT"
+ },
"node_modules/default-gateway": {
"version": "6.0.3",
"resolved": "https://registry.npmjs.org/default-gateway/-/default-gateway-6.0.3.tgz",
@@ -6483,6 +6683,19 @@
"integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==",
"dev": true
},
+ "node_modules/escape-string-regexp": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz",
+ "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
"node_modules/escodegen": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/escodegen/-/escodegen-2.1.0.tgz",
@@ -6505,6 +6718,85 @@
"source-map": "~0.6.1"
}
},
+ "node_modules/eslint": {
+ "version": "10.7.0",
+ "resolved": "https://registry.npmjs.org/eslint/-/eslint-10.7.0.tgz",
+ "integrity": "sha512-GVTD7s1vdIl6UYvAfriOPeY1Df8LIZjfofLvHwde+erDHGGuHyuM6xoxRxmHiebhYuD2p1vN4wWh0XzPARSGDQ==",
+ "dev": true,
+ "license": "MIT",
+ "workspaces": [
+ "packages/*"
+ ],
+ "dependencies": {
+ "@eslint-community/eslint-utils": "^4.8.0",
+ "@eslint-community/regexpp": "^4.12.2",
+ "@eslint/config-array": "^0.23.5",
+ "@eslint/config-helpers": "^0.6.0",
+ "@eslint/core": "^1.2.1",
+ "@eslint/plugin-kit": "^0.7.2",
+ "@humanfs/node": "^0.16.6",
+ "@humanwhocodes/module-importer": "^1.0.1",
+ "@humanwhocodes/retry": "^0.4.2",
+ "@types/estree": "^1.0.6",
+ "ajv": "^6.14.0",
+ "cross-spawn": "^7.0.6",
+ "debug": "^4.3.2",
+ "escape-string-regexp": "^4.0.0",
+ "eslint-scope": "^9.1.2",
+ "eslint-visitor-keys": "^5.0.1",
+ "espree": "^11.2.0",
+ "esquery": "^1.7.0",
+ "esutils": "^2.0.2",
+ "fast-deep-equal": "^3.1.3",
+ "file-entry-cache": "^8.0.0",
+ "find-up": "^5.0.0",
+ "glob-parent": "^6.0.2",
+ "ignore": "^5.2.0",
+ "imurmurhash": "^0.1.4",
+ "is-glob": "^4.0.0",
+ "json-stable-stringify-without-jsonify": "^1.0.1",
+ "minimatch": "^10.2.4",
+ "natural-compare": "^1.4.0",
+ "optionator": "^0.9.3"
+ },
+ "bin": {
+ "eslint": "bin/eslint.js"
+ },
+ "engines": {
+ "node": "^20.19.0 || ^22.13.0 || >=24"
+ },
+ "funding": {
+ "url": "https://eslint.org/donate"
+ },
+ "peerDependencies": {
+ "jiti": "*"
+ },
+ "peerDependenciesMeta": {
+ "jiti": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/eslint-plugin-react-hooks": {
+ "version": "7.1.1",
+ "resolved": "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-7.1.1.tgz",
+ "integrity": "sha512-f2I7Gw6JbvCexzIInuSbZpfdQ44D7iqdWX01FKLvrPgqxoE7oMj8clOfto8U6vYiz4yd5oKu39rRSVOe1zRu0g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/core": "^7.24.4",
+ "@babel/parser": "^7.24.4",
+ "hermes-parser": "^0.25.1",
+ "zod": "^3.25.0 || ^4.0.0",
+ "zod-validation-error": "^3.5.0 || ^4.0.0"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "peerDependencies": {
+ "eslint": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 || ^9.0.0 || ^10.0.0"
+ }
+ },
"node_modules/eslint-scope": {
"version": "5.1.1",
"resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz",
@@ -6527,6 +6819,189 @@
"node": ">=4.0"
}
},
+ "node_modules/eslint-visitor-keys": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-5.0.1.tgz",
+ "integrity": "sha512-tD40eHxA35h0PEIZNeIjkHoDR4YjjJp34biM0mDvplBe//mB+IHCqHDGV7pxF+7MklTvighcCPPZC7ynWyjdTA==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": "^20.19.0 || ^22.13.0 || >=24"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint"
+ }
+ },
+ "node_modules/eslint/node_modules/ajv": {
+ "version": "6.15.0",
+ "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.15.0.tgz",
+ "integrity": "sha512-fgFx7Hfoq60ytK2c7DhnF8jIvzYgOMxfugjLOSMHjLIPgenqa7S7oaagATUq99mV6IYvN2tRmC0wnTYX6iPbMw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "fast-deep-equal": "^3.1.1",
+ "fast-json-stable-stringify": "^2.0.0",
+ "json-schema-traverse": "^0.4.1",
+ "uri-js": "^4.2.2"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/epoberezkin"
+ }
+ },
+ "node_modules/eslint/node_modules/eslint-scope": {
+ "version": "9.1.2",
+ "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-9.1.2.tgz",
+ "integrity": "sha512-xS90H51cKw0jltxmvmHy2Iai1LIqrfbw57b79w/J7MfvDfkIkFZ+kj6zC3BjtUwh150HsSSdxXZcsuv72miDFQ==",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "@types/esrecurse": "^4.3.1",
+ "@types/estree": "^1.0.8",
+ "esrecurse": "^4.3.0",
+ "estraverse": "^5.2.0"
+ },
+ "engines": {
+ "node": "^20.19.0 || ^22.13.0 || >=24"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint"
+ }
+ },
+ "node_modules/eslint/node_modules/file-entry-cache": {
+ "version": "8.0.0",
+ "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz",
+ "integrity": "sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "flat-cache": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=16.0.0"
+ }
+ },
+ "node_modules/eslint/node_modules/find-up": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz",
+ "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "locate-path": "^6.0.0",
+ "path-exists": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/eslint/node_modules/flat-cache": {
+ "version": "4.0.1",
+ "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-4.0.1.tgz",
+ "integrity": "sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "flatted": "^3.2.9",
+ "keyv": "^4.5.4"
+ },
+ "engines": {
+ "node": ">=16"
+ }
+ },
+ "node_modules/eslint/node_modules/glob-parent": {
+ "version": "6.0.2",
+ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz",
+ "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "is-glob": "^4.0.3"
+ },
+ "engines": {
+ "node": ">=10.13.0"
+ }
+ },
+ "node_modules/eslint/node_modules/json-schema-traverse": {
+ "version": "0.4.1",
+ "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz",
+ "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/eslint/node_modules/keyv": {
+ "version": "4.5.4",
+ "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz",
+ "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "json-buffer": "3.0.1"
+ }
+ },
+ "node_modules/eslint/node_modules/locate-path": {
+ "version": "6.0.0",
+ "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz",
+ "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "p-locate": "^5.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/eslint/node_modules/p-locate": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz",
+ "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "p-limit": "^3.0.2"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/eslint/node_modules/path-exists": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz",
+ "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/espree": {
+ "version": "11.2.0",
+ "resolved": "https://registry.npmjs.org/espree/-/espree-11.2.0.tgz",
+ "integrity": "sha512-7p3DrVEIopW1B1avAGLuCSh1jubc01H2JHc8B4qqGblmg5gI9yumBgACjWo4JlIc04ufug4xJ3SQI8HkS/Rgzw==",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "acorn": "^8.16.0",
+ "acorn-jsx": "^5.3.2",
+ "eslint-visitor-keys": "^5.0.1"
+ },
+ "engines": {
+ "node": "^20.19.0 || ^22.13.0 || >=24"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint"
+ }
+ },
"node_modules/esprima": {
"version": "4.0.1",
"resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz",
@@ -6541,11 +7016,23 @@
"node": ">=4"
}
},
+ "node_modules/esquery": {
+ "version": "1.7.0",
+ "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.7.0.tgz",
+ "integrity": "sha512-Ap6G0WQwcU/LHsvLwON1fAQX9Zp0A2Y6Y/cJBl9r/JbW90Zyg4/zbG6zzKa2OTALELarYHmKu0GhpM5EO+7T0g==",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "dependencies": {
+ "estraverse": "^5.1.0"
+ },
+ "engines": {
+ "node": ">=0.10"
+ }
+ },
"node_modules/esrecurse": {
"version": "4.3.0",
"resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz",
"integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==",
- "peer": true,
"dependencies": {
"estraverse": "^5.2.0"
},
@@ -6737,6 +7224,13 @@
"resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz",
"integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw=="
},
+ "node_modules/fast-levenshtein": {
+ "version": "2.0.6",
+ "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz",
+ "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==",
+ "dev": true,
+ "license": "MIT"
+ },
"node_modules/fast-uri": {
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.0.tgz",
@@ -7202,6 +7696,19 @@
"which": "bin/which"
}
},
+ "node_modules/globals": {
+ "version": "17.7.0",
+ "resolved": "https://registry.npmjs.org/globals/-/globals-17.7.0.tgz",
+ "integrity": "sha512-Czmyns5dUsq4seFBR/Kdydhmo8y9kC79hiSkPn0YcGtNnYWnrgt0vjrSjx9tspoDGWm2CMarffRuLjM4xUz8xg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
"node_modules/globby": {
"version": "11.1.0",
"resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz",
@@ -7335,6 +7842,23 @@
"he": "bin/he"
}
},
+ "node_modules/hermes-estree": {
+ "version": "0.25.1",
+ "resolved": "https://registry.npmjs.org/hermes-estree/-/hermes-estree-0.25.1.tgz",
+ "integrity": "sha512-0wUoCcLp+5Ev5pDW2OriHC2MJCbwLwuRx+gAqMTOkGKJJiBCLjtrvy4PWUGn6MIVefecRpzoOZ/UV6iGdOr+Cw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/hermes-parser": {
+ "version": "0.25.1",
+ "resolved": "https://registry.npmjs.org/hermes-parser/-/hermes-parser-0.25.1.tgz",
+ "integrity": "sha512-6pEjquH3rqaI6cYAXYPcz9MS4rY6R4ngRgrgfDshRptUZIc3lw0MCIJIGDj9++mfySOuPTHB4nrSW99BCvOPIA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "hermes-estree": "0.25.1"
+ }
+ },
"node_modules/hookified": {
"version": "1.15.1",
"resolved": "https://registry.npmjs.org/hookified/-/hookified-1.15.1.tgz",
@@ -7790,6 +8314,16 @@
"url": "https://github.com/sponsors/wooorm"
}
},
+ "node_modules/imurmurhash": {
+ "version": "0.1.4",
+ "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz",
+ "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.8.19"
+ }
+ },
"node_modules/inflight": {
"version": "1.0.6",
"resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",
@@ -8128,6 +8662,13 @@
"node": ">=6"
}
},
+ "node_modules/json-buffer": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz",
+ "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==",
+ "dev": true,
+ "license": "MIT"
+ },
"node_modules/json-parse-even-better-errors": {
"version": "2.3.1",
"resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz",
@@ -8156,6 +8697,13 @@
"url": "https://github.com/sponsors/ljharb"
}
},
+ "node_modules/json-stable-stringify-without-jsonify": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz",
+ "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==",
+ "dev": true,
+ "license": "MIT"
+ },
"node_modules/json5": {
"version": "2.2.3",
"resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz",
@@ -8254,6 +8802,20 @@
"shell-quote": "^1.8.3"
}
},
+ "node_modules/levn": {
+ "version": "0.4.1",
+ "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz",
+ "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "prelude-ls": "^1.2.1",
+ "type-check": "~0.4.0"
+ },
+ "engines": {
+ "node": ">= 0.8.0"
+ }
+ },
"node_modules/lie": {
"version": "3.3.0",
"resolved": "https://registry.npmjs.org/lie/-/lie-3.3.0.tgz",
@@ -8686,6 +9248,13 @@
"node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"
}
},
+ "node_modules/natural-compare": {
+ "version": "1.4.0",
+ "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz",
+ "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==",
+ "dev": true,
+ "license": "MIT"
+ },
"node_modules/negotiator": {
"version": "0.6.4",
"resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.4.tgz",
@@ -8944,6 +9513,24 @@
"url": "https://github.com/sponsors/sindresorhus"
}
},
+ "node_modules/optionator": {
+ "version": "0.9.4",
+ "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz",
+ "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "deep-is": "^0.1.3",
+ "fast-levenshtein": "^2.0.6",
+ "levn": "^0.4.1",
+ "prelude-ls": "^1.2.1",
+ "type-check": "^0.4.0",
+ "word-wrap": "^1.2.5"
+ },
+ "engines": {
+ "node": ">= 0.8.0"
+ }
+ },
"node_modules/p-limit": {
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz",
@@ -9479,6 +10066,16 @@
"integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==",
"dev": true
},
+ "node_modules/prelude-ls": {
+ "version": "1.2.1",
+ "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz",
+ "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8.0"
+ }
+ },
"node_modules/prettier": {
"version": "2.8.8",
"resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.8.tgz",
@@ -11572,6 +12169,19 @@
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz",
"integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="
},
+ "node_modules/type-check": {
+ "version": "0.4.0",
+ "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz",
+ "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "prelude-ls": "^1.2.1"
+ },
+ "engines": {
+ "node": ">= 0.8.0"
+ }
+ },
"node_modules/type-is": {
"version": "1.6.18",
"resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz",
@@ -12220,6 +12830,16 @@
"integrity": "sha512-CC1bOL87PIWSBhDcTrdeLo6eGT7mCFtrg0uIJtqJUFyK+eJnzl8A1niH56uu7KMa5XFrtiV+AQuHO3n7DsHnLQ==",
"dev": true
},
+ "node_modules/word-wrap": {
+ "version": "1.2.5",
+ "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz",
+ "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
"node_modules/wrap-ansi": {
"version": "7.0.0",
"resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz",
@@ -12377,6 +12997,29 @@
"funding": {
"url": "https://github.com/sponsors/sindresorhus"
}
+ },
+ "node_modules/zod": {
+ "version": "4.4.3",
+ "resolved": "https://registry.npmjs.org/zod/-/zod-4.4.3.tgz",
+ "integrity": "sha512-ytENFjIJFl2UwYglde2jchW2Hwm4GJFLDiSXWdTrJQBIN9Fcyp7n4DhxJEiWNAJMV1/BqWfW/kkg71UDcHJyTQ==",
+ "dev": true,
+ "license": "MIT",
+ "funding": {
+ "url": "https://github.com/sponsors/colinhacks"
+ }
+ },
+ "node_modules/zod-validation-error": {
+ "version": "4.0.2",
+ "resolved": "https://registry.npmjs.org/zod-validation-error/-/zod-validation-error-4.0.2.tgz",
+ "integrity": "sha512-Q6/nZLe6jxuU80qb/4uJ4t5v2VEZ44lzQjPDhYJNztRQ4wyWc6VF3D3Kb/fAuPetZQnhS3hnajCf9CsWesghLQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=18.0.0"
+ },
+ "peerDependencies": {
+ "zod": "^3.25.0 || ^4.0.0"
+ }
}
}
}
diff --git a/package.json b/package.json
index 3be9a38..b2c2d56 100755
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "screenity",
- "version": "4.5.6",
+ "version": "4.6.0",
"description": "The free and privacy-friendly screen recorder with no sign in needed.",
"scripts": {
"build": "cross-env NODE_ENV=production node utils/build.js",
@@ -26,7 +26,7 @@
"release:cws:publish:10": "dotenv -e .env.local -- chrome-webstore-upload publish --deploy-percentage 10",
"release:cws:publish:50": "dotenv -e .env.local -- chrome-webstore-upload publish --deploy-percentage 50",
"clean": "rm -rf build && mkdir build",
- "lint": "eslint src/**/*.js --fix",
+ "lint": "eslint src",
"build:content-css": "sass src/pages/Content/styles/app.scss src/pages/Content/styles/app.css --no-source-map",
"check:i18n": "node scripts/check-i18n.mjs",
"verify:zip": "node scripts/verify-no-secrets.mjs",
@@ -96,7 +96,10 @@
"cross-env": "^7.0.3",
"css-loader": "^6.7.2",
"dotenv-cli": "^11.0.0",
+ "eslint": "10.7.0",
+ "eslint-plugin-react-hooks": "7.1.1",
"fs-extra": "^10.1.0",
+ "globals": "17.7.0",
"html-loader": "^3.1.0",
"html-webpack-plugin": "^5.5.0",
"prettier": "^2.7.1",
diff --git a/src/_locales/ca/messages.json b/src/_locales/ca/messages.json
index c221f9e..b29fe67 100644
--- a/src/_locales/ca/messages.json
+++ b/src/_locales/ca/messages.json
@@ -1710,5 +1710,13 @@
"downloadProcessingDescription": {
"message": "Això pot trigar una estona en gravacions llargues.",
"description": "Body of the download-in-progress banner"
+ },
+ "cameraMicBlockedTitle": {
+ "message": "Càmera i micròfon no permesos",
+ "description": "Toast title shown when the current page's Permissions-Policy blocks the extension's camera and microphone"
+ },
+ "cameraMicBlockedDescription": {
+ "message": "Aquest lloc web bloqueja l'accés a la càmera i el micròfon. Encara pots gravar aquí, però la càmera no es veurà.",
+ "description": "Toast description shown when the current page's Permissions-Policy blocks the extension's camera and microphone"
}
}
diff --git a/src/_locales/de/messages.json b/src/_locales/de/messages.json
index 35a3c3d..5ebb412 100644
--- a/src/_locales/de/messages.json
+++ b/src/_locales/de/messages.json
@@ -1710,5 +1710,13 @@
"downloadProcessingDescription": {
"message": "Bei langen Aufnahmen kann dies eine Weile dauern.",
"description": "Body of the download-in-progress banner"
+ },
+ "cameraMicBlockedTitle": {
+ "message": "Kamera und Mikrofon nicht erlaubt",
+ "description": "Toast title shown when the current page's Permissions-Policy blocks the extension's camera and microphone"
+ },
+ "cameraMicBlockedDescription": {
+ "message": "Diese Website blockiert den Zugriff auf Kamera und Mikrofon. Du kannst hier trotzdem aufnehmen, aber deine Kamera ist nicht sichtbar.",
+ "description": "Toast description shown when the current page's Permissions-Policy blocks the extension's camera and microphone"
}
}
diff --git a/src/_locales/en/messages.json b/src/_locales/en/messages.json
index c625810..81b3e1d 100644
--- a/src/_locales/en/messages.json
+++ b/src/_locales/en/messages.json
@@ -63,6 +63,14 @@
"message": "Looks like this website's security settings prevent browser extensions from using your camera or microphone on this page. To record with them, start a recording from another tab and switch back here once it begins.",
"description": "Modal description shown when the current page's Permissions-Policy header blocks browser extensions from using camera or microphone"
},
+ "cameraMicBlockedTitle": {
+ "message": "Camera and microphone not allowed",
+ "description": "Toast title shown when the current page's Permissions-Policy blocks the extension's camera and microphone"
+ },
+ "cameraMicBlockedDescription": {
+ "message": "This website blocks access to your camera and microphone. You can still record here, but your camera won't be visible.",
+ "description": "Toast description shown when the current page's Permissions-Policy blocks the extension's camera and microphone"
+ },
"opfsLoadErrorTitle": {
"message": "Can't load your recording",
"description": "Modal title shown when the editor cannot read the recording file from the device's storage"
diff --git a/src/_locales/es/messages.json b/src/_locales/es/messages.json
index ef0d312..78bdd04 100644
--- a/src/_locales/es/messages.json
+++ b/src/_locales/es/messages.json
@@ -1710,5 +1710,13 @@
"downloadProcessingDescription": {
"message": "Esto puede tardar un rato en grabaciones largas.",
"description": "Body of the download-in-progress banner"
+ },
+ "cameraMicBlockedTitle": {
+ "message": "Cámara y micrófono no permitidos",
+ "description": "Toast title shown when the current page's Permissions-Policy blocks the extension's camera and microphone"
+ },
+ "cameraMicBlockedDescription": {
+ "message": "Este sitio web bloquea el acceso a tu cámara y micrófono. Puedes grabar aquí de todos modos, pero tu cámara no se verá.",
+ "description": "Toast description shown when the current page's Permissions-Policy blocks the extension's camera and microphone"
}
}
diff --git a/src/_locales/fr/messages.json b/src/_locales/fr/messages.json
index d219630..e937047 100644
--- a/src/_locales/fr/messages.json
+++ b/src/_locales/fr/messages.json
@@ -1710,5 +1710,13 @@
"downloadProcessingDescription": {
"message": "Cela peut prendre un moment pour les longs enregistrements.",
"description": "Body of the download-in-progress banner"
+ },
+ "cameraMicBlockedTitle": {
+ "message": "Caméra et microphone non autorisés",
+ "description": "Toast title shown when the current page's Permissions-Policy blocks the extension's camera and microphone"
+ },
+ "cameraMicBlockedDescription": {
+ "message": "Ce site bloque l'accès à votre caméra et à votre microphone. Vous pouvez quand même enregistrer ici, mais votre caméra ne sera pas visible.",
+ "description": "Toast description shown when the current page's Permissions-Policy blocks the extension's camera and microphone"
}
}
diff --git a/src/_locales/hi/messages.json b/src/_locales/hi/messages.json
index 2c9b181..f88c634 100644
--- a/src/_locales/hi/messages.json
+++ b/src/_locales/hi/messages.json
@@ -1710,5 +1710,13 @@
"downloadProcessingDescription": {
"message": "लंबी रिकॉर्डिंग में इसमें कुछ समय लग सकता है।",
"description": "Body of the download-in-progress banner"
+ },
+ "cameraMicBlockedTitle": {
+ "message": "कैमरा और माइक्रोफोन की अनुमति नहीं है",
+ "description": "Toast title shown when the current page's Permissions-Policy blocks the extension's camera and microphone"
+ },
+ "cameraMicBlockedDescription": {
+ "message": "यह वेबसाइट आपके कैमरा और माइक्रोफोन तक पहुँच को रोकती है। आप यहाँ फिर भी रिकॉर्ड कर सकते हैं, लेकिन आपका कैमरा दिखाई नहीं देगा।",
+ "description": "Toast description shown when the current page's Permissions-Policy blocks the extension's camera and microphone"
}
}
diff --git a/src/_locales/id/messages.json b/src/_locales/id/messages.json
index ad2ca9a..cd440ce 100644
--- a/src/_locales/id/messages.json
+++ b/src/_locales/id/messages.json
@@ -1710,5 +1710,13 @@
"downloadProcessingDescription": {
"message": "Ini bisa memakan waktu untuk rekaman panjang.",
"description": "Body of the download-in-progress banner"
+ },
+ "cameraMicBlockedTitle": {
+ "message": "Kamera dan mikrofon tidak diizinkan",
+ "description": "Toast title shown when the current page's Permissions-Policy blocks the extension's camera and microphone"
+ },
+ "cameraMicBlockedDescription": {
+ "message": "Situs web ini memblokir akses ke kamera dan mikrofon Anda. Anda tetap dapat merekam di sini, tetapi kamera Anda tidak akan terlihat.",
+ "description": "Toast description shown when the current page's Permissions-Policy blocks the extension's camera and microphone"
}
}
diff --git a/src/_locales/it/messages.json b/src/_locales/it/messages.json
index 2535e42..bc05a6f 100644
--- a/src/_locales/it/messages.json
+++ b/src/_locales/it/messages.json
@@ -1705,5 +1705,13 @@
"downloadProcessingDescription": {
"message": "Questo può richiedere del tempo per le registrazioni lunghe.",
"description": "Body of the download-in-progress banner"
+ },
+ "cameraMicBlockedTitle": {
+ "message": "Fotocamera e microfono non consentiti",
+ "description": "Toast title shown when the current page's Permissions-Policy blocks the extension's camera and microphone"
+ },
+ "cameraMicBlockedDescription": {
+ "message": "Questo sito web blocca l'accesso alla fotocamera e al microfono. Puoi comunque registrare qui, ma la tua fotocamera non sarà visibile.",
+ "description": "Toast description shown when the current page's Permissions-Policy blocks the extension's camera and microphone"
}
}
diff --git a/src/_locales/ko/messages.json b/src/_locales/ko/messages.json
index fdba738..dde415a 100644
--- a/src/_locales/ko/messages.json
+++ b/src/_locales/ko/messages.json
@@ -1710,5 +1710,13 @@
"downloadProcessingDescription": {
"message": "긴 녹화의 경우 시간이 걸릴 수 있습니다.",
"description": "Body of the download-in-progress banner"
+ },
+ "cameraMicBlockedTitle": {
+ "message": "카메라와 마이크가 허용되지 않아요",
+ "description": "Toast title shown when the current page's Permissions-Policy blocks the extension's camera and microphone"
+ },
+ "cameraMicBlockedDescription": {
+ "message": "이 웹사이트가 카메라와 마이크 접근을 차단하고 있어요. 여기서 녹화는 계속할 수 있지만, 카메라는 표시되지 않아요.",
+ "description": "Toast description shown when the current page's Permissions-Policy blocks the extension's camera and microphone"
}
}
diff --git a/src/_locales/pl/messages.json b/src/_locales/pl/messages.json
index cb6b7ea..175a4ff 100644
--- a/src/_locales/pl/messages.json
+++ b/src/_locales/pl/messages.json
@@ -1710,5 +1710,13 @@
"downloadProcessingDescription": {
"message": "W przypadku długich nagrań może to chwilę potrwać.",
"description": "Body of the download-in-progress banner"
+ },
+ "cameraMicBlockedTitle": {
+ "message": "Kamera i mikrofon są zablokowane",
+ "description": "Toast title shown when the current page's Permissions-Policy blocks the extension's camera and microphone"
+ },
+ "cameraMicBlockedDescription": {
+ "message": "Ta witryna blokuje dostęp do kamery i mikrofonu. Nadal możesz tutaj nagrywać, ale Twoja kamera nie będzie widoczna.",
+ "description": "Toast description shown when the current page's Permissions-Policy blocks the extension's camera and microphone"
}
}
diff --git a/src/_locales/pt_BR/messages.json b/src/_locales/pt_BR/messages.json
index 85dc033..e81732e 100644
--- a/src/_locales/pt_BR/messages.json
+++ b/src/_locales/pt_BR/messages.json
@@ -1710,5 +1710,13 @@
"downloadProcessingDescription": {
"message": "Isso pode demorar um pouco em gravações longas.",
"description": "Body of the download-in-progress banner"
+ },
+ "cameraMicBlockedTitle": {
+ "message": "Câmera e microfone não permitidos",
+ "description": "Toast title shown when the current page's Permissions-Policy blocks the extension's camera and microphone"
+ },
+ "cameraMicBlockedDescription": {
+ "message": "Este site bloqueia o acesso à sua câmera e ao microfone. Você ainda pode gravar aqui, mas sua câmera não ficará visível.",
+ "description": "Toast description shown when the current page's Permissions-Policy blocks the extension's camera and microphone"
}
}
diff --git a/src/_locales/pt_PT/messages.json b/src/_locales/pt_PT/messages.json
index d50e53f..63403e4 100644
--- a/src/_locales/pt_PT/messages.json
+++ b/src/_locales/pt_PT/messages.json
@@ -1710,5 +1710,13 @@
"downloadProcessingDescription": {
"message": "Isto pode demorar algum tempo em gravações longas.",
"description": "Body of the download-in-progress banner"
+ },
+ "cameraMicBlockedTitle": {
+ "message": "Câmara e microfone não permitidos",
+ "description": "Toast title shown when the current page's Permissions-Policy blocks the extension's camera and microphone"
+ },
+ "cameraMicBlockedDescription": {
+ "message": "Este site bloqueia o acesso à tua câmara e microfone. Podes gravar aqui à mesma, mas a tua câmara não ficará visível.",
+ "description": "Toast description shown when the current page's Permissions-Policy blocks the extension's camera and microphone"
}
}
diff --git a/src/_locales/ru/messages.json b/src/_locales/ru/messages.json
index 8188ba2..c491a1c 100644
--- a/src/_locales/ru/messages.json
+++ b/src/_locales/ru/messages.json
@@ -1710,5 +1710,13 @@
"downloadProcessingDescription": {
"message": "Для длинных записей это может занять некоторое время.",
"description": "Body of the download-in-progress banner"
+ },
+ "cameraMicBlockedTitle": {
+ "message": "Камера и микрофон недоступны",
+ "description": "Toast title shown when the current page's Permissions-Policy blocks the extension's camera and microphone"
+ },
+ "cameraMicBlockedDescription": {
+ "message": "Этот сайт блокирует доступ к камере и микрофону. Вы всё равно можете записывать здесь, но ваша камера не будет видна.",
+ "description": "Toast description shown when the current page's Permissions-Policy blocks the extension's camera and microphone"
}
}
diff --git a/src/_locales/ta/messages.json b/src/_locales/ta/messages.json
index 78acc4e..44d6f02 100644
--- a/src/_locales/ta/messages.json
+++ b/src/_locales/ta/messages.json
@@ -1710,5 +1710,13 @@
"downloadProcessingDescription": {
"message": "நீண்ட பதிவுகளுக்கு இதற்கு சிறிது நேரம் ஆகலாம்.",
"description": "Body of the download-in-progress banner"
+ },
+ "cameraMicBlockedTitle": {
+ "message": "கேமரா மற்றும் மைக்ரோஃபோன் அனுமதிக்கப்படவில்லை",
+ "description": "Toast title shown when the current page's Permissions-Policy blocks the extension's camera and microphone"
+ },
+ "cameraMicBlockedDescription": {
+ "message": "இந்த வலைத்தளம் உங்கள் கேமரா மற்றும் மைக்ரோஃபோன் அணுகலைத் தடுக்கிறது. நீங்கள் இங்கே இன்னும் பதிவு செய்யலாம், ஆனால் உங்கள் கேமரா தெரியாது.",
+ "description": "Toast description shown when the current page's Permissions-Policy blocks the extension's camera and microphone"
}
}
diff --git a/src/_locales/tr/messages.json b/src/_locales/tr/messages.json
index 7a55c8e..8711f80 100644
--- a/src/_locales/tr/messages.json
+++ b/src/_locales/tr/messages.json
@@ -1710,5 +1710,13 @@
"downloadProcessingDescription": {
"message": "Uzun kayıtlarda bu biraz zaman alabilir.",
"description": "Body of the download-in-progress banner"
+ },
+ "cameraMicBlockedTitle": {
+ "message": "Kamera ve mikrofona izin verilmiyor",
+ "description": "Toast title shown when the current page's Permissions-Policy blocks the extension's camera and microphone"
+ },
+ "cameraMicBlockedDescription": {
+ "message": "Bu web sitesi kameranıza ve mikrofonunuza erişimi engelliyor. Yine de burada kayıt yapabilirsiniz, ancak kameranız görünmeyecek.",
+ "description": "Toast description shown when the current page's Permissions-Policy blocks the extension's camera and microphone"
}
}
diff --git a/src/_locales/uk/messages.json b/src/_locales/uk/messages.json
index b6d8685..2a95c9b 100644
--- a/src/_locales/uk/messages.json
+++ b/src/_locales/uk/messages.json
@@ -1708,5 +1708,13 @@
"downloadProcessingDescription": {
"message": "Для довгих записів це може зайняти деякий час.",
"description": "Body of the download-in-progress banner"
+ },
+ "cameraMicBlockedTitle": {
+ "message": "Камера та мікрофон недоступні",
+ "description": "Toast title shown when the current page's Permissions-Policy blocks the extension's camera and microphone"
+ },
+ "cameraMicBlockedDescription": {
+ "message": "Цей сайт блокує доступ до камери та мікрофона. Ви все одно можете записувати тут, але вашу камеру не буде видно.",
+ "description": "Toast description shown when the current page's Permissions-Policy blocks the extension's camera and microphone"
}
}
diff --git a/src/_locales/zh_CN/messages.json b/src/_locales/zh_CN/messages.json
index a902ce1..6a6b9eb 100644
--- a/src/_locales/zh_CN/messages.json
+++ b/src/_locales/zh_CN/messages.json
@@ -1709,5 +1709,13 @@
"downloadProcessingDescription": {
"message": "长录制可能需要一些时间。",
"description": "Body of the download-in-progress banner"
+ },
+ "cameraMicBlockedTitle": {
+ "message": "摄像头和麦克风不可用",
+ "description": "Toast title shown when the current page's Permissions-Policy blocks the extension's camera and microphone"
+ },
+ "cameraMicBlockedDescription": {
+ "message": "此网站阻止访问您的摄像头和麦克风。您仍然可以在此处录制,但您的摄像头画面不会显示。",
+ "description": "Toast description shown when the current page's Permissions-Policy blocks the extension's camera and microphone"
}
}
diff --git a/src/_locales/zh_TW/messages.json b/src/_locales/zh_TW/messages.json
index 2489bc4..4a577c9 100644
--- a/src/_locales/zh_TW/messages.json
+++ b/src/_locales/zh_TW/messages.json
@@ -1710,5 +1710,13 @@
"downloadProcessingDescription": {
"message": "長時間錄製可能需要一些時間。",
"description": "Body of the download-in-progress banner"
+ },
+ "cameraMicBlockedTitle": {
+ "message": "無法使用相機和麥克風",
+ "description": "Toast title shown when the current page's Permissions-Policy blocks the extension's camera and microphone"
+ },
+ "cameraMicBlockedDescription": {
+ "message": "此網站禁止存取您的相機和麥克風。您仍然可以在此處錄製,但您的相機將不會顯示。",
+ "description": "Toast description shown when the current page's Permissions-Policy blocks the extension's camera and microphone"
}
}
diff --git a/src/manifest.json b/src/manifest.json
index 8305ece..15ba485 100755
--- a/src/manifest.json
+++ b/src/manifest.json
@@ -3,7 +3,7 @@
"name": "__MSG_extName__",
"description": "__MSG_extDesc__",
"default_locale": "en",
- "version": "4.5.6",
+ "version": "4.6.0",
"background": {
"service_worker": "background.bundle.js"
},
diff --git a/src/pages/Background/index.js b/src/pages/Background/index.js
index 9799794..f0590f6 100644
--- a/src/pages/Background/index.js
+++ b/src/pages/Background/index.js
@@ -415,3 +415,63 @@ try {
chrome.storage.local.set({ swLastSeenAt: Date.now() }).catch(() => {});
});
} catch {}
+
+// ---- TEMP DEBUG: MediaRecorder-MP4 verification helpers (remove before commit) ----
+// SW console usage: mp4force() → record + edit → mp4test(). mp4reset() restores.
+try {
+ globalThis.mp4force = async () => {
+ await chrome.storage.local.set({ useWebCodecsRecorder: false });
+ console.log("[mp4] fast recorder OFF, MediaRecorder path forced. Record now.");
+ };
+ globalThis.mp4reset = async () => {
+ await chrome.storage.local.set({ useWebCodecsRecorder: true });
+ console.log("[mp4] fast recorder ON, back to WebCodecs default.");
+ };
+ globalThis.mp4test = async () => {
+ const s = await chrome.storage.local.get([
+ "diagnosticLog", "editorReadyPath", "lastRecordingError",
+ "useWebCodecsRecorder", "lastRecordingBackendRef", "__mp4dbg", "__hiResResult",
+ ]);
+ const ses = s.diagnosticLog?.sessions?.slice(-1)[0];
+ const evs = ses?.events || [];
+ const lastEv = (e) => [...evs].reverse().find((x) => x.e === e);
+ const has = (e) => evs.some((x) => x.e === e);
+ const ok = (b) => (b ? "✅" : "❌");
+
+ // backend is the ground truth (single storage key, never rotates):
+ // opfs = WebCodecs, idb = MediaRecorder. recorder-finalize-summary is a
+ // WebCodecs-only session marker that corroborates it.
+ const backend = s.lastRecordingBackendRef?.backend || null;
+ const ranMR = backend === "idb" && !has("recorder-finalize-summary");
+ const recorder = ranMR ? "MediaRecorder" : backend === "opfs" || has("recorder-finalize-summary") ? "WebCodecs" : "unknown";
+
+ // Durable mime written by createMediaRecorder (survives lifecycle-log rotation).
+ const mime = s.__mp4dbg?.mime || null;
+ const container = s.__mp4dbg?.container || null;
+ const mp4Container = container === "mp4";
+ const path = lastEv("editor-load-ready")?.d?.path || s.editorReadyPath || null;
+ const mp4Route = path === "mp4-fast";
+ const meta = lastEv("sandbox-video-loadedmetadata")?.d || {};
+ const durOk = Number.isFinite(meta.duration) && meta.duration > 0;
+ const errs = evs.filter((x) => /error/i.test(x.e)).map((x) => x.e);
+ const pass = ranMR && mp4Container && mp4Route && durOk && !errs.length;
+
+ console.log("%c── Screenity MR-MP4 test ── " + (pass ? "PASS ✅" : ranMR ? "CHECK ❌" : "WRONG RECORDER ⚠️"), "font-weight:bold");
+ console.log("recorder that ran:", recorder, "(backend:", backend + ")", ok(ranMR),
+ ranMR ? "" : "→ not the MediaRecorder path; turn OFF \"Fast MP4\" then record a NEW clip");
+ console.log("(a) container:", container, ok(mp4Container), " [mime:", mime, "]", mp4Container ? "→ stayed MP4" : "→ fell back to WebM");
+ console.log("(b) editor route:", path, ok(mp4Route), mp4Route ? "→ MP4 fast path" : "→ WebM/remux path");
+ console.log(" duration:", meta.duration, ok(durOk), " dims:", meta.width + "x" + meta.height);
+ console.log(" editor errors:", errs.length ? errs : "none", ok(!errs.length));
+ console.log(" lastRecordingError:", s.lastRecordingError || "none");
+ console.log(" Fast-MP4-off flag:", s.useWebCodecsRecorder, " session:", ses?.id, ses?.config?.recordingType, "→", ses?.outcome);
+ const hr = s.__hiResResult;
+ if (hr) {
+ console.log("%c capture track:", "color:#888",
+ hr.width + "x" + hr.height, hr.displaySurface || "",
+ "| requested", hr.requested, "| hiResTest:", hr.hiResTest);
+ }
+ return pass;
+ };
+} catch {}
+// ---- END TEMP DEBUG ----
diff --git a/src/pages/Background/offscreen/discardOffscreenDocuments.js b/src/pages/Background/offscreen/discardOffscreenDocuments.js
index 9c8e8a2..09ad500 100644
--- a/src/pages/Background/offscreen/discardOffscreenDocuments.js
+++ b/src/pages/Background/offscreen/discardOffscreenDocuments.js
@@ -4,12 +4,15 @@ import { perfSpan } from "../../utils/perfMarks";
export const discardOffscreenDocuments = async ({
reason = "discard",
flush = true,
+ // Discard/cancel callers pass false so the recorder halts without finalizing;
+ // a finalize emits video-ready and opens the editor on the discarded take.
+ shouldFinalize = true,
} = {}) => {
- console.warn("[Screenity][discardOffscreenDocuments]", { reason, flush, stack: new Error().stack });
+ console.warn("[Screenity][discardOffscreenDocuments]", { reason, flush, shouldFinalize, stack: new Error().stack });
const endFlush = perfSpan("BG.offscreen discardOffscreenDocuments", { reason, flush });
try {
if (flush) {
- await closeOffscreenDocumentWithFlush({ reason });
+ await closeOffscreenDocumentWithFlush({ reason, shouldFinalize });
} else {
const existingContexts = await chrome.runtime.getContexts({});
const offscreenDocument = existingContexts.find(
diff --git a/src/pages/Background/recording/cancelRecording.js b/src/pages/Background/recording/cancelRecording.js
index dc824ae..5caa2f3 100644
--- a/src/pages/Background/recording/cancelRecording.js
+++ b/src/pages/Background/recording/cancelRecording.js
@@ -90,8 +90,10 @@ export const cancelRecording = async () => {
sendMessageTab(id, { type: "stop-pending" }).catch(() => {});
});
focusTab(activeTab);
+ // shouldFinalize:false: cancel throws the take away, so the offscreen
+ // recorder must not finalize into a video-ready / editor open.
try {
- await discardOffscreenDocuments();
+ await discardOffscreenDocuments({ reason: "cancel", shouldFinalize: false });
} catch {}
await resetWatchdogState();
chrome.runtime.sendMessage({ type: "turn-off-pip" });
diff --git a/src/pages/Background/recording/discardRecording.js b/src/pages/Background/recording/discardRecording.js
index a26a222..b477fac 100644
--- a/src/pages/Background/recording/discardRecording.js
+++ b/src/pages/Background/recording/discardRecording.js
@@ -33,9 +33,11 @@ export const discardRecording = async ({
);
chrome.action.setIcon({ path: "assets/icon-34.png" });
- // await teardown before recording:false; otherwise handleAlarm fires against torn-down offscreen
+ // await teardown before recording:false; otherwise handleAlarm fires against torn-down offscreen.
+ // shouldFinalize:false so the recorder halts without a finalize that would
+ // emit video-ready and open the editor on the discarded take.
try {
- await discardOffscreenDocuments();
+ await discardOffscreenDocuments({ reason: "discard", shouldFinalize: false });
} catch {}
await resetWatchdogState();
diff --git a/src/pages/Background/tabManagement/tabHelpers.js b/src/pages/Background/tabManagement/tabHelpers.js
index 5898896..0322ba6 100644
--- a/src/pages/Background/tabManagement/tabHelpers.js
+++ b/src/pages/Background/tabManagement/tabHelpers.js
@@ -1,3 +1,5 @@
+import { sendMessageRecord } from "../recording/sendMessageRecord";
+
export const setMicActiveTab = async (request) => {
// The recorder (offscreen doc or in-tab iframe) owns the mic track for ALL
// modes, so the mid-recording mic toggle must reach it regardless of mode.
diff --git a/src/pages/CloudRecorder/CloudRecorder.jsx b/src/pages/CloudRecorder/CloudRecorder.jsx
index ade3fcc..1034f6a 100644
--- a/src/pages/CloudRecorder/CloudRecorder.jsx
+++ b/src/pages/CloudRecorder/CloudRecorder.jsx
@@ -40,7 +40,15 @@ import {
chooseTrackEncoder,
resetEncoderProbeCache,
computeEncodedDimensions,
+ WEBCODECS_CAP_WIDTH,
+ WEBCODECS_CAP_HEIGHT,
} from "./encoder/chooseEncoder";
+import {
+ computeCaptureCap,
+ isOversampleDisabled,
+ constrainTrackDown,
+ enforceOversampleRatio,
+} from "../utils/captureResolution";
import { getCompressedLifecycleLog } from "../utils/lifecycleLog";
localforage.config({
@@ -119,6 +127,12 @@ let trackContainers = {
};
let trackCodecs = { screen: "vp9", audio: "opus", camera: "vp9" };
let encoderHwSlots = null;
+// Per-track encoder-selection reason from inspectTrackPlan ("ok",
+// "aac-unsupported", "fastRecorderGate-sticky-disabled", ...). null until start.
+let encoderReasons = { screen: null, audio: null, camera: null };
+// WebCodecs sticky-disable device state at plan time, from
+// getFastRecorderStickyState().
+let encoderSticky = { disabled: null, reason: null };
// Diagnostic-only snapshot taken once at session start. userAgent is
// fingerprinting-grade but is already covered by the crash-reports
@@ -198,6 +212,9 @@ const CloudRecorder = () => {
const tabPreferred = useRef(false);
const screenStream = useRef(null);
+ // What the capture was asked for, so a MediaRecorder fallback can constrain a
+ // supersampled track back down before it encodes at 2x the intended size.
+ const captureCapRef = useRef(null);
const prewarmRef = useRef(null);
const cameraStream = useRef(null);
const micStream = useRef(null);
@@ -699,6 +716,24 @@ const CloudRecorder = () => {
encoderKinds.camera ||
null,
encoderHwSlots: eventPayload.encoderHwSlots || encoderHwSlots || null,
+ // Why this track's encoder was chosen (fallback attribution). Falls
+ // back to the per-track module global keyed off the event's track,
+ // then screen, so post-selection events carry it without threading.
+ encoderReason:
+ eventPayload.encoderReason ||
+ encoderReasons[eventPayload.trackType] ||
+ encoderReasons.screen ||
+ encoderReasons.camera ||
+ null,
+ // Device WebCodecs sticky-disable state at plan time.
+ encoderStickyDisabled:
+ typeof eventPayload.encoderStickyDisabled === "boolean"
+ ? eventPayload.encoderStickyDisabled
+ : typeof encoderSticky.disabled === "boolean"
+ ? encoderSticky.disabled
+ : null,
+ encoderStickyReason:
+ eventPayload.encoderStickyReason || encoderSticky.reason || null,
storageBackend: eventPayload.storageBackend || null,
storageInitMs:
typeof eventPayload.storageInitMs === "number"
@@ -716,6 +751,17 @@ const CloudRecorder = () => {
audioDiag: eventPayload.audioDiag || null,
lifecycleBundle: eventPayload.lifecycleBundle || null,
status: eventPayload.status || null,
+ // Finalize reconciliation from bunnyTusUploader: tail bytes lost to a
+ // truncated prefix, prior-session bytes recovered from the server
+ // offset. Undefined on normal events; truncatedBytes > 0 means loss.
+ truncatedBytes:
+ typeof eventPayload.truncatedBytes === "number"
+ ? eventPayload.truncatedBytes
+ : null,
+ recoveredBytes:
+ typeof eventPayload.recoveredBytes === "number"
+ ? eventPayload.recoveredBytes
+ : null,
},
};
};
@@ -1224,9 +1270,11 @@ const CloudRecorder = () => {
// Capture identity from the bound track (fires on every acquisition path).
// Enums and booleans only, no track.label/title/URL.
try {
+ const trackSettings = track.getSettings?.() || {};
captureContextRef.current = {
recordingType: recordingType.current || null,
- displaySurface: track.getSettings?.().displaySurface || null,
+ displaySurface: trackSettings.displaySurface || null,
+ screenSurface: trackSettings.displaySurface || null,
isTab: !!isTab.current,
region: Boolean(regionRef.current),
};
@@ -1871,17 +1919,9 @@ const CloudRecorder = () => {
return true;
};
- // Audio (mic) diagnostic snapshot for the MediaRecorder audio path.
- // The WebCodecs recorders expose getDiagSnapshot(); MediaRecorder does
- // not, so we assemble an equivalent from the existing sessionTrackState
- // counters plus the live mic-track + intent state. This is the one path
- // the WebCodecs telemetry never covered, which is exactly where the
- // silent empty-audio failures live.
- //
- // Returns null ONLY when the mic was not part of this recording (nothing
- // to observe). When the user chose the mic we always return a snapshot,
- // even at zero bytes, so an empty audio track stays observable. Pure
- // reads — never mutates state, never throws.
+ // MediaRecorder has no getDiagSnapshot(), so assemble the equivalent from
+ // sessionTrackState plus the live mic track. Null only when the mic wasn't
+ // part of the recording; zero bytes still returns a snapshot.
const getAudioDiagSnapshot = () => {
try {
const micChosen = audioIntent.current?.micActive === true;
@@ -1893,7 +1933,7 @@ const CloudRecorder = () => {
const audioState = sessionTrackState.current?.audio || {};
const uploaderMeta = audioUploader.current?.getMeta?.() || null;
return {
- // Authoritative user intent — the disambiguator that keeps a
+ // Authoritative user intent, the disambiguator that keeps a
// user-disabled mic from ever being read as a failure.
micChosen,
encoderKind: encoderKinds.audio || null,
@@ -1946,13 +1986,9 @@ const CloudRecorder = () => {
const cameraDiag = cameraRecorder.current?.getDiagSnapshot?.() || null;
const audioDiag = getAudioDiagSnapshot();
if (screenDiag || cameraDiag || audioDiag) {
- // Mic was chosen but the audio track produced zero bytes while
- // another track recorded fine — the silent-audio failure. We read
- // "did another track record" from sessionTrackState (populated for
- // every encoder kind) rather than the WebCodecs diags, so this
- // still fires when screen/camera run on MediaRecorder (no diag).
- // Requiring otherTrackRecorded keeps trivially-short / fully-failed
- // recordings from being flagged here.
+ // Silent-audio failure: mic chosen, zero audio bytes, another track
+ // fine. Reads from sessionTrackState not the WebCodecs diags, so it
+ // still fires on MediaRecorder, and skips fully-failed recordings.
const otherTrackRecorded =
(sessionTrackState.current.screen?.bytesRecorded || 0) > 0 ||
(sessionTrackState.current.camera?.bytesRecorded || 0) > 0;
@@ -2039,6 +2075,8 @@ const CloudRecorder = () => {
audio: "mediarecorder",
camera: "mediarecorder",
};
+ encoderReasons = { screen: null, audio: null, camera: null };
+ encoderSticky = { disabled: null, reason: null };
trackContainers = {
screen: "video/webm",
audio: "video/webm",
@@ -3058,9 +3096,6 @@ const CloudRecorder = () => {
} catch {}
return;
}
- try {
- window.parent.postMessage({ type: "screenity-exit", mode }, "*");
- } catch {}
window.location.reload();
};
@@ -3124,6 +3159,9 @@ const CloudRecorder = () => {
const initializeUploaders = async ({ forceNewSceneId = false } = {}) => {
try {
emptyCleanupRef.current = false;
+ // Set when a supersampled screen track is lowered for MediaRecorder, so the
+ // reported dims don't depend on applyConstraints having landed yet.
+ let constrainedScreenDims = null;
const { projectId } = await chrome.storage.local.get(["projectId"]);
const sessionId = ensureRecordingSessionId();
@@ -3207,6 +3245,67 @@ const CloudRecorder = () => {
encoderKinds.screen = screenPlan.kind;
encoderKinds.camera = cameraPlan.kind;
encoderKinds.audio = audioPlan.kind;
+ // Constrain here, not at start(): the dims reported below are read off this
+ // track, and MediaRecorder has no resize stage. Target the cloud tier, not
+ // the WebCodecs 1080p cap, or the fallback silently loses its 1440p.
+ if (captureCapRef.current?.oversampled) {
+ const screenVideoTrack = screenStream.current?.getVideoTracks?.()[0];
+ const before = screenVideoTrack?.getSettings?.() || {};
+ let outcome;
+ if (encoderKinds.screen === "mediarecorder") {
+ const cloudTier = getResolutionForQuality();
+ outcome = await constrainTrackDown(
+ screenVideoTrack,
+ cloudTier.width,
+ cloudTier.height,
+ );
+ // Aspect is preserved on the way down, so derive the dims rather than
+ // assuming the tier: an ultrawide lands at 2560x1072, not 2560x1440.
+ if (outcome === "lowered") {
+ const fitted = computeEncodedDimensions({
+ width: before.width,
+ height: before.height,
+ capWidth: cloudTier.width,
+ capHeight: cloudTier.height,
+ });
+ if (fitted.width > 0) constrainedScreenDims = fitted;
+ }
+ } else {
+ outcome = await enforceOversampleRatio(
+ screenVideoTrack,
+ WEBCODECS_CAP_WIDTH,
+ WEBCODECS_CAP_HEIGHT,
+ );
+ }
+ chrome.runtime
+ .sendMessage({
+ type: "diag-forward",
+ event: "cloudrecorder-oversample",
+ data: {
+ outcome,
+ kind: encoderKinds.screen,
+ trackW: before.width ?? null,
+ trackH: before.height ?? null,
+ },
+ })
+ .catch(() => {});
+ }
+ encoderReasons.screen = screenPlan.reason || null;
+ encoderReasons.camera = cameraPlan.reason || null;
+ encoderReasons.audio = audioPlan.reason || null;
+ // Best-effort: never let this read block recording start.
+ try {
+ const { getFastRecorderStickyState } = await import(
+ "../../media/fastRecorderGate"
+ );
+ const sticky = await getFastRecorderStickyState();
+ encoderSticky = {
+ disabled: sticky?.disabled === true,
+ reason: sticky?.reason || null,
+ };
+ } catch {
+ encoderSticky = { disabled: null, reason: null };
+ }
trackContainers.screen = screenPlan.container;
trackContainers.camera = cameraPlan.container;
trackContainers.audio = audioPlan.container;
@@ -3279,8 +3378,14 @@ const CloudRecorder = () => {
const track = screenStream.current.getVideoTracks()[0];
let width, height;
if (regionRef.current && target.current) {
+ // CSS pixels from the resize handle, so half the encoded frame on a 2x
+ // display. Known issue: getSettings() after cropTo() reports the
+ // uncropped tab size until frames flow, so it is no safer.
width = regionWidth.current;
height = regionHeight.current;
+ } else if (constrainedScreenDims) {
+ width = constrainedScreenDims.width;
+ height = constrainedScreenDims.height;
} else {
const settings = track.getSettings();
width = settings.width;
@@ -3502,6 +3607,10 @@ const CloudRecorder = () => {
// Opus-in-webm is the floor for audio; nothing safer to fall to.
return null;
}
+ // Don't fall from MP4 to WebM: the container was already sent as the TUS
+ // filetype and drives the editor's <video> type, so WebM bytes here play as
+ // a mislabelled MP4. Surface the error instead, like the VP8 floor below.
+ if (m.includes("mp4") || m.includes("avc1")) return null;
if (m.includes("vp8") || m === "video/webm") return null;
return "video/webm;codecs=vp8,opus";
};
@@ -3586,15 +3695,9 @@ const CloudRecorder = () => {
return;
}
- // EncodingError: the encoder passed isTypeSupported() at construction
- // but failed once real frames arrived (known on older Android H.264
- // and high-res getDisplayMedia encoder init). Chrome surfaces it as
- // EncodingError or one of these messages. If no bytes were captured
- // yet, transparently rebuild on VP8 and restart on the same stream —
- // nothing was recorded or uploaded, so the swap loses nothing and the
- // user barely notices. If data already flowed, we do NOT restart
- // (that would discard it); we fall through to the normal surface +
- // graceful stop, keeping what was recorded.
+ // Encoder passed isTypeSupported() but failed on real frames (older
+ // Android H.264, high-res getDisplayMedia init). With no bytes yet,
+ // rebuild on VP8; once data has flowed, stop gracefully and keep it.
const isEncodingError =
errName === "EncodingError" ||
errMsg.includes("video encoding failed") ||
@@ -5859,11 +5962,13 @@ const CloudRecorder = () => {
const canCaptureSourceAudio =
streamOpts.canRequestAudioTrack !== false;
const useDisplayMedia = !!streamOpts.useDisplayMedia;
+ // Only the screen branch supersamples; clear it so a later take can't
+ // inherit a previous recording's value.
+ captureCapRef.current = null;
const prewarmedStream = streamOpts.prewarmedStream || null;
const { width = 1920, height = 1080 } = getResolutionForQuality() || {};
- const { fpsValue } = await chrome.storage.local.get(["fpsValue"]);
- const fps = parseInt(fpsValue) || 30;
+ const fps = 30;
const { instantMode: instant } = await chrome.storage.local.get([
"instantMode",
@@ -5926,7 +6031,7 @@ const CloudRecorder = () => {
video: {
width: { max: 2560 },
height: { max: 1440 },
- frameRate: { ideal: 30, max: 60 },
+ frameRate: { ideal: fps, max: fps },
},
audio: data.systemAudio,
};
@@ -6117,12 +6222,32 @@ const CloudRecorder = () => {
data.recordingType === "region" || isTab.current;
const { disableSurfaceSwitching } =
await chrome.storage.local.get(["disableSurfaceSwitching"]);
+ // Supersample against the fixed 1920x1080 encode size, not the tier.
+ // Region is excluded because it crops instead of downscaling. The
+ // kill-switch restores the tier, not the encode cap, to keep 1440p.
+ const isRegionRequest = data.recordingType === "region";
+ const screenCap =
+ isRegionRequest || (await isOversampleDisabled())
+ ? null
+ : computeCaptureCap(WEBCODECS_CAP_WIDTH, WEBCODECS_CAP_HEIGHT);
+ const cloudCap = screenCap || {
+ width: targetWidth,
+ height: targetHeight,
+ oversampled: false,
+ };
+ captureCapRef.current = cloudCap;
const displayConstraints = {
audio: data.systemAudio ? true : false,
video: {
frameRate: { ideal: targetFps, max: targetFps },
- width: { ideal: targetWidth, max: targetWidth },
- height: { ideal: targetHeight, max: targetHeight },
+ // Not oversampling (region, or the kill-switch): keep the tier as
+ // `ideal` so those requests look exactly like they always did.
+ width: cloudCap.oversampled
+ ? { max: cloudCap.width }
+ : { ideal: cloudCap.width, max: cloudCap.width },
+ height: cloudCap.oversampled
+ ? { max: cloudCap.height }
+ : { ideal: cloudCap.height, max: cloudCap.height },
// Open the picker on Entire Screen for screen, Chrome Tab for
// tab/region. Hint only; the user can still switch panes.
displaySurface: isTabModeRequest ? "browser" : "monitor",
diff --git a/src/pages/CloudRecorder/bunnyTusUploader.js b/src/pages/CloudRecorder/bunnyTusUploader.js
index 52ee83c..5c00e8a 100644
--- a/src/pages/CloudRecorder/bunnyTusUploader.js
+++ b/src/pages/CloudRecorder/bunnyTusUploader.js
@@ -123,6 +123,9 @@ export default class BunnyTusUploader {
this.status = "idle";
this.error = null;
this.isFinalizing = false;
+ // Lets finalize's own drain keep running once isFinalizing is set.
+ // write() still checks isFinalizing alone, so new writes stay out.
+ this.isDrainingForFinalize = false;
this.isPaused = false;
this.metadata = {};
this.pendingUploads = [];
@@ -1143,7 +1146,10 @@ export default class BunnyTusUploader {
}
}
async uploadChunk(chunk) {
- if (this.isFinalizing) return;
+ // processQueue already shifted this chunk off the queue, so bailing here
+ // drops it for good. Finalize's drain is exactly when the queue still
+ // holds bytes we are about to declare.
+ if (this.isFinalizing && !this.isDrainingForFinalize) return;
let data = new Uint8Array(await chunk.arrayBuffer());
const chunkStartOffset = this.offset;
// One-shot 401 refresh per chunk. Re-armed each chunk so a token
@@ -1441,7 +1447,15 @@ export default class BunnyTusUploader {
this.isProcessingQueue = true;
try {
- while (this.chunkQueue.length && !this.isPaused && !this.isFinalizing) {
+ // isFinalizing alone used to stop this loop, which deadlocked finalize:
+ // it sets the flag, then waits on a queue nothing was allowed to drain.
+ // Short recordings lost the final chunk and uploaded a header Bunny
+ // could not transcode.
+ while (
+ this.chunkQueue.length &&
+ !this.isPaused &&
+ (!this.isFinalizing || this.isDrainingForFinalize)
+ ) {
const chunk = this.chunkQueue.shift();
this.queuedBytes -= chunk.size;
@@ -1516,7 +1530,23 @@ export default class BunnyTusUploader {
this.emitTelemetry("upload_finalize_started");
this.scheduleJournalPersist({ force: true });
try {
- await this.waitForPendingUploads();
+ // Lets processQueue and uploadChunk run while isFinalizing is set.
+ this.isDrainingForFinalize = true;
+ try {
+ await this.waitForPendingUploads();
+ } finally {
+ this.isDrainingForFinalize = false;
+ }
+
+ // Never declare the length with bytes still queued. Bunny accepts a
+ // short upload, transcoding then fails, and the recording is gone with
+ // no error anywhere. Failing here keeps the retry path alive.
+ if (this.chunkQueue.length > 0) {
+ this.setUploaderError("finalize-queue-not-drained");
+ throw new Error(
+ `Finalize blocked: ${this.chunkQueue.length} chunk(s) (${this.queuedBytes} bytes) still queued after drain.`,
+ );
+ }
if (this.bytesLostAfterFinalize > 0) {
this.status = "error";
@@ -1579,46 +1609,35 @@ export default class BunnyTusUploader {
throw new Error("Finalize failed: server has 0 bytes.");
}
- if (serverOffset < this.totalBytes) {
- this.status = "error";
- this.error = `incomplete-upload server=${serverOffset} expected=${this.totalBytes}`;
- this.lastErrorAt = Date.now();
- this.lastErrorCode = "finalize-incomplete-upload";
- this.emitTelemetry("upload_error", {
- errorCode: "finalize-incomplete-upload",
- serverOffset,
- expectedBytes: this.totalBytes,
- });
- this.scheduleJournalPersist({ force: true });
- throw new Error(
- `Finalize blocked: upload incomplete (server ${serverOffset} / expected ${this.totalBytes}).`,
- );
- }
-
+ // Server's Upload-Offset is the source of truth for the final length:
+ // re-sends at a stale offset get 409'd and trimmed (see uploadChunk), so
+ // stored bytes are always a clean prefix and drift is bookkeeping skew.
+ let recoveredBytes = 0;
+ let truncatedBytes = 0;
if (serverOffset > this.totalBytes) {
- this.status = "error";
- this.error = `invalid-length server=${serverOffset} expected=${this.totalBytes}`;
- this.lastErrorAt = Date.now();
- this.lastErrorCode = "finalize-invalid-length";
- this.emitTelemetry("upload_error", {
- errorCode: "finalize-invalid-length",
- serverOffset,
- expectedBytes: this.totalBytes,
- });
- this.scheduleJournalPersist({ force: true });
- throw new Error(
- `Finalize blocked: serverOffset (${serverOffset}) exceeds expected totalBytes (${this.totalBytes}).`,
- );
+ // Server holds more than the client counted: bytes PATCHed in a prior
+ // session after the last journal write. Those are durably on Bunny, so
+ // recover them by trusting the server.
+ recoveredBytes = serverOffset - this.totalBytes;
+ this.totalBytes = serverOffset;
+ } else if (serverOffset < this.totalBytes) {
+ // Server holds less: the tail is stranded (stalled uplink or a failed
+ // chunk; bytes past a tus gap are unrecoverable anyway). Declare the
+ // clean prefix instead of looping. truncatedBytes tracks the cost.
+ truncatedBytes = this.totalBytes - serverOffset;
+ this.totalBytes = serverOffset;
}
- // Complete the tus upload by declaring final length.
+ // Upload-Length must equal Upload-Offset to complete, and can never be
+ // below it. Declaring the client tally when the two disagreed was what
+ // Bunny rejected.
const res = await fetch(this.uploadUrl, {
method: "PATCH",
headers: {
"Tus-Resumable": "1.0.0",
"Content-Type": "application/offset+octet-stream",
"Upload-Offset": String(serverOffset),
- "Upload-Length": String(this.totalBytes),
+ "Upload-Length": String(serverOffset),
AuthorizationSignature: this.signature,
AuthorizationExpire: String(this.expires),
LibraryId: String(this.libraryId),
@@ -1638,9 +1657,15 @@ export default class BunnyTusUploader {
this.emitTelemetry("upload_finalize_completed", {
finalizedBytes: this.totalBytes,
alreadyFinalized: alreadyFinalized || undefined,
+ // Reconciled a prior session's unjournaled bytes back in (no loss).
+ recoveredBytes: recoveredBytes || undefined,
+ // Finalized a truncated clean prefix; this many tail bytes were
+ // stranded and lost. > 0 here is the signal to watch.
+ truncatedBytes: truncatedBytes || undefined,
});
this.emitTelemetry("upload_complete_client", {
finalizedBytes: this.totalBytes,
+ truncatedBytes: truncatedBytes || undefined,
});
this.stopHeartbeat();
await this.clearUploadJournal();
diff --git a/src/pages/CloudRecorder/encoder/chooseEncoder.js b/src/pages/CloudRecorder/encoder/chooseEncoder.js
index 73c9ea3..a6035c0 100644
--- a/src/pages/CloudRecorder/encoder/chooseEncoder.js
+++ b/src/pages/CloudRecorder/encoder/chooseEncoder.js
@@ -10,6 +10,54 @@ import {
} from "../../../media/fastRecorderGate";
import { WebCodecsTrackRecorder } from "./WebCodecsTrackRecorder";
import { probeHwSlots } from "./hwSlotProbe";
+import { canStartMp4Recorder } from "../../utils/recorderCodec";
+
+// Prefer H.264/MP4 fallback (Chrome/Edge 126+, not Firefox); VP9-WebM breaks
+// downstream (Bunny drops frames, node-av SIGSEGVs). false = VP9-WebM.
+const PREFER_MP4_MEDIARECORDER = true;
+
+// H.264 Baseline + AAC-LC. Video-only variant for audioless tracks;
+// isTypeSupported answers differently for the two, so probe both.
+const MP4_MR_WITH_AUDIO = "video/mp4;codecs=avc1.42E01E,mp4a.40.2";
+const MP4_MR_VIDEO_ONLY = "video/mp4;codecs=avc1.42E01E";
+
+let _mp4MrSupport = null;
+const probeMp4MediaRecorder = () => {
+ if (_mp4MrSupport !== null) return _mp4MrSupport;
+ const supported = (mime) => {
+ try {
+ return (
+ typeof MediaRecorder !== "undefined" &&
+ typeof MediaRecorder.isTypeSupported === "function" &&
+ MediaRecorder.isTypeSupported(mime)
+ );
+ } catch {
+ return false;
+ }
+ };
+ _mp4MrSupport = PREFER_MP4_MEDIARECORDER
+ ? {
+ withAudio: supported(MP4_MR_WITH_AUDIO),
+ videoOnly: supported(MP4_MR_VIDEO_ONLY),
+ }
+ : { withAudio: false, videoOnly: false };
+ return _mp4MrSupport;
+};
+
+// Only claim MP4 when both variants record: the container is fixed before we
+// know whether this track carries audio.
+const mediaRecorderVideoPlan = () => {
+ const s = probeMp4MediaRecorder();
+ return s.withAudio && s.videoOnly
+ ? { container: "video/mp4", codec: "avc1.42E01E" }
+ : { container: "video/webm", codec: "vp9" };
+};
+
+// Null for WebM: callers pass their existing mime through unchanged.
+export const mediaRecorderMimeFor = ({ container, enableAudio }) => {
+ if (container !== "video/mp4") return null;
+ return enableAudio ? MP4_MR_WITH_AUDIO : MP4_MR_VIDEO_ONLY;
+};
// Encoded dims (capped at 1080p), not source-native. WebCodecs only;
// MediaRecorder records native, so it skips this.
@@ -91,8 +139,7 @@ export const inspectTrackPlan = async ({ track, probeOptions }) => {
if (sticky?.disabled) {
return {
kind: "mediarecorder",
- container: "video/webm",
- codec: "vp9",
+ ...mediaRecorderVideoPlan(),
hwSlots: hwSlots.summary,
reason: "fastRecorderGate-sticky-disabled",
};
@@ -101,8 +148,7 @@ export const inspectTrackPlan = async ({ track, probeOptions }) => {
if (!trackHw?.supported) {
return {
kind: "mediarecorder",
- container: "video/webm",
- codec: "vp9",
+ ...mediaRecorderVideoPlan(),
hwSlots: hwSlots.summary,
reason: `hw-probe-${track}-unsupported`,
};
@@ -116,8 +162,7 @@ export const inspectTrackPlan = async ({ track, probeOptions }) => {
if (hwSlots.summary.aacSupported === false) {
return {
kind: "mediarecorder",
- container: "video/webm",
- codec: "vp9",
+ ...mediaRecorderVideoPlan(),
hwSlots: hwSlots.summary,
reason: "aac-unsupported",
};
@@ -125,8 +170,7 @@ export const inspectTrackPlan = async ({ track, probeOptions }) => {
if (track === "camera" && hwSlots.summary.mode === "screen-hw-camera-mr") {
return {
kind: "mediarecorder",
- container: "video/webm",
- codec: "vp9",
+ ...mediaRecorderVideoPlan(),
hwSlots: hwSlots.summary,
reason: "screen-hw-camera-mr-mode",
};
@@ -137,6 +181,10 @@ export const inspectTrackPlan = async ({ track, probeOptions }) => {
const cameraPreferSoftware =
track === "camera" &&
hwSlots.summary.mode === "dual-webcodecs-camera-sw";
+ // HW encoder failed the output-liveness probe: use software H.264 (same MP4)
+ // rather than risk a silent zero-chunk recording. Off until the probe ships.
+ const screenPreferSoftware =
+ track === "screen" && Boolean(hwSlots.summary.screenPreferSoftware);
return {
kind: "webcodecs",
container: "video/mp4",
@@ -145,7 +193,12 @@ export const inspectTrackPlan = async ({ track, probeOptions }) => {
codec: "avc1.64002A",
hwSlots: hwSlots.summary,
cameraPreferSoftware,
- reason: cameraPreferSoftware ? "dual-webcodecs-camera-sw-mode" : "ok",
+ screenPreferSoftware,
+ reason: cameraPreferSoftware
+ ? "dual-webcodecs-camera-sw-mode"
+ : screenPreferSoftware
+ ? "screen-hw-no-output-sw"
+ : "ok",
};
};
@@ -163,9 +216,29 @@ export const chooseTrackEncoder = async ({
const plan = await inspectTrackPlan({ track, probeOptions });
if (plan.kind === "mediarecorder") {
+ // Use the plan's mime so bytes match the container we already reported (TUS
+ // filetype / editor blob type). Null = WebM: pass the caller's mime unchanged.
+ let planMime = mediaRecorderMimeFor({
+ container: plan.container,
+ enableAudio,
+ });
+ // isTypeSupported can advertise MP4 on boxes whose MediaRecorder throws from
+ // start(). Probe the real stream and fall back to WebM rather than lose the
+ // recording; plan.container follows so the reported filetype stays truthful.
+ if (planMime && !canStartMp4Recorder(stream, planMime)) {
+ planMime = null;
+ plan.container = "video/webm";
+ plan.codec = "vp9";
+ plan.reason = `${plan.reason}+mp4-start-probe-failed`;
+ }
return {
...plan,
- recorder: createMediaRecorder(stream, { mimeType }, onDataAvailable, track),
+ recorder: createMediaRecorder(
+ stream,
+ { mimeType: planMime || mimeType },
+ onDataAvailable,
+ track,
+ ),
};
}
@@ -186,7 +259,10 @@ export const chooseTrackEncoder = async ({
videoBitsPerSecond,
audioBitsPerSecond,
enableAudio,
- preferSoftware: forceSoftware || Boolean(plan.cameraPreferSoftware),
+ preferSoftware:
+ forceSoftware ||
+ Boolean(plan.cameraPreferSoftware) ||
+ Boolean(plan.screenPreferSoftware),
trackKind: track,
});
recorder.ondataavailable = (event) => {
diff --git a/src/pages/CloudRecorder/encoder/hwSlotProbe.js b/src/pages/CloudRecorder/encoder/hwSlotProbe.js
index 6280368..77ce2dc 100644
--- a/src/pages/CloudRecorder/encoder/hwSlotProbe.js
+++ b/src/pages/CloudRecorder/encoder/hwSlotProbe.js
@@ -231,6 +231,97 @@ const probeConcurrentHw = async ({ codec, framerate }) => {
};
};
+// Output-liveness probe for screen-only recordings, which skip the concurrent
+// probe and pick an encoder on isConfigSupported alone: that misses a HW encoder
+// that configures cleanly but emits zero chunks (the "28-byte empty recording" bug).
+const SINGLE_FRAME_COUNT = 30;
+const SINGLE_TIMEOUT_MS = 2500;
+const SINGLE_MIN_CHUNKS = 4;
+
+const probeSingleHw = async ({ codec, framerate }) => {
+ if (
+ typeof VideoEncoder === "undefined" ||
+ typeof VideoFrame === "undefined" ||
+ typeof OffscreenCanvas === "undefined"
+ ) {
+ return { ran: false, reason: "no-webcodecs" };
+ }
+ const width = 1280;
+ const height = 720;
+ const config = {
+ codec,
+ width,
+ height,
+ bitrate: PROBE_BITRATE,
+ framerate,
+ bitrateMode: "constant",
+ latencyMode: "realtime",
+ hardwareAcceleration: "prefer-hardware",
+ };
+ let chunks = 0;
+ let error = null;
+ let encoder = null;
+ try {
+ encoder = new VideoEncoder({
+ output: () => {
+ chunks += 1;
+ },
+ error: (err) => {
+ error = String(err?.message || err);
+ },
+ });
+ encoder.configure(config);
+ } catch (err) {
+ try {
+ encoder?.close();
+ } catch {}
+ return { ran: false, reason: "configure-failed" };
+ }
+ const canvas = new OffscreenCanvas(width, height);
+ const ctx = canvas.getContext("2d");
+ if (!ctx) {
+ try {
+ encoder.close();
+ } catch {}
+ return { ran: false, reason: "no-2d-context" };
+ }
+ for (let i = 0; i < SINGLE_FRAME_COUNT; i++) {
+ ctx.fillStyle = `hsl(${(i * 31) % 360}, 50%, 40%)`;
+ ctx.fillRect(0, 0, width, height);
+ const ts = Math.round((i * 1_000_000) / framerate);
+ const dur = Math.round(1_000_000 / framerate);
+ try {
+ const frame = new VideoFrame(canvas, { timestamp: ts, duration: dur });
+ encoder.encode(frame, { keyFrame: i === 0 });
+ frame.close();
+ } catch {}
+ // Same D3D11-crash guard as the concurrent probe: yield so encode() drains.
+ if (i % CONCURRENT_QUEUE_YIELD_EVERY === CONCURRENT_QUEUE_YIELD_EVERY - 1) {
+ await new Promise((r) => setTimeout(r, 0));
+ }
+ }
+ try {
+ await Promise.race([
+ encoder.flush(),
+ new Promise((r) => setTimeout(r, SINGLE_TIMEOUT_MS)),
+ ]);
+ } catch {}
+ // Output (and error) callbacks can land AFTER flush() resolves on some
+ // Chrome versions (crbug 529852980, fixed only ~M149); a too-tight read
+ // would undercount a healthy encoder's chunks and false-flag it dead.
+ await new Promise((r) => setTimeout(r, 150));
+ const emitted = chunks;
+ try {
+ encoder.close();
+ } catch {}
+ return {
+ ran: true,
+ alive: emitted >= SINGLE_MIN_CHUNKS,
+ chunks: emitted,
+ error,
+ };
+};
+
// MP4 carries AAC audio. probeOne only verifies the H.264 *video* encoder, so
// a build that encodes H.264 but not AAC (some Chromium builds without
// proprietary codecs) would pick the WebCodecs MP4 path and then silently drop
@@ -288,6 +379,40 @@ export const probeHwSlots = async ({
}
}
+ // Screen HW output-liveness, gated behind screenHwOutputProbe (default off).
+ // If the screen encoder emits no real chunks, record with software H.264 (same
+ // MP4 container) instead of an empty file.
+ let screenPreferSoftware = false;
+ let screenProbe2 = null;
+ if (screenProbe.supported) {
+ let enableScreenProbe = false;
+ try {
+ const s =
+ typeof chrome !== "undefined" && chrome.storage && chrome.storage.local
+ ? await chrome.storage.local.get(["screenHwOutputProbe"])
+ : {};
+ enableScreenProbe = Boolean(s.screenHwOutputProbe);
+ } catch {}
+ if (enableScreenProbe) {
+ // Fresh probe rather than reusing the concurrent probe's count: that count
+ // was taken under camera contention, but at record time the camera runs
+ // software (below), so the screen encoder has the HW slot to itself.
+ const screenCodec =
+ screenProbe.configResolved?.codec || CODEC_CANDIDATES[0];
+ try {
+ screenProbe2 = await probeSingleHw({
+ codec: screenCodec,
+ framerate,
+ });
+ } catch {
+ screenProbe2 = { ran: false, reason: "exception" };
+ }
+ screenPreferSoftware = Boolean(
+ screenProbe2?.ran && screenProbe2.alive === false,
+ );
+ }
+ }
+
// macOS VideoToolbox h264 serializes per process; a second concurrent
// prefer-hardware silently falls back to SW at unpredictable fps.
// Route camera to explicit SW (below) to avoid contending the slot.
@@ -318,6 +443,7 @@ export const probeHwSlots = async ({
screen: screenProbe,
camera: cameraProbe,
concurrentProbe,
+ screenProbe2,
summary: {
screenHw: screenProbe.supported,
cameraHw: cameraHwViable,
@@ -325,6 +451,7 @@ export const probeHwSlots = async ({
cameraHwAvailable,
cameraHwAdvertised: cameraProbe.supported,
cameraPreferSoftware,
+ screenPreferSoftware,
concurrent: concurrentProbe?.concurrent ?? null,
concurrentRan: Boolean(concurrentProbe?.ran),
isMacUA,
diff --git a/src/pages/CloudRecorder/recorderConfig.js b/src/pages/CloudRecorder/recorderConfig.js
index bd09fd6..862e7cd 100644
--- a/src/pages/CloudRecorder/recorderConfig.js
+++ b/src/pages/CloudRecorder/recorderConfig.js
@@ -1,11 +1,5 @@
-export const MIME_TYPES = [
- "video/webm;codecs=vp9,opus",
- "video/webm;codecs=vp8,opus",
- "video/webm;codecs=h264",
- "video/webm",
- "video/mp4",
- "video/webm;codecs=avc1",
-];
+// MIME_TYPES lived here but was never imported. Cloud codec/container choice
+// is in encoder/chooseEncoder.js (inspectTrackPlan).
export function getBitrates(quality) {
switch (quality) {
diff --git a/src/pages/Content/Wrapper.jsx b/src/pages/Content/Wrapper.jsx
index 133911a..9e6cb9f 100644
--- a/src/pages/Content/Wrapper.jsx
+++ b/src/pages/Content/Wrapper.jsx
@@ -154,12 +154,9 @@ const Wrapper = () => {
// visibility-hidden gate below never fires. Without this flag the
// toolbar would just freeze.
const inRestartWait = Boolean(contentState.restartingRecording);
- // The real "starting" gap is the post-acquisition preparing window: stream
- // acquired → cloud project created → countdown. preparingRecording is true
- // throughout it, the popup is already closed, document is visible, and no
- // recorder tab exists — so show the loader here (bypassing the hide gate).
- // pendingRecording/inPreCountdownWait is only true for ~10ms before the
- // countdown, so it can't drive this. Gate on the offscreen host (default ON).
+ // The real "starting" gap is the preparing window between stream acquisition
+ // and countdown, where the popup is closed and no recorder tab exists, so the
+ // loader shows here. pendingRecording lasts ~10ms and can't drive it.
const inPreparingWait =
Boolean(contentState.preparingRecording) &&
!contentState.countdownActive &&
@@ -308,7 +305,7 @@ const Wrapper = () => {
}}
ref={permissionsRef}
src={chrome.runtime.getURL("permissions.html")}
- allow="camera *; microphone *"
+ allow="camera *; microphone *; display-capture *"
></iframe>
)}
{contentState.hasOpenedBefore && (
diff --git a/src/pages/Content/context/ContentState.jsx b/src/pages/Content/context/ContentState.jsx
index b1c7eac..91dd939 100644
--- a/src/pages/Content/context/ContentState.jsx
+++ b/src/pages/Content/context/ContentState.jsx
@@ -219,19 +219,23 @@ const ContentState = (props) => {
};
}, [recomputeRecordingUiAllowed]);
- // Permissions-Policy: camera=(), microphone=() on the host page disables
- // those APIs in every iframe including ours, surfacing as NotAllowedError;
- // distinguish from a real permission issue.
+ // Permissions-Policy camera=()/microphone=() surfaces as NotAllowedError, not a
+ // real permission issue. This top-page probe misses feature=(self) (facebook.com);
+ // that's caught by the permissions.html iframe message. display-capture blocks only region.
useEffect(() => {
try {
const pp = document.permissionsPolicy || document.featurePolicy;
if (!pp || typeof pp.allowsFeature !== "function") return;
const cameraBlocked = !pp.allowsFeature("camera");
const micBlocked = !pp.allowsFeature("microphone");
- if (cameraBlocked || micBlocked) {
+ const displayCaptureBlocked = !pp.allowsFeature("display-capture");
+ if (cameraBlocked || micBlocked || displayCaptureBlocked) {
setContentState((prev) => ({
...prev,
- sitePermissionsBlocked: true,
+ sitePermissionsBlocked:
+ prev.sitePermissionsBlocked || cameraBlocked || micBlocked,
+ siteDisplayCaptureBlocked:
+ prev.siteDisplayCaptureBlocked || displayCaptureBlocked,
}));
}
} catch {}
@@ -585,6 +589,20 @@ const ContentState = (props) => {
return;
}
+ // Region capture runs getDisplayMedia in our in-page iframe, so a host page
+ // that won't delegate display-capture (e.g. facebook.com) rejects it before any
+ // picker. The popup disables this, but the shortcut path doesn't, so backstop it.
+ if (
+ contentStateRef.current?.recordingType === "region" &&
+ contentStateRef.current?.siteDisplayCaptureBlocked
+ ) {
+ contentStateRef.current.openToast?.(
+ chrome.i18n.getMessage("tabRecordingDisabledToast"),
+ 4000,
+ );
+ return;
+ }
+
// Kick off synchronously: later awaits (initStartFlowTrace, Pro storage
// quota) would consume the click's user-gesture before it reaches
// chrome.permissions.request in the SW.
@@ -1034,18 +1052,14 @@ const ContentState = (props) => {
}));
if (contentStateRef.current.askForPermissions) {
if (contentStateRef.current.sitePermissionsBlocked) {
- contentStateRef.current.openModal(
- chrome.i18n.getMessage("sitePermissionsBlockedTitle"),
- chrome.i18n.getMessage("sitePermissionsBlockedDescription"),
- null,
- chrome.i18n.getMessage("permissionsModalDismiss"),
- () => {},
- () => {},
- null,
- chrome.i18n.getMessage("learnMoreDot"),
- "https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Permissions-Policy",
- true,
- false,
+ // Site's Permissions-Policy blocks camera/mic; not user-grantable. Warn
+ // instead of the "check your permissions" modal that implies the user
+ // can fix it in the address bar.
+ contentStateRef.current.openWarning?.(
+ chrome.i18n.getMessage("cameraMicBlockedTitle"),
+ chrome.i18n.getMessage("cameraMicBlockedDescription"),
+ "VideoOffIcon",
+ 10000,
);
} else {
contentStateRef.current.openModal(
@@ -1085,6 +1099,21 @@ const ContentState = (props) => {
...prevContentState,
permissionsLoaded: true,
}));
+ } else if (event.data.type === "screenity-site-policy") {
+ // Accurate host-page Permissions-Policy read from the cross-origin
+ // permissions.html iframe: feature=(self) (e.g. facebook.com) blocks
+ // our iframe even though the top-page probe above sees it as allowed.
+ const camMicBlocked =
+ event.data.cameraAllowed === false ||
+ event.data.microphoneAllowed === false;
+ const displayBlocked = event.data.displayCaptureAllowed === false;
+ setContentState((prevContentState) => ({
+ ...prevContentState,
+ sitePermissionsBlocked:
+ prevContentState.sitePermissionsBlocked || camMicBlocked,
+ siteDisplayCaptureBlocked:
+ prevContentState.siteDisplayCaptureBlocked || displayBlocked,
+ }));
}
};
@@ -1110,7 +1139,7 @@ const ContentState = (props) => {
recording: false,
// True between stop click and editor-open (or watchdog fire).
// Drives the toolbar "Saving recording…" state during finalize.
- // for 1–6s in the background.
+ // for 1-6s in the background.
finalizingRecording: false,
// True between restart click and next countdown / recording.
// Drives the RecordingLoader during the restart gap. Cleared by
@@ -1137,8 +1166,12 @@ const ContentState = (props) => {
openModal: null,
openToast: null,
// Page-level Permissions-Policy disallows camera/mic. Lets us show a
- // site-specific modal instead of the misleading "check your permissions" one.
+ // site-specific warning instead of the misleading "check your permissions" one.
sitePermissionsBlocked: false,
+ // Page-level Permissions-Policy disallows display-capture (e.g.
+ // facebook.com). Region capture runs getDisplayMedia in-page, so it can't
+ // start here; lets us disable the tab-area tab instead of failing silently.
+ siteDisplayCaptureBlocked: false,
timeWarning: false,
audioInput: [],
videoInput: [],
@@ -1198,7 +1231,6 @@ const ContentState = (props) => {
cameraPermission: true,
microphonePermission: true,
askMicrophone: true,
- recordingShortcut: "⌥⇧W",
recordingShortcut: "⌥⇧D",
toggleDrawingModeShortcut: "",
toggleBlurModeShortcut: "",
@@ -1558,6 +1590,9 @@ const ContentState = (props) => {
if (
!contentState.recording &&
+ // The capture is already live through the countdown, so re-opening here
+ // on a dep change would put the toast in the recording's first frames.
+ !contentState.countdownActive &&
isMac &&
warningList.some((el) => window.location.href.includes(el)) &&
contentState.recordingType != "region" &&
@@ -1571,6 +1606,7 @@ const ContentState = (props) => {
),
"AudioIcon",
10000,
+ "bottom",
);
} else if (
window.location.href.includes("playground.html") &&
@@ -1583,12 +1619,27 @@ const ContentState = (props) => {
"NotSupportedIcon",
10000,
);
+ } else if (
+ !contentState.recording &&
+ contentState.sitePermissionsBlocked &&
+ contentState.recordingType === "camera"
+ ) {
+ // Host page's Permissions-Policy blocks camera/mic in our cross-origin iframe
+ // (e.g. facebook.com), which the viewer can't grant; warn instead of the modal.
+ // Only camera recordings touch in-page camera/mic; others route through the request flow.
+ contentState.openWarning(
+ chrome.i18n.getMessage("cameraMicBlockedTitle"),
+ chrome.i18n.getMessage("cameraMicBlockedDescription"),
+ "VideoOffIcon",
+ 10000,
+ );
}
}
}, [
contentState.openWarning,
contentState.recording,
contentState.recordingType,
+ contentState.sitePermissionsBlocked,
]);
useEffect(() => {
diff --git a/src/pages/Content/context/messaging/handlers.js b/src/pages/Content/context/messaging/handlers.js
index c1a38da..77de683 100644
--- a/src/pages/Content/context/messaging/handlers.js
+++ b/src/pages/Content/context/messaging/handlers.js
@@ -2,7 +2,7 @@ import {
registerMessage,
messageRouter,
} from "../../../../messaging/messageRouter";
-import { setContentState, contentStateRef } from "../ContentState";
+import { setContentState, contentStateRef, setTimer } from "../ContentState";
import { updateFromStorage } from "../utils/updateFromStorage";
import { checkAuthStatus } from "../utils/checkAuthStatus";
@@ -876,7 +876,7 @@ export const setupHandlers = () => {
if (!description) return;
const timeout = message?.timeout || 10000;
if (typeof state.openWarning === "function") {
- state.openWarning(title, description, "AudioIcon", timeout);
+ state.openWarning(title, description, "AudioIcon", timeout, "bottom");
} else if (typeof state.openToast === "function") {
state.openToast(description, () => {}, timeout);
}
diff --git a/src/pages/Content/popup/layout/RecordingTab.jsx b/src/pages/Content/popup/layout/RecordingTab.jsx
index 5bbb1ff..2c3d8d5 100644
--- a/src/pages/Content/popup/layout/RecordingTab.jsx
+++ b/src/pages/Content/popup/layout/RecordingTab.jsx
@@ -45,7 +45,11 @@ const RecordingTab = (props) => {
useEffect(() => {
const currentUrl = window.location.href;
- const isBlocked = currentUrl.includes(process.env.SCREENITY_APP_BASE);
+ // facebook.com and similar: Permissions-Policy won't delegate
+ // display-capture to our region iframe, so region capture can't start.
+ const isBlocked =
+ currentUrl.includes(process.env.SCREENITY_APP_BASE) ||
+ contentState.siteDisplayCaptureBlocked === true;
setTabRecordingDisabled(isBlocked);
@@ -60,7 +64,7 @@ const RecordingTab = (props) => {
4000
);
}
- }, [contentState.recordingType]);
+ }, [contentState.recordingType, contentState.siteDisplayCaptureBlocked]);
const onValueChange = (tab) => {
setContentState((prevContentState) => ({
diff --git a/src/pages/Content/popup/layout/RecordingType.jsx b/src/pages/Content/popup/layout/RecordingType.jsx
index 84b99a6..f6bcbf9 100644
--- a/src/pages/Content/popup/layout/RecordingType.jsx
+++ b/src/pages/Content/popup/layout/RecordingType.jsx
@@ -29,29 +29,20 @@ const RecordingType = (props) => {
const buttonRef = useRef(null);
const isMac = navigator.platform.toUpperCase().indexOf("MAC") >= 0;
- // Opens the right permissions modal based on why access is blocked.
- // When the hosting page's Permissions-Policy header disallows camera or
- // microphone, the usual "click the camera icon in the address bar" advice
- // is wrong (the site is the blocker, not the browser). Route to a
- // site-specific modal in that case.
+ // When the page's Permissions-Policy blocks camera/mic, the "click the
+ // address-bar icon" advice is wrong (the site blocks it, not the browser,
+ // and the user can't grant it), so show a toast instead of the modal.
const openPermissionsModal = () => {
- if (typeof contentState.openModal !== "function") return;
if (contentState.sitePermissionsBlocked) {
- contentState.openModal(
- chrome.i18n.getMessage("sitePermissionsBlockedTitle"),
- chrome.i18n.getMessage("sitePermissionsBlockedDescription"),
- null,
- chrome.i18n.getMessage("permissionsModalDismiss"),
- () => {},
- () => {},
- null,
- chrome.i18n.getMessage("learnMoreDot"),
- "https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Permissions-Policy",
- true,
- false
+ contentState.openWarning?.(
+ chrome.i18n.getMessage("cameraMicBlockedTitle"),
+ chrome.i18n.getMessage("cameraMicBlockedDescription"),
+ "VideoOffIcon",
+ 10000
);
return;
}
+ if (typeof contentState.openModal !== "function") return;
contentState.openModal(
chrome.i18n.getMessage("permissionsModalTitle"),
chrome.i18n.getMessage("permissionsModalDescription"),
diff --git a/src/pages/Content/region/components/RegionHandles.jsx b/src/pages/Content/region/components/RegionHandles.jsx
deleted file mode 100644
index 4046c5f..0000000
--- a/src/pages/Content/region/components/RegionHandles.jsx
+++ /dev/null
@@ -1,191 +0,0 @@
-import React, { useState, useContext, useRef, useEffect } from "react";
-import { Rnd } from "react-rnd";
-
-// Context
-import { contentStateContext } from "../../context/ContentState";
-
-const ResizableBox = () => {
- return (
- <div style={{ position: "relative" }}>
- <div
- style={{
- position: "fixed",
- top: 0,
- left: 0,
- width: "100%",
- height: "100%",
- backgroundColor: "rgba(0, 0, 0, 0.5)",
- zIndex: 999999999,
- }}
- >
- <div
- style={{
- position: "absolute",
- top: 0,
- left: 0,
- width: "100%",
- height: "100%",
- zIndex: 9999999999,
- }}
- className="box-hole"
- />
- </div>
- <Rnd
- ref={regionRef}
- style={{ position: "fixed", zIndex: 9999999999 }}
- default={{
- x: 0,
- y: 0,
- width: 200,
- height: 200,
- }}
- minWidth={100}
- minHeight={100}
- resizeHandleWrapperClass="resize-handle-wrapper"
- resizeHandleComponent={{
- topLeft: (
- <div
- style={{
- position: "absolute",
- top: "0px",
- left: "0px",
- width: "10px",
- height: "10px",
- borderRadius: "50%",
- backgroundColor: "white",
- border: "2px solid black",
- cursor: "nwse-resize",
- boxSizing: "border-box",
- }}
- />
- ),
- top: (
- <div
- style={{
- position: "absolute",
- top: "0px",
- left: "50%",
- width: "10px",
- height: "10px",
- borderRadius: "50%",
- backgroundColor: "white",
- border: "2px solid black",
- cursor: "ns-resize",
- boxSizing: "border-box",
- }}
- />
- ),
- topRight: (
- <div
- style={{
- position: "absolute",
- top: "0px",
- right: "0px",
- width: "10px",
- height: "10px",
- borderRadius: "50%",
- backgroundColor: "white",
- border: "2px solid black",
- cursor: "nesw-resize",
- boxSizing: "border-box",
- }}
- />
- ),
- right: (
- <div
- style={{
- position: "absolute",
- top: "50%",
- right: "0px",
- width: "10px",
- height: "10px",
- borderRadius: "50%",
- backgroundColor: "white",
- border: "2px solid black",
- cursor: "ew-resize",
- boxSizing: "border-box",
- }}
- />
- ),
- bottomRight: (
- <div
- style={{
- position: "absolute",
- bottom: "0px",
- right: "0px",
- width: "10px",
- height: "10px",
- borderRadius: "50%",
- backgroundColor: "white",
- border: "2px solid black",
- cursor: "nwse-resize",
- boxSizing: "border-box",
- }}
- />
- ),
- bottom: (
- <div
- style={{
- position: "absolute",
- bottom: "0px",
- left: "50%",
- width: "10px",
- height: "10px",
- borderRadius: "50%",
- backgroundColor: "white",
- border: "2px solid black",
- cursor: "ns-resize",
- boxSizing: "border-box",
- }}
- />
- ),
- bottomLeft: (
- <div
- style={{
- position: "absolute",
- bottom: "0px",
- left: "0px",
- width: "10px",
- height: "10px",
- borderRadius: "50%",
- backgroundColor: "white",
- border: "2px solid black",
- cursor: "nesw-resize",
- boxSizing: "border-box",
- }}
- />
- ),
- left: (
- <div
- style={{
- position: "absolute",
- top: "50%",
- left: "0px",
- width: "10px",
- height: "10px",
- borderRadius: "50%",
- backgroundColor: "white",
- border: "2px solid black",
- cursor: "ew-resize",
- boxSizing: "border-box",
- }}
- />
- ),
- }}
- >
- <div
- style={{
- width: "100%",
- height: "100%",
- border: "2px dashed white",
- borderRadius: "5px",
- zIndex: 9999999999,
- boxSizing: "border-box",
- }}
- />
- </Rnd>
- </div>
- );
-};
-
-export default ResizableBox;
diff --git a/src/pages/Content/styles/app.css b/src/pages/Content/styles/app.css
index 8f63d42..dad72f0 100644
--- a/src/pages/Content/styles/app.css
+++ b/src/pages/Content/styles/app.css
@@ -1,4 +1,3 @@
-@charset "UTF-8";
@font-face {
font-family: "Satoshi-Light";
src: url("chrome-extension://__MSG_@@extension_id__/assets/fonts/Satoshi-Light.ttf") format("truetype");
@@ -1459,10 +1458,12 @@ body.driver-active .OnboardingArrow {
gap: 8px;
font-size: 15px;
line-height: 1.5;
- max-width: 100%;
+ max-width: min(480px, 100vw - 50px);
overflow: hidden;
justify-content: center;
align-items: center;
+ word-wrap: break-word;
+ overflow-wrap: anywhere;
}
.ToastRoot[data-state=open] {
@@ -4261,6 +4262,35 @@ button {
transform: translateY(calc(-100% - var(--viewport-padding)));
}
}
+.WarningViewport--bottom {
+ top: auto;
+ bottom: 0;
+}
+
+.WarningViewport--bottom .warning-root[data-state=open] {
+ animation: slideInBottom 150ms cubic-bezier(0.16, 1, 0.3, 1);
+}
+
+.WarningViewport--bottom .warning-root[data-swipe=end] {
+ animation: swipeOutBottom 100ms ease-out;
+}
+
+@keyframes slideInBottom {
+ from {
+ transform: translateY(calc(100% + var(--viewport-padding)));
+ }
+ to {
+ transform: translateY(0);
+ }
+}
+@keyframes swipeOutBottom {
+ from {
+ transform: translateY(var(--radix-toast-swipe-end-y));
+ }
+ to {
+ transform: translateY(calc(100% + var(--viewport-padding)));
+ }
+}
.warning-title {
color: #fff;
font-family: "Satoshi-Medium", sans-serif;
@@ -4587,3 +4617,5 @@ button {
.driver-popover.ScreenityOnboardingPopover {
z-index: 2147483647 !important;
}
+
+/*# sourceMappingURL=app.css.map */
diff --git a/src/pages/Content/styles/app.css.map b/src/pages/Content/styles/app.css.map
index 0c1db44..75da3b3 100644
--- a/src/pages/Content/styles/app.css.map
+++ b/src/pages/Content/styles/app.css.map
@@ -1 +1 @@
-{"version":3,"sources":["_variables.scss","app.css","../toolbar/styles/layout/_Toolbar.scss","../toolbar/styles/layout/_DrawingToolbar.scss","../toolbar/styles/layout/_ShapeToolbar.scss","../toolbar/styles/components/_Tooltip.scss","../toolbar/styles/components/_RadialMenu.scss","../toolbar/styles/components/_ColorWheel.scss","../toolbar/styles/components/_StrokeWidth.scss","../toolbar/styles/components/_Toast.scss","../toolbar/styles/_Page.scss","../popup/styles/layout/_PopupContainer.scss","../popup/styles/layout/_Settings.scss","../popup/styles/layout/_VideosTab.scss","../popup/styles/layout/_Announcement.scss","../popup/styles/layout/_Welcome.scss","../popup/styles/layout/_SettingsMenu.scss","../popup/styles/components/_Dropdown.scss","../popup/styles/components/_Tabs.scss","../popup/styles/components/_Switch.scss","../popup/styles/components/_VideoItem.scss","../popup/styles/components/_MainButton.scss","../popup/styles/components/_BackgroundEffects.scss","../popup/styles/components/_RegionDimensions.scss","../popup/styles/components/_TimeSetter.scss","../popup/styles/components/_Tooltip.scss","../canvas/styles/layout/_Canvas.scss","../camera/styles/layout/_CameraWrap.scss","../camera/styles/layout/_CameraToolbar.scss","../camera/styles/components/_ResizeHandle.scss","../countdown/styles/_Countdown.scss","../modal/styles/_Modal.scss","../region/styles/_Region.scss","../warning/styles/_Warning.scss","app.scss"],"names":[],"mappings":"AACE;EACE,4BAQF;EAPE,uGAAA;EACA,mBAAA;EACA,kBAAA;ACAJ;ADJE;EACE,6BAYF;EAXE,wGAAA;EACA,mBAAA;EACA,kBAAA;ACMJ;ADVE;EACE,2BAgBF;EAfE,sGAAA;EACA,mBAAA;EACA,kBAAA;ACYJ;ADhB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C/sIM;;;EACE,wCAAA;EACA,yBAAA;EACA,oCAAA;AjCmtIR;AiCjtIQ;;;EACE,8BAAA;AjCqtIV;AiCjtIM;;;EACE,wCAAA;EACA,yBAAA;AjCqtIR;;AiC9sIA;EACE,8BAAA;AjCitIF;;AiC9sIA;EACE,8BAAA;AjCitIF;;AiC9sIA;;EAEE,8BAAA;AjCitIF","file":"app.css"}
\ No newline at end of file
+{"version":3,"sourceRoot":"","sources":["_variables.scss","../toolbar/styles/layout/_Toolbar.scss","../toolbar/styles/layout/_DrawingToolbar.scss","../toolbar/styles/layout/_ShapeToolbar.scss","../toolbar/styles/components/_Tooltip.scss","../toolbar/styles/components/_RadialMenu.scss","../toolbar/styles/components/_ColorWheel.scss","../toolbar/styles/components/_StrokeWidth.scss","../toolbar/styles/components/_Toast.scss","../toolbar/styles/_Page.scss","../popup/styles/layout/_PopupContainer.scss","../popup/styles/layout/_Settings.scss","../popup/styles/layout/_VideosTab.scss","../popup/styles/layout/_Announcement.scss","../popup/styles/layout/_Welcome.scss","../popup/styles/layout/_SettingsMenu.scss","../popup/styles/components/_Dropdown.scss","../popup/styles/components/_Tabs.scss","../popup/styles/components/_Switch.scss","../popup/styles/components/_VideoItem.scss","../popup/styles/components/_MainButton.scss","../popup/styles/components/_BackgroundEffects.scss","../popup/styles/components/_RegionDimensions.scss","../popup/styles/components/_TimeSetter.scss","../popup/styles/components/_Tooltip.scss","../canvas/styles/layout/_Canvas.scss","../camera/styles/layout/_CameraWrap.scss","../camera/styles/layout/_CameraToolbar.scss","../camera/styles/components/_ResizeHandle.scss","../countdown/styles/_Countdown.scss","../modal/styles/_Modal.scss","../region/styles/_Region.scss","../warning/styles/_Warning.scss","app.scss"],"names":[],"mappings":"AACE;EACE,aAQF;EAPE;EACA;EACA;;AAJF;EACE,aAYF;EAXE;EACA;EACA;;AAJF;EACE,aAgBF;EAfE;EACA;EACA;;AAJF;EACE,aAoBF;EAnBE;EACA;EACA;;AAqBJ;AAaA;AAcA;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAaA;AAOA;AAUA;AAIA;ACrFA;AACA;AAAA;EAEE;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAEF;EACE;;;AAEF;EACE;EACA;EACA;EACA;;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;EACA,eDgCwB;EC/BxB;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;EACA;;AAIA;EACE,ODtBO;ECuBP;;;AAIN;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;;;AAGF;EACE;;;AAEF;EACE;EACA;;;AAEF;EACE;;;AAEF;EACE;EACA;EACA;;;AAEF;EACE;;AAEA;EACE;;;AAKJ;EACE;IACE;;EAEF;IACE;;EAEF;IACE;;EAEF;IACE;;EAEF;IACE;;EAEF;IACE;;EAEF;IACE;;EAEF;IACE;;EAEF;IACE;;EAEF;IACE;;;AAKJ;EACE;IACE;;EAEF;IACE;;EAEF;IACE;;EAEF;IACE;;EAEF;IACE;;EAEF;IACE;;EAEF;IACE;;EAEF;IACE;;EAEF;IACE;;EAEF;IACE;;EAEF;IACE;;;AAIJ;EACE;;AAEA;EACE;;;AAGJ;EACE;EACA;EAGA;EAGA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EAEA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,eD9IwB;;ACgJxB;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,eD1JsB;EC2JtB;EACA;;;AAIJ;EACE;;;AAEF;EACE;EACA;EACA;EACA;EACA,eDxKwB;ECyKxB,aD5LY;EC6LZ;EACA;EACA;;;AAEF;EACE;EACA;EACA,ODrNmB;ECsNnB;EACA;EACA;EACA;EACA;;;AAEF;EACE;EACA;EACA;;;AAEF;EACE;IACE;;EAEF;IACE;;;AAGJ;EACE;EACA;;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAEF;AAAA;AAAA;AAAA;AAAA;EAKE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;AAAA;AAAA;AAAA;AAAA;EACE,ODxQS;;AC2QX;AAAA;AAAA;AAAA;AAAA;EACE;EACA;EACA;;AAIA;AAAA;AAAA;AAAA;AAAA;EACE;;;AAIN;AAAA;AAAA;AAAA;AAAA;EAKE;EACA;;;AAEF;AAAA;AAAA;AAAA;AAAA;EAKE;EACA,YDrPa;;;ACwPf;EACE;EACA;EACA;EACA;EACA;;AAEA;EACE;;AAEF;EACE;;AAEA;EACE;;AAGF;EACE;EACA;;;AAKN;EACE;EACA;EACA;EACA;EACA;;AAEA;EACE;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAEA;EACA;EACA;EACA;EACA;EACA;;AAEF;EACE;;AAEA;EACE,OD1WU;;AC6WZ;EACE;EACA;;;AAMJ;EACE;EACA;EACA;EACA;EACA;EACA;;AAGA;EACE;;;AAKN;EACE;EACA;EACA;EACA;EACA;;AAEA;EACE;;AAEF;EACE,YDjWe;ECkWf;;AAEA;EACE;;;AAKN;EACE;EACA;EACA,kBD1Za;EC2Zb;;;AAGF;EACE;EACA;EACA;EACA;EACA;;;AAEF;EACE;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;;;AAIJ;EACE;EACA,SDjYY;ECkYZ;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAIF;EACE;;;AAGF;EACE;EACA,ODxcW;ECycX;;;AAEF;EACE;;;AAIF;AAAA;AAAA;EAGE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;AAAA;AAAA;EACE;EACA;EACA;EACA;;AAGF;AAAA;AAAA;EACE;EACA;EACA;EACA;EACA;;AAEA;AAAA;AAAA;EACE;EACA;EACA;EACA;;AAIJ;AAAA;AAAA;EACE;EACA;EACA;EACA;EACA;;AAGF;AAAA;AAAA;EACE;EACA;EAEA;EACA;EACA;;AAGF;AAAA;AAAA;EACE;EACA;EACA;;AAGF;AAAA;AAAA;EACE;EACA;EACA;;AAGF;AAAA;AAAA;EACE;EACA;EACA;;AAGF;AAAA;AAAA;EACE;EACA;EACA;;AAEF;AAAA;AAAA;EACE;;AAEF;AAAA;AAAA;EACE;;AAEF;AAAA;AAAA;EACE;;AAEF;AAAA;AAAA;EACE;;AAEF;AAAA;AAAA;EACE;EACA;EACA;EACA;EACA;;AAEF;AAAA;AAAA;EACE;EACA;EACA;EACA;;AAEA;AAAA;AAAA;EACE;;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAGE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAGA;AAAA;AAAA;EACE;;AAIJ;AAAA;AAAA;EACE;EACA;EACA;;AAEA;AAAA;AAAA;EACE;;AAIJ;AAAA;AAAA;EACE;EACA;;;AC1nBR;EACC;EACA;EACA;;;AAED;EACC;;;AAGD;EACC;EACA;EACA;EACA;EACC;EACD;EACA;EACC;EACA;EACD;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAED;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAED;EACC;;;AAIF;EACC;;;AAED;EACC;;AAEA;EACC;EACA;EACA;;;AAIF;EACC;EACA;EACA;EACA;EACA;;;AClFD;EACC;EACA;EACA;EACA;EACC;EACD;EACA,SHqDY;EGpDZ;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACC;EACA;EACA;;;ACpCD;EACE,eJiEwB;EIhExB,kBJ4BmB;EI3BnB;EACA;EACA;EACA;EACA;EACA,aJuCY;EItCZ;EACA,OJmBoB;EIlBpB;EAEA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;;;AAEF;EACE;;;AAEF;EACE;;;AAEF;EACE;;;AAGF;EACE;IACE;IACA;;EAEF;IACE;IACA;;;AAIJ;EACE;IACE;IACA;;EAEF;IACE;IACA;;;AAIJ;EACE;IACE;IACA;;EAEF;IACE;IACA;;;AAIJ;EACE;IACE;IACA;;EAEF;IACE;IACA;;;AAIJ;EACE;;;AAGF;EACE;EACA;EACA;;;ACjGF;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAED;EACC;EACA;EACA;;AAED;EACC;EACA;EACA;;;AAGF;EACC;;;AAED;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACC,OL9BW;;AKgCZ;EACC;EACA;;AAED;EACC;EACA;;;AAGF;EACC;;AACA;EACC;EACA;;;AAGF;EACC;EACA;EACA;;;AAGA;EACC;EACA;;;AAIF;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAED;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACC;;;AAGF;EACC;;;AAGD;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACC;EACA,YLjEa;;;AKqEf;EACC;;;AAKC;EACA;;;AAED;EACC;EACA;EACA;;;AANA;EACA;;;AAED;EACC;EACA;EACA;;;AANA;EACA;;;AAED;EACC;EACA;EACA;;;AANA;EACA;;;AAED;EACC;EACA;EACA;;;AANA;EACA;;;AAED;EACC;EACA;EACA;;;AANA;EACA;;;AAED;EACC;EACA;EACA;;;AANA;EACA;;;AAED;EACC;EACA;EACA;;;AANA;EACA;;;AAED;EACC;EACA;EACA;;;AANA;EACA;;;AAED;EACC;EACA;EACA;;;AAYF;EACC;EACA;;;AAGD;EACC;EACA;;;ACvLD;EACC;EACC;EACD;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAEC;EACE;EACA;;AAGF;EACC;;;AAGH;EACC;;AACA;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAIF;EACC;EACA;EACA;EACA;EACA;;;AAED;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACC;EACA;EACA;EACA;;;AAGF;EACC;EACA;EACA;EACA;;;AAED;EACC;EACA;EACA;EACA;EACA;;AAEA;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACE;EACA;;;AAGJ;EACC;;;AAED;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAED;EACC;EACA;EACA;;;AAED;EACC;EACA;;;AAED;EACC;EACA;EACA;EACA;;;AAED;AACA;EACC;IACC;;EAED;IACC;;;AAIF;EACC;;;AAGD;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,aNnGa;EMoGb;EACA;EACA;;;AAED;EACC;EACA;EACA;;;AAED;EACC;;;AAGD;EACC;IACC;IACA;;EAED;IACC;IACA;;;AAIF;EACC;;;AAED;EACC;;;AAED;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAED;EACC;;;AAED;EACC;;;AAED;EACC;;AACA;EACC;;;AAGF;EACC;;AACA;EACC;;;AAGF;EAEC;;;ACpNA;EACC;EACA;EACA;;AAED;EAEE;;AAED;EACC;EACA;;AAID;EACC;;;AAKH;EACC;EACA;EACA;EACA;EACA;;;AC1BD;EACE;EACA;EACA;EACA;EACD;EACA;EACC;EACA;EACA;EACA;EACA;EACD;EACC;EACA;EACA;EACD;;;AAGD;EACE,kBRSmB;EQRpB,OROqB;EQNpB,eR2CwB;EQ1CxB;EACA;EACA;EACD;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAED;EACE;;;AAEF;EACE;;;AAEF;EACE;;;AAEF;EACE;EACA;;;AAEF;EACE;;;AAGF;EACE;IACE;;EAEF;IACE;;;AAIJ;EACE;IACE;;EAEF;IACE;;;AAIJ;EACE;IACE;;EAEF;IACE;;;AAIJ;EACE,ORtDoB;EQuDrB,aRrCa;;;AQwCd;EACE;EACD,aR1Ca;;;AQ6Cd;EACC,ORhEqB;EQiEpB,aR/CY;EQgDb;EACA;EACA;EACA;EACA;;;AC3FD;EACC;EACA;EACA;;;ACXD;EACE;;;AAEF;EACE;;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA,eV4CwB;EU3CxB;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAGE;EACE,OVJO;EUKP;;AAGJ;EACE;;AAGF;EACE;;;AAIJ;EACE;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA,aVpBY;EUqBZ,WV5BiB;;;AU8BnB;EACE;EAEA;;;AAGF;AACA;EACE;EACA;EACA;EACA;EACA,SVKY;EUJZ,QVfiB;EUgBjB;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA,YVrEiB;EUsEjB;EACA;EAKA;EAKA;EACA,eVzCwB;EU0CxB;EACA;EACA;;;AAGF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAcA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAEF;EACE;EACA;EACA;EACA;EACA;;;AAGF;AACA;EACE;EACA;;;AAGF;AACA;EACE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OwB;EYNxB;EACA;EACA;;;AAEF;EACE;;;AAEF;EACE;EACA,eZRW;;;AYUb;EACE;EACA,OZ3CmB;EY4CnB,eZbW;EYcX;;;AAEF;EACE;EACA,OZhDqB;EYiDrB;EACA,eZpBW;;;AYsBb;EACE,YZvBW;EYwBX,OZxDoB;EYyDpB;EACA;EACA,YZfiB;EYgBjB;;AAEA;EACE;;;AAGJ;AAAA;EAEE;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;IACE;;;ACtHJ;EACE;EACA;EACA;EACA;;;AAEF;EACE;EACA;;;AAEF;EACE;EACA;EACA;;AAEA;EACE;EACA;;;AAGJ;EACE;;;AAEF;EACE,abyBU;EaxBV;EACA,ObImB;EaHnB;EACA;EACA;;;AAEF;EACE,abeY;EadZ;EACA,ObHqB;EaIrB;EACA;EACA;EACA;;AAEA;EACE;EACA;EACA;;;AAGJ;EACE;EACA;EACA;EACA;EACA;EACA;EACA,ebawB;EaZxB,YbmBiB;EalBjB,Ob1BoB;Ea2BpB,abTY;EaUZ;EACA;EACA;EACA;EACA;EACA,QbkBwB;;AahBxB;EACE;;;AAGJ;AACE;EACA;IACE;IACA;;EAEF;IACE;IACA;;EAEF;IACE;IACA;;;AChFJ;EACE,adgDU;Ec/CV;EACA,Od2BmB;Ec1BnB;EACA;EACA;;;AAEF;EACE,adsCY;EcrCZ;EACA,OdoBqB;EcnBrB;EACA;EACA;EACA;;AAEA;EACE;EACA;EACA;;;AAGJ;EACE;EACA;EACA;EACA;EACA;EACA;EACA,edoCwB;EcnCxB;EACA;EACA,OdHmB;EcInB,adaY;EcZZ;EACA;EACA;EACA;;;AAEF;EACE,YdfiB;EcgBjB,2BdwBwB;EcvBxB,4BduBwB;EctBxB;EACA;EACA;EACA;EACA;;;AAEF;EACE;EACA;;;AAEF;EACE,adNU;EcOV;EACA,Od3BmB;Ec4BnB;EACA;EACA;EACA;;;AAEF;EACE;EACA;EACA;EACA;;;AAEF;EACE;EACA;EACA;;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;;AAEF;EACE;EACA,OdtDqB;EcuDrB,advCY;;;AcyCd;EACE;EACA;;;AAEF;EACE;;;AAEF;EACE,adjDY;EckDZ;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;;;AC5GJ;AAAA;EAEE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,afqCY;EepCZ,OfmBmB;EelBnB;EAEA;EACA;EACA;;;AAEF;AAAA;EAEE;;;AAEF;AAAA;EAEE;;;AAEF;AAAA;EAEE;;;AAEF;AAAA;EAEE;;;AAEF;AAAA;EAEE;EACA,OfyBW;EexBX;EACA;EACA,Yfbc;Eecd;EACA;EACA;EACA;;;AAEF;EACE;;;AAGF;AAAA;AAAA;AAAA;EAIE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;AAAA;AAAA;AAAA;EACE;EACA;;;AAGJ;EACE;EACA;;;AAEF;AAAA;AAAA;AAAA;EAIE;EACA;EACA;;;AAEF;AAAA;AAAA;AAAA;EAIE;EACA;;;AAGF;EACE;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;;;AAGJ;EACE;;;AAKF;EACE;EACA;EACA;;;AAEF;EACE;;;AAEF;EACE;;;AAGF;EACE;IACE;IACA;;EAEF;IACE;IACA;;;AAIJ;EACE;IACE;IACA;;EAEF;IACE;IACA;;;AAIJ;EACE;IACE;IACA;;EAEF;IACE;IACA;;;AAIJ;EACE;IACE;IACA;;EAEF;IACE;IACA;;;AC5LJ;AACA;EACE;;;AAGF;EACE;EACA;EACA;EACA,ehByDwB;EgBxDxB;EACA;EACA;EACA,kBhBYiB;EgBXjB,OhBgBmB;EgBfnB;EACA;EACA,YhB2CW;EgB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iBWrB;EACE;EACA;;;AAEF;EACE;EACA;EACA,YjBpBa;EiBqBb;EACA;EACA;;;AAGF;AACA;EACE;EACA;EACA;EACA;EACA;;AAEA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAKA;;;AAGJ;EACE;;;AAEF;EACE,YjBCmB;;;AiBCrB;EACE;;;AAGF;AACA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA,YjBzEiB;EiB0EjB,YjB9BuB;EiB+BvB;;;AAEF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAeA;AACA;EACE;EACA;;;AAEF;EACE;EACA,YjBlGiB;EiBmGjB;EACA,ajB7EU;EiB8EV;;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,ejBrFwB;;;AiBuF1B;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA,cjBrGW;;;AiBwGb;AACA;EACE;EACA;EACA;EACA;EACA;;AAEA;EACE,YjBhHS;;AiBkHX;EACE;EACA,ejB9Ge;EiB+Gf;EACA;;AAEF;EACE,ajBzHS;EiB0HT,gBjBzHS;EiB0HT;EACA;EACA;EACA;EACA;;AAEF;EACE,YjBrKe;EiBsKf;EACA;;AAEF;EACE;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,YjBtLY;;AiBwLd;EACE;;AAGF;EACE;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA,ejBrKS;EiBsKT;;AAEF;EACE,YjB5Me;EiB6Mf,SjBxKS;EiByKT,2BjBtKsB;EiBuKtB,4BjBvKsB;EiBwKtB;EACA;;AAEF;EACE;;;AAIJ;EACE;EACA;EACA;EACA;EACA;;AAEA;EACE,YjB7LS;;AiB+LX;EACE;EACA,ejB3Le;EiB4Lf;EACA;EACA,cjBnMS;EiBoMT,ejBpMS;EiBqMT;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;AAEF;EACE,ajBlNS;EiBmNT,gBjBlNS;EiBmNT;EACA;EACA;EACA;EACA;;AAEF;EACE,YjB9Pe;EiB+Pf;EACA;;AAEF;EACE;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,YjB/QY;;AiBiRd;EACE;;AAEF;EACE;;AAGF;EACE,YjB1Re;EiB2Rf,2BjBnPsB;EiBoPtB,4BjBpPsB;;AiBsPxB;EACE;;AAGF;EACE,cjB/PS;EiBgQT,ejB5PsB;EiB6PtB,cjBlQS;EiBmQT,ejBnQS;EiBoQT,ajBpQS;EiBqQT,gBjBrQS;EiBsQT;;AAEF;EACE;EACA,YjB7Se;;AiB+SjB;EACE;EACA;EACA;EACA;EACA,OjB/SmB;EiBgTnB;;AAEF;EACE,ajBrRS;;AiBuRX;EACE,YjBlQW;EiBmQX;;;AAIJ;EACE;EACA;EACA;EAEA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;AACE;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;;;AAGF;EACE;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;;AAEA;EACE;;;AClZJ;AACA;EACE;;;AAGF;EACE;EACA;EACA;EACA;EACA;EAEA;EACA;EACA;EACA;EACA;;;AAEF;EACE;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA,kBlBDa;EkBEb;EACA;EACA;;;AAEF;EACE;EACA;;;AAEF;EACE,YlB4Ca;;;AkB1Cf;EACE,kBlBfc;;;AkBiBhB;EACE;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAEF;EACE;;;AAGF;EACE,OlBjCqB;EkBkCrB;AACA;EACA;EACA;;AAEA;EACE;;;AAIJ;EACE,OlB/CoB;EkBgDpB;EACA,kBlBnDc;EkBoDd;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA,elBvBwB;EkBwBxB;;AAEA;EACE;EACA;;AAEF;EACE;;AAEF;EACE;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA,elB5CsB;EkB6CtB;EACA;EACA;EACA;EACA;EACA;;AAEF;EACE;;AAEF;EACE;;;AAIF;EACE;;AAGF;EACE;;;AAGJ;EACE;EACA,kBlB/GiB;EkBgHjB;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE,OlBrHiB;EkBsHjB;EACA;EACA;;AACA;EACE,kBlB9Ha;EkB+Hb;;;ACzJN;EACE;EACA;EACA,SnB0DW;EmBzDX;;AACA;EACE;EACA;EACA;EACA;EACA;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA,cnBoCS;;AmBlCX;EACE;EACA;EACA;EACA;EACA,enB2BS;;AmBzBX;EACE,OnBNiB;EmBOjB;EACA;EACA;;AAEF;EACE,YnBkBS;EmBjBT,OnBZmB;EmBanB,WnBFc;EmBGd;EACA;EACA;;;AAIJ;EACE;EACA;;;AAEF;EACE,YnB2Ba;EmB1Bb;;;AAGF;AACA;EACE;EACA;EACA;EACA,KnBJW;EmBKX;EACA;;AAEA;EACE,YnB7Ce;EmB8Cf;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEF;EACE,YnBEW;EmBDX;;AAEF;EACE;EACA;EACA,YnB9De;EmB+Df;EACA;EACA;EACA;EACA;;AAEF;EACE,YnBZW;EmBaX;;;AAMF;AAAA;EACE;;;ACtGJ;EACC;EACA;EACA,epB8DyB;EoB7DzB;EACA;EACA;EACA;EACA;EACA;;AAGA;EACC,OpBeoB;EoBdpB;EACA;EACA;;AAED;EACC;EACA,WpBqBgB;EoBpBhB,OpByCW;EoBxCX,OpBMoB;EoBLpB;;AAED;EACC;;AAED;EACC;EACA;;;AAGF;EACC;;;AAGD;EACE;EACA;EACA;;AAEF;EACE;EACA;EACA;;AAGF;EACC,YpBWY;EoBVZ,QpB6ByB;EoB5BzB;EACA;EACA;EACA;EACA;EACA;;;AAED;AACC;EACA;IACC;IACA;;EAED;IACC;IACA;;EAGD;IACC;IACA;;;AAIF;EACC;;;AAED;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,epBtByB;EoBuBzB;;;AAED;EACC;;;AAED;EACC;IACC;;EAED;IACC;;EAED;IACC;;EAED;IACC;;;AAGF;EACC;IACC;IACA;;EAED;IACC;IACA;;EAED;IACC;IACA;;EAED;IACC;IACA;;EAED;IACC;IACA;;;AAIF;EACC,YpBtGoB;EoBuGpB;EACA;;;AAED;EACC;;;AAGD;EACC;EACA;EACA;EACA;EACA;EACA;EACA,OpBtHqB;EoBuHrB;EACA,apBtGa;EoBuGb;EACA;;AAEA;EACC;EACA;EACA;;;AC5JF;EACC;EACA;EACA;EACA;EACA;EACA;;;AAED;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAED;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAED;EACC;EACA;EACA;EACA;EACA;EACA;;AAED;EACC;;AACA;EACC;EACD;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAGD;EACC,YrBkBa;;;AsBnFf;EACC;EACA;EACA;EACA;EACA;;;AAED;EACC;EACA;;AAEA;EACC;EACA,etBqDwB;EsBpDxB;EACA;EACA;EACA;EACA;EACA;EACA,atB2BY;EsB1BZ,kBtBIiB;;AsBFjB;EACC;EACA,YtB0DY;;AsBvDd;EACC,OtBEqB;EsBDrB,atBiBY;EsBhBZ;EACA;EACA;EACA;;;AClCF;EACC;EACA;EACA;EACA;EACA;;;AAED;EACC;EACA;;AAEA;EACC,evBsDwB;EuBrDxB;EACA;EACA;EACA;EACA;EACA;EACA,avB4BY;EuB3BZ,kBvBKiB;EuBJjB;EACG;EACK;;AAEL;EACC;EACA,YvBwDS;;AuBpDd;EACC,OvBDqB;EuBErB,avBcY;EuBbZ;EACA;EACA;EACA;;;ACrCF;EACE,exBiEwB;EwBhExB,kBxB4BmB;EwB3BnB;EACA;EACA;EACA,axByCY;EwBxCZ;EACA,OxBqBoB;EwBpBpB;EAEA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;;;AAEF;EACE;;;AAEF;EACE;;;AAEF;EACE;;;AAGF;EACE;IACE;IACA;;EAEF;IACE;IACA;;;AAIJ;EACE;IACE;IACA;;EAEF;IACE;IACA;;;AAIJ;EACE;IACE;IACA;;EAEF;IACE;IACA;;;AAIJ;EACE;IACE;IACA;;EAEF;IACE;IACA;;;AAIJ;EACE;;;AAGF;EACE;EACA;EACA;;;AC/FF;EACC;EACA;EACA;EACA;EACA;EACA;EACA;;;AAED;EACC;EACA;EACA;EACA;EACA;EACA;;;AAED;EACC;EACA;EACA;EACA;EACA;EACA;;;ACvBD;EACC;EACA;EACA;EACA;;;AAED;EACC;EACA;EACA;EACA;EACA;EACA;;;AAED;EACC;;;ACfD;EACC;EACA;EACC;EACD;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,e3BqDyB;E2BpDzB;EACA,S3BwEa;E2BvEb;EACA;;;AAGA;EACC;;;AAGF;EACC;;;AAGD;EACE;EACD;EACC;EACA;;;AAEF;EACC;EACA;EACA;EACA;EACC;EACD;EACA;EACC;EACA;EACD;EACA;EACA;;AAEA;EACC,O3BdW;;A2BiBZ;EACC;EACA;;AAGD;EACC;EACA;;AAGD;EACC;;AAEA;EACC;;;AAOH;EACC;;;AAED;EACE;EACA,Y3BKa;;;A2BFf;EACC;EACA;EACA;;;AAGD;EACC;;;ACxFD;EACC;EACA;EACA;EACA,S5BmFa;E4BlFb;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACC;EACA;EACA;EACA;;;ACvBF;EACE;EACA;EACA;EACA;EACA;EACA,S7BiFY;;;A6B9Ed;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,O7BtBoB;E6BuBpB;EACA;EACA;;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAOA;EACA;EACA;;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAEF;EACE;EAKA;;;AAEF;EACE;EAKA;;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAEF;EACE;;;AAEF;EACE;;;AAEF;EACE;;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,a7B1GY;E6B2GZ,W7BlHiB;E6BmHjB;EACA;EACA;EACA,O7BjIoB;E6BkIpB,S7BxEY;E6ByEZ;;;AChKF;AACA;EACE;;;AAGF;EACE;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EAEA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,S9B2DY;;;A8BzDd;EACE;;;AAGF;EACE;EACA,O9BNmB;E8BOnB,W9BGiB;E8BFjB;EACA,a9BUU;E8BTV;;;AAGF;EACE;EACA,O9BdqB;E8BerB,W9BNiB;E8BOjB;;AAEA;EACE;EACA;EACA;EACA;EACA;;;AAIJ;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAEF;EACE;EACA,O9B5Cc;;A8B8Cd;EACE;EACA;;AAEF;EACE,Y9BKW;;;A8BFf;EACE;EACA;;;AAEF;EACE;EACA;;;AAEF;EACE,Y9BPa;;;A8BSf;EACE;EACA,O9B/DqB;;;A8BiEvB;EACE;EACA;;;AAEF;EACE,Y9BlBa;;;A8BqBf;EACE;IACE;;EAEF;IACE;;;AAIJ;EACE;IACE;IACA;;EAEF;IACE;IACA;;;AAIJ;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,O9BvGqB;E8BwGrB,a9BxFY;;A8B0FZ;EACE;EACA;;;AC3IJ;EACE;EACA;EACA;EACA;EACA;EACA;;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;;AAEF;EACC;EACC;EACD;EACA;EACA;EACC;;;AAEF;EACE;EACA;EACA;EACA;;;AAEF;EACC;EACC;EACD;EACA;EACA;EACC;;;AAEF;EACE;EACA;EACA;EACA;;;AAEF;EACC;EACC;EACD;EACA;EACA;EACC;;;AAEF;EACE;EACA;EACA;EACA;;;AAEF;EACE;EACA;EACD;EACA;EACA;EACC;;;AAEF;EACE;EACA;EACA;EACA;;;AAEF;EACC;;;AAED;EACC;;;AC7ED;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE,kBhCUmB;EgCTnB,OhCQoB;EgCPpB,ehC4CwB;EgC3CxB;EAEA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;;;AAEF;EACE;;;AAEF;EACE;;;AAEF;EACE;;;AAEF;EACE;EACA;;;AAEF;EACE;;;AAGF;EACE;IACE;;EAEF;IACE;;;AAIJ;EACE;IACE;;EAEF;IACE;;;AAIJ;EACE;IACE;;EAEF;IACE;;;AAKJ;EACE;EACA;;;AAEF;EACE;;;AAEF;EACE;;;AAGF;EACE;IACE;;EAEF;IACE;;;AAIJ;EACE;IACE;;EAEF;IACE;;;AAIJ;EACE,OhC5FoB;EgC6FpB,ahC3EY;EgC4EZ;;;AAGF;EACE,OhClGoB;EgCmGpB;EACA,ahClFY;EgCmFZ;;;AAGF;EACE,OhCzGoB;EgC0GpB,ahCxFY;EgCyFZ;EACA;EACA;EACA;EACA;;;AAEF;EACE;;;AAEF;EACE;;;ACvIF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;;;AAEF;EACE;;;AAEF;EACE;EACA;EACA;;;AAEF;EACE;;;AAEF;EACE;EACA;;;AAEF;EACE;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAEA;EACA;EACA;;;AAEF;EACE;;;AAEF;EACE;;;AAEF;EACE;;;AAEF;EACE;;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAEF;AAAA;EAEE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAEF;EACE;EACA;;;AAEF;EACE;EACA;EACA;;;AAIF;AAAA;AAAA;EAGE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;AAAA;AAAA;EACE;EACA;EACA;EACA;;AAGF;AAAA;AAAA;EACE;EACA;EACA;EACA;EACA;;AAEA;AAAA;AAAA;EACE;EACA;EACA;;AAIJ;AAAA;AAAA;EACE;EACA;EACA;EACA;;AAGF;AAAA;AAAA;EACE;EACA;EAEA;EACA;EACA;;AAGF;AAAA;AAAA;EACE;EACA;EACA;;AAGF;AAAA;AAAA;EACE;EACA;EACA;;AAGF;AAAA;AAAA;EACE;EACA;EACA;;AAGF;AAAA;AAAA;EACE;EACA;EACA;;AAEF;AAAA;AAAA;EACE;;AAEF;AAAA;AAAA;EACE;;AAEF;AAAA;AAAA;EACE;;AAEF;AAAA;AAAA;EACE;;AAEF;AAAA;AAAA;EACE;EACA;EACA;EACA;EACA;;AAEF;AAAA;AAAA;EACE;EACA;EACA;EACA;;AAEA;AAAA;AAAA;EACE;;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAGE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAGA;AAAA;AAAA;EACE;;AAIJ;AAAA;AAAA;EACE;EACA;EACA;;AAEA;AAAA;AAAA;EACE;;AAIJ;AAAA;AAAA;EACE;EACA;;;AAOR;EACE;;;AAGF;EACE;;;AAGF;AAAA;EAEE","file":"app.css"}
\ No newline at end of file
diff --git a/src/pages/Content/warning/Warning.jsx b/src/pages/Content/warning/Warning.jsx
index ba70897..ed16c8f 100644
--- a/src/pages/Content/warning/Warning.jsx
+++ b/src/pages/Content/warning/Warning.jsx
@@ -11,6 +11,7 @@ import {
CameraCloseIcon,
NotSupportedIcon,
CameraIcon,
+ VideoOffIcon,
} from "../toolbar/components/SVG";
import * as ToastEl from "@radix-ui/react-toast";
@@ -25,14 +26,19 @@ const Warning = () => {
const [description, setDescription] = useState("");
const [icon, setIcon] = useState("AudioIcon");
const [duration, setDuration] = useState(10000);
+ const [position, setPosition] = useState("top");
- const openWarning = useCallback((title, description, icon, duration) => {
- setTitle(title);
- setDescription(description);
- setIcon(icon);
- setDuration(duration);
- setOpen(true);
- }, []);
+ const openWarning = useCallback(
+ (title, description, icon, duration, position = "top") => {
+ setTitle(title);
+ setDescription(description);
+ setIcon(icon);
+ setDuration(duration);
+ setPosition(position);
+ setOpen(true);
+ },
+ [],
+ );
useEffect(() => {
setContentState((prevContentState) => ({
@@ -56,14 +62,35 @@ const Warning = () => {
}
}, [contentState.recordingType]);
+ // Close once the stream exists rather than waiting for recording to flip: the
+ // capture is already live through the countdown, so a toast still on screen at
+ // 3-2-1 lands in the opening frames.
+ useEffect(() => {
+ if (contentState.countdownActive) {
+ setOpen(false);
+ }
+ }, [contentState.countdownActive]);
+
+ // With the countdown off, recording is the earliest signal available.
useEffect(() => {
if (contentState.recording) {
setOpen(false);
}
}, [contentState.recording]);
+ // Flow ended without recording (picker cancelled, stream error). Scoped to the
+ // audio guidance so a warning explaining the failure isn't yanked away.
+ useEffect(() => {
+ if (!contentState.pendingRecording && icon === "AudioIcon") {
+ setOpen(false);
+ }
+ }, [contentState.pendingRecording]);
+
return (
- <ToastEl.Provider swipeDirection="up" duration={duration}>
+ <ToastEl.Provider
+ swipeDirection={position === "bottom" ? "down" : "up"}
+ duration={duration}
+ >
<ToastEl.Root
className="warning-root"
open={open}
@@ -76,6 +103,7 @@ const Warning = () => {
{icon === "AudioIcon" && <AudioIcon />}
{icon === "NotSupportedIcon" && <NotSupportedIcon />}
{icon === "CameraIcon" && <CameraIcon />}
+ {icon === "VideoOffIcon" && <VideoOffIcon />}
</div>
<div className="warning-content">
<ToastEl.Title className="warning-title">{title}</ToastEl.Title>
@@ -92,7 +120,13 @@ const Warning = () => {
<CameraCloseIcon />
</ToastEl.Close>
</ToastEl.Root>
- <ToastEl.Viewport className="WarningViewport" />
+ <ToastEl.Viewport
+ className={
+ position === "bottom"
+ ? "WarningViewport WarningViewport--bottom"
+ : "WarningViewport"
+ }
+ />
</ToastEl.Provider>
);
};
diff --git a/src/pages/Content/warning/styles/_Warning.scss b/src/pages/Content/warning/styles/_Warning.scss
index f967d94..2c73d5f 100644
--- a/src/pages/Content/warning/styles/_Warning.scss
+++ b/src/pages/Content/warning/styles/_Warning.scss
@@ -90,6 +90,36 @@
}
}
+// Bottom-anchored variant so a toast isn't hidden under the screen-share picker.
+.WarningViewport--bottom {
+ top: auto;
+ bottom: 0;
+}
+.WarningViewport--bottom .warning-root[data-state="open"] {
+ animation: slideInBottom 150ms cubic-bezier(0.16, 1, 0.3, 1);
+}
+.WarningViewport--bottom .warning-root[data-swipe="end"] {
+ animation: swipeOutBottom 100ms ease-out;
+}
+
+@keyframes slideInBottom {
+ from {
+ transform: translateY(calc(100% + var(--viewport-padding)));
+ }
+ to {
+ transform: translateY(0);
+ }
+}
+
+@keyframes swipeOutBottom {
+ from {
+ transform: translateY(var(--radix-toast-swipe-end-y));
+ }
+ to {
+ transform: translateY(calc(100% + var(--viewport-padding)));
+ }
+}
+
.warning-title {
color: $color-text-contrast;
font-family: $font-medium;
diff --git a/src/pages/Editor/utils/cropVideo.js b/src/pages/Editor/utils/cropVideo.js
index c6f135e..fe195a2 100644
--- a/src/pages/Editor/utils/cropVideo.js
+++ b/src/pages/Editor/utils/cropVideo.js
@@ -13,7 +13,8 @@ async function cropVideo(
top: cropOptions.y,
width: cropOptions.width,
height: cropOptions.height,
- outputFormat: "webm",
+ // Omit outputFormat so the crop follows the input container, like the trimmer.
+ // Forcing "webm" cropped MP4 recordings to WebM, then mislabelled downstream.
videoBitrate: 5_000_000,
audioBitrate: 128_000,
onProgress,
diff --git a/src/pages/EditorApp/context/ContentState.jsx b/src/pages/EditorApp/context/ContentState.jsx
index 6f2506b..fbf9883 100644
--- a/src/pages/EditorApp/context/ContentState.jsx
+++ b/src/pages/EditorApp/context/ContentState.jsx
@@ -609,7 +609,6 @@ const ContentState = (props) => {
await reader.close().catch(() => {});
}
if (!readResult || readResult.chunkCount === 0) {
- debug("No chunks found in chunk reader");
if (DEBUG_POSTSTOP)
console.warn(
"[Screenity][Sandbox] buildBlobFromChunks: no parts found",
diff --git a/src/pages/EditorApp/recorderStorage/idbChunkReader.js b/src/pages/EditorApp/recorderStorage/idbChunkReader.js
index f6a7d5c..a959971 100644
--- a/src/pages/EditorApp/recorderStorage/idbChunkReader.js
+++ b/src/pages/EditorApp/recorderStorage/idbChunkReader.js
@@ -41,7 +41,13 @@ export class IdbChunkReader {
c.chunk instanceof Blob ? c.chunk : new Blob([c.chunk]),
);
const byteSize = parts.reduce((s, p) => s + (p?.size || 0), 0);
- const inferredType = parts[0]?.type || "video/mp4";
+ // MediaRecorder tags chunks "video/mp4;codecs=...", but the editor matches
+ // blob.type exactly, so a suffixed MP4 misses the fast path. Bare container, like OpfsChunkReader.
+ const rawType = (parts[0]?.type || "").toLowerCase();
+ const inferredType =
+ rawType.includes("webm") || rawType.includes("matroska")
+ ? "video/webm"
+ : "video/mp4";
const blob = parts.length
? new Blob(parts, { type: inferredType })
: new Blob([], { type: inferredType });
diff --git a/src/pages/Permissions/Permissions.jsx b/src/pages/Permissions/Permissions.jsx
index e494ef1..68a14bb 100644
--- a/src/pages/Permissions/Permissions.jsx
+++ b/src/pages/Permissions/Permissions.jsx
@@ -8,6 +8,24 @@ const Recorder = () => {
},
"*"
);
+
+ // Cross-origin iframe, so allowsFeature reflects what the page actually
+ // delegated to us. Pages with feature=(self) (e.g. facebook.com) don't
+ // delegate, so this reads false. Report up so the UI can warn.
+ try {
+ const pp = document.permissionsPolicy || document.featurePolicy;
+ if (pp && typeof pp.allowsFeature === "function") {
+ window.parent.postMessage(
+ {
+ type: "screenity-site-policy",
+ cameraAllowed: pp.allowsFeature("camera"),
+ microphoneAllowed: pp.allowsFeature("microphone"),
+ displayCaptureAllowed: pp.allowsFeature("display-capture"),
+ },
+ "*"
+ );
+ }
+ } catch (e) {}
}, []);
useEffect(() => {
diff --git a/src/pages/Recorder/Recorder.jsx b/src/pages/Recorder/Recorder.jsx
index 39b2833..a539a4d 100644
--- a/src/pages/Recorder/Recorder.jsx
+++ b/src/pages/Recorder/Recorder.jsx
@@ -3,8 +3,18 @@ import { createDebugLogger } from "../utils/recorderDebug";
import { selectMimeType, getCodecLabel, buildTrackSnapshot } from "../utils/recorderCodec";
import localforage from "localforage";
import RecorderUI from "./RecorderUI";
-import { createMediaRecorder } from "./mediaRecorderUtils";
+import {
+ createMediaRecorder,
+ selectRecorderMime,
+ containerForMime,
+} from "./mediaRecorderUtils";
import { sendRecordingError, sendStopRecording } from "../utils/recorderMessaging";
+import {
+ computeCaptureCap,
+ isOversampleDisabled,
+ constrainTrackDown,
+ enforceOversampleRatio,
+} from "../utils/captureResolution";
import { getBitrates, getResolutionForQuality } from "./recorderConfig";
import {
WebCodecsRecorder,
@@ -160,8 +170,9 @@ const getFreeCaptureCaps = async () => {
}
};
-// bits/pixel/sec. Pro gets higher quality, Free smaller files.
-const VIDEO_BPP_FPS_PRO = 0.10;
+// bits/pixel/sec. 0.10 put 1080p30 at 6.2 Mbps, under the 0.15-0.25 screen
+// content wants, and text edges are the first thing H.264 discards.
+const VIDEO_BPP_FPS_PRO = 0.15;
const VIDEO_BPP_FPS_FREE = 0.08;
const VIDEO_BPS_MIN = 4_000_000;
const VIDEO_BPS_MAX = 24_000_000;
@@ -185,6 +196,9 @@ const Recorder = () => {
const hasChunks = useRef(false);
const recdbgSessionRef = useRef(null);
+ // What the capture was actually asked for, so the MediaRecorder path can
+ // constrain a supersampled track back down before it starts encoding.
+ const captureCapRef = useRef(null);
const lastSize = useRef(0);
const index = useRef(0);
@@ -338,6 +352,10 @@ const Recorder = () => {
const lastEstimateAt = useRef(0);
const ESTIMATE_INTERVAL_MS = 5000;
const MIN_HEADROOM = 25 * 1024 * 1024;
+ // Aborting still writes a tail chunk and finalizes, so the reserve has to
+ // cover the bytes in flight, not just a flat floor. No-op for WebCodecs
+ // (~1MB fragments); binds on MediaRecorder above 1080p30.
+ const HEADROOM_CHUNKS = 4;
const WARN_HEADROOM = 100 * 1024 * 1024;
const MAX_PENDING_BYTES = 8 * 1024 * 1024;
const pendingBytes = useRef(0);
@@ -392,13 +410,18 @@ const Recorder = () => {
const { usage = 0, quota = 0 } = await navigator.storage.estimate();
estimateFailed.current = false;
const remaining = quota - usage;
- const ok = remaining > MIN_HEADROOM + (byteLength || 0);
+ const reserve = Math.max(
+ MIN_HEADROOM,
+ (byteLength || 0) * HEADROOM_CHUNKS,
+ );
+ const ok = remaining > reserve + (byteLength || 0);
if (DEBUG_RECORDER) {
debug("Storage estimate", {
usage,
quota,
remaining,
byteLength,
+ reserve,
ok,
});
}
@@ -1413,8 +1436,14 @@ const Recorder = () => {
probeResult,
stickyState,
);
- const recordingExtension =
- probeResult?.details?.containerKind === "webm" ? "webm" : "mp4";
+ // Extension must match the recorder that runs, not the probe. Fast path
+ // uses the probe container; MediaRecorder resolves its own from its mime.
+ const mediaRecorderContainer = containerForMime(selectRecorderMime(liveStream.current));
+ const recordingExtension = shouldUseFast
+ ? probeResult?.details?.containerKind === "webm"
+ ? "webm"
+ : "mp4"
+ : mediaRecorderContainer;
chunkWriter.current = null;
chunkWriterBackend.current = null;
@@ -1567,8 +1596,49 @@ const Recorder = () => {
getResolutionForQuality(effectiveQualityValue);
const trackWidth = settings.width ?? qualityWidth ?? 1920;
const trackHeight = settings.height ?? qualityHeight ?? 1080;
- const width = Math.min(trackWidth, qualityWidth ?? trackWidth);
- const height = Math.min(trackHeight, qualityHeight ?? trackHeight);
+ // Fit inside the tier with aspect preserved, matching the encoder. Clamping
+ // each axis separately overstated the pixel count on non-16:9 sources
+ // (3440x1440 encodes to 1920x804), and the bitrate below derives from these.
+ const fitScale = Math.min(
+ (qualityWidth ?? trackWidth) / trackWidth,
+ (qualityHeight ?? trackHeight) / trackHeight,
+ 1,
+ );
+ const width = Math.max(2, Math.round((trackWidth * fitScale) / 2) * 2);
+ const height = Math.max(2, Math.round((trackHeight * fitScale) / 2) * 2);
+
+ // MediaRecorder encodes the track as-is, so lower it back to the tier or a
+ // 1080p recording ships as 3840x2160. Runs after the probe, so a decision
+ // that disagreed with the pre-capture guess still lands right.
+ let oversampleOutcome = null;
+ if (videoTrack) {
+ // MediaRecorder has no resize stage so it always wants the encode size: a
+ // 4K webcam or an unconstrained desktop capture would otherwise ship 4K at
+ // a bitrate computed for the tier. WebCodecs downscales on its canvas, so
+ // it only needs the ratio resolved when we actually supersampled.
+ const outcome = !canUseWebCodecs
+ ? await constrainTrackDown(videoTrack, width, height)
+ : captureCapRef.current?.oversampled
+ ? await enforceOversampleRatio(videoTrack, width, height)
+ : "not-needed";
+ oversampleOutcome = outcome;
+ // Which branch a user lands on depends on their display, so the outcome
+ // has to be visible in the field. debug() is stripped from prod builds.
+ chrome.runtime
+ .sendMessage({
+ type: "diag-forward",
+ event: "recorder-oversample",
+ data: {
+ outcome,
+ trackW: settings.width ?? null,
+ trackH: settings.height ?? null,
+ encodeW: width,
+ encodeH: height,
+ webcodecs: canUseWebCodecs,
+ },
+ })
+ .catch(() => {});
+ }
const { fpsValue } = await chrome.storage.local.get(["fpsValue"]);
let fps = parseInt(fpsValue);
@@ -1577,7 +1647,16 @@ const Recorder = () => {
if (!isPro) {
fps = Math.min(fps, maxFps);
}
- const computedBps = computeTargetVideoBps(width, height, fps, isPro);
+ // If the constrain-down was rejected, MediaRecorder still encodes the full
+ // supersampled track, so budget for that rather than the tier it ignored.
+ const constrainRejected =
+ oversampleOutcome === "failed" && !canUseWebCodecs;
+ const computedBps = computeTargetVideoBps(
+ constrainRejected ? trackWidth : width,
+ constrainRejected ? trackHeight : height,
+ fps,
+ isPro,
+ );
videoBitsPerSecond = !isPro
? Math.min(computedBps, bitratePreset)
: computedBps;
@@ -1952,6 +2031,19 @@ const Recorder = () => {
chunkCount: closeResult?.chunkCount,
});
}
+ // Recorder's view of the finalized artifact + editor's backend.
+ // Pairs with opfs-close-ok/fail to locate header-only files.
+ chrome.runtime
+ .sendMessage({
+ type: "diag-forward",
+ event: "recorder-writer-close-result",
+ data: {
+ backend: chunkBackendRef.current?.backend || null,
+ byteSize: closeResult?.byteSize ?? null,
+ chunkCount: closeResult?.chunkCount ?? null,
+ },
+ })
+ .catch(() => {});
} catch (err) {
debugWarn("chunkWriter.close failed before validate", err);
if (err?.code === "opfs-writer-failed" && err?.fileName) {
@@ -1963,6 +2055,17 @@ const Recorder = () => {
} else {
chunkBackendRef.current = { backend: "idb" };
}
+ chrome.runtime
+ .sendMessage({
+ type: "diag-forward",
+ event: "recorder-writer-close-result",
+ data: {
+ backend: chunkBackendRef.current?.backend || null,
+ closeError: String(err?.message || err).slice(0, 160),
+ closeErrorCode: err?.code || null,
+ },
+ })
+ .catch(() => {});
}
chunkWriter.current = null;
chunkWriterBackend.current = null;
@@ -1987,9 +2090,32 @@ const Recorder = () => {
(async () => {
let validation = null;
const endValidate = perfSpan("Recorder.onFinalized.validate");
+ // Start marker so a validation that never finishes shows up as a
+ // start with no done (the unwritten-verdict case in field reports).
+ chrome.runtime
+ .sendMessage({
+ type: "diag-forward",
+ event: "recorder-validation-start",
+ data: { backend: chunkBackendRef.current?.backend || null },
+ })
+ .catch(() => {});
try {
const endRebuild = perfSpan("Recorder.onFinalized.rebuildBlob");
- const blob = await rebuildBlobFromChunks();
+ // rebuildBlobFromChunks can hang for minutes on OPFS if the
+ // finalize marker never lands. Bound it so we always get a verdict.
+ const REBUILD_TIMEOUT_MS = 30000;
+ let rebuildTimer = null;
+ const blob = await Promise.race([
+ rebuildBlobFromChunks(),
+ new Promise((_, reject) => {
+ rebuildTimer = setTimeout(
+ () => reject(new Error("rebuild-timeout")),
+ REBUILD_TIMEOUT_MS,
+ );
+ }),
+ ]).finally(() => {
+ if (rebuildTimer) clearTimeout(rebuildTimer);
+ });
endRebuild({ bytes: blob?.size ?? 0 });
validation = await validateFastRecorderOutputBlob(blob, {
minBytes: 64 * 1024,
@@ -2002,15 +2128,43 @@ const Recorder = () => {
validation,
});
} catch (err) {
+ const isRebuildTimeout = String(err?.message || err).includes(
+ "rebuild-timeout",
+ );
+ // Timeout means slow reassembly (multi-GB take in a throttled
+ // tab), not a bad recording, and it already shipped. Mark it
+ // inconclusive so it neither fails the take nor penalizes fast.
validation = {
ok: false,
- hardFail: true,
- reasons: ["validation-exception"],
+ hardFail: !isRebuildTimeout,
+ inconclusive: isRebuildTimeout,
+ reasons: [
+ isRebuildTimeout ? "rebuild-timeout" : "validation-exception",
+ ],
details: { error: String(err) },
};
}
endValidate({ ok: !!(validation && validation.ok) });
- if (validation && !validation.ok) {
+ // Done marker. A start with no done now pins a hang past the
+ // guard rather than a validator that never ran.
+ chrome.runtime
+ .sendMessage({
+ type: "diag-forward",
+ event: "recorder-validation-done",
+ data: {
+ ok: !!(validation && validation.ok),
+ hardFail: !!(validation && validation.hardFail),
+ reason:
+ validation && Array.isArray(validation.reasons)
+ ? validation.reasons[0] || null
+ : null,
+ sizeKb: validation?.details?.size
+ ? Math.round(validation.details.size / 1024)
+ : null,
+ },
+ })
+ .catch(() => {});
+ if (validation && !validation.ok && !validation.inconclusive) {
await markFastRecorderFailure("validation-failed", validation);
await chrome.storage.local.set({
lastWebCodecsFailureAt: Date.now(),
@@ -2060,13 +2214,9 @@ const Recorder = () => {
typeof err?.code === "string" && err.code
? err.code
: "webcodecs-error";
- // Late teardown error fired after video-ready already shipped:
- // the recording is finalized on disk and the sandbox is mid
- // OPFS read. Surfacing as recording-error races that read and
- // pops a spurious "Can't load your recording" modal — and
- // would flip the sticky-disable on a recording that succeeded.
- // Log a breadcrumb and drop. (err.finalized handles the salvage
- // path below; this handles the normal-finalize path.)
+ // Late teardown error after video-ready shipped: the file is
+ // finalized and the sandbox is mid OPFS read, so surfacing it races
+ // that read and pops a spurious modal. Breadcrumb and drop.
if (sentLast.current && !err?.finalized) {
chrome.runtime
.sendMessage({
@@ -3303,6 +3453,9 @@ const Recorder = () => {
async function startStream(data, id, options, permissions, permissions2, streamOpts = {}) {
const useDisplayMedia = !!streamOpts.useDisplayMedia;
+ // Only the screen/desktop branches supersample; clear it so a camera-only
+ // take can't inherit a previous screen recording's value.
+ captureCapRef.current = null;
perfMark("Recorder startStream.enter", {
recordingType: data?.recordingType,
hasId: Boolean(id),
@@ -3508,12 +3661,20 @@ const Recorder = () => {
const { disableSurfaceSwitching } = await chrome.storage.local.get([
"disableSurfaceSwitching",
]);
+ // Capture at 2x the tier and let the resize canvas do the 2:1 downscale
+ // (see captureResolution.js). Only `max` matters: a large `ideal` next to
+ // a `max` was measured to change nothing.
+ const captureCap =
+ computeCaptureCap(width, height, {
+ disabled: await isOversampleDisabled(),
+ }) || { width, height, oversampled: false };
+ captureCapRef.current = captureCap;
const displayConstraints = {
audio: data.systemAudio ? true : false,
video: {
frameRate: { ideal: fps, max: fps },
- width: { ideal: width, max: width },
- height: { ideal: height, max: height },
+ width: { max: captureCap.width },
+ height: { max: captureCap.height },
displaySurface: "monitor",
},
// systemAudio:"include" (default may hide the toggle). surfaceSwitching
@@ -4500,11 +4661,47 @@ const Recorder = () => {
sendResponse?.({ ok: true, woke: true });
return true;
} else if (request.type === "offscreen-shutdown") {
+ // Default true so a plain shutdown (stop path) still salvages via finalize.
+ // Discard/cancel pass false: skip finalize, which would emit video-ready
+ // and open the editor on the discarded take.
+ const shouldFinalize = request.shouldFinalize !== false;
const timeoutMs = Number(request.timeoutMs) || 20000;
(async () => {
try {
if (isRecording.current) {
- stopRecording();
+ if (shouldFinalize) {
+ stopRecording();
+ } else {
+ // Quiet teardown mirroring dismissRecording()'s guards: halt
+ // capture without the finalize/video-ready path. uiClosing +
+ // localStopInitiated also suppress the abandonment watchdog.
+ localStopInitiated.current = true;
+ uiClosing.current = true;
+ isRecording.current = false;
+ recordingGeneration.current += 1;
+ try {
+ const r = recorder.current;
+ if (r instanceof MediaRecorder) {
+ r.ondataavailable = null;
+ r.onstop = null;
+ r.onerror = null;
+ if (r.state !== "inactive") r.stop();
+ } else if (r instanceof WebCodecsRecorder) {
+ r.running = false;
+ r.paused = false;
+ await Promise.resolve(r.cleanup?.()).catch(() => {});
+ }
+ } catch (err) {
+ debugWarn("offscreen-shutdown discard teardown failed", err);
+ }
+ if (chunkWriter.current) {
+ try {
+ await chunkWriter.current.abort();
+ } catch {}
+ chunkWriter.current = null;
+ chunkWriterBackend.current = null;
+ }
+ }
}
// Don't stop capture tracks here: it raced a slow start (isRecording
// not yet flipped, tracks live) and killed the screen track mid-start.
diff --git a/src/pages/Recorder/mediaRecorderUtils.js b/src/pages/Recorder/mediaRecorderUtils.js
index d0786ab..e414bab 100644
--- a/src/pages/Recorder/mediaRecorderUtils.js
+++ b/src/pages/Recorder/mediaRecorderUtils.js
@@ -1,20 +1,52 @@
import { MIME_TYPES } from "./recorderConfig";
+import { canStartMp4Recorder } from "../utils/recorderCodec";
+
+// Map a MediaRecorder mime to its container so the stored file's extension
+// and the editor's <video> type match the bytes. mp4/quicktime = MP4, else WebM.
+export const containerForMime = (mimeType) => {
+ const m = String(mimeType || "").toLowerCase();
+ return m.includes("mp4") || m.includes("quicktime") ? "mp4" : "webm";
+};
+
+// Pick the mime without building a recorder, so callers can learn the
+// container up front (mirrors CloudRecorder's inspect/build split).
+// Pass the capture stream where available: isTypeSupported can advertise MP4 on
+// boxes whose MediaRecorder then throws from start(), which loses the recording.
+export function selectRecorderMime(stream = null) {
+ return (
+ MIME_TYPES.find(
+ (type) =>
+ MediaRecorder.isTypeSupported(type) &&
+ (!type.includes("mp4") || canStartMp4Recorder(stream, type)),
+ ) || null
+ );
+}
export function createMediaRecorder(
stream,
{ audioBitsPerSecond, videoBitsPerSecond }
) {
- const mimeType = MIME_TYPES.find((type) =>
- MediaRecorder.isTypeSupported(type)
- );
+ const mimeType = selectRecorderMime(stream);
if (!mimeType) {
throw new Error("❌ No supported MIME types found");
}
- return new MediaRecorder(stream, {
+ const recorder = new MediaRecorder(stream, {
mimeType,
audioBitsPerSecond,
videoBitsPerSecond,
});
+ // Carry our own container/mime: recorder.mimeType reflects it too, but the
+ // browser can normalize the string.
+ recorder.__screenityContainer = containerForMime(mimeType);
+ recorder.__screenityMime = mimeType;
+ // TEMP DEBUG (remove before commit): durable copy of the chosen mime so
+ // mp4test() can read it even after the 500-entry lifecycle log rotates.
+ try {
+ chrome?.storage?.local?.set({
+ __mp4dbg: { mime: mimeType, container: containerForMime(mimeType), at: Date.now() },
+ });
+ } catch {}
+ return recorder;
}
diff --git a/src/pages/Recorder/recorderConfig.js b/src/pages/Recorder/recorderConfig.js
index 1e10f4e..52efe70 100644
--- a/src/pages/Recorder/recorderConfig.js
+++ b/src/pages/Recorder/recorderConfig.js
@@ -1,6 +1,8 @@
-// Pair video + audio codec explicitly (w3c/mediacapture-record#194):
-// Chrome mis-tags blob.type for unqualified codecs string variants.
+// Pair video + audio codec explicitly (w3c/mediacapture-record#194); Chrome
+// mis-tags blob.type otherwise. MP4 (H.264+AAC) first since VFR VP9/WebM breaks
+// downstream (Bunny drops frames, node-av SIGSEGVs); isTypeSupported gates it.
export const MIME_TYPES = [
+ "video/mp4;codecs=avc1.42E01E,mp4a.40.2",
"video/webm;codecs=vp9,opus",
"video/webm;codecs=vp8,opus",
"video/webm;codecs=h264,opus",
diff --git a/src/pages/Recorder/recorderStorage/opfs/opfsChunkWriter.js b/src/pages/Recorder/recorderStorage/opfs/opfsChunkWriter.js
index e78e5cf..d94942e 100644
--- a/src/pages/Recorder/recorderStorage/opfs/opfsChunkWriter.js
+++ b/src/pages/Recorder/recorderStorage/opfs/opfsChunkWriter.js
@@ -208,6 +208,16 @@ export class OpfsChunkWriter {
byteSize: this._byteSize,
chunkCount: this._chunkCount,
});
+ } catch (err) {
+ // close rejected (worker timeout/crash/quota mid-flush). Log it so a
+ // never-finalized recording points at close, not a silent finalized=0.
+ opfsDiag("close-fail", {
+ message: String(err?.message || err).slice(0, 200),
+ byteSize: this._byteSize,
+ chunkCount: this._chunkCount,
+ fileName: this._fileName,
+ });
+ throw err;
} finally {
// Fire-and-forget; the storage.set under SW contention added 2s
// to close() and delayed the editor open. The editor reads this
@@ -217,6 +227,13 @@ export class OpfsChunkWriter {
chrome.storage.local.set({
lastRecordingFinalizedFileName: this._fileName,
});
+ // Log which file the marker named, so a finalized=0 report can tell
+ // an unwritten marker from one pointing at the wrong file.
+ opfsDiag("finalize-marker-set", {
+ fileName: this._fileName,
+ byteSize: this._byteSize,
+ chunkCount: this._chunkCount,
+ });
} catch {}
}
this._closed = true;
diff --git a/src/pages/Recorder/webcodecs/Mp4MuxerWrapper.ts b/src/pages/Recorder/webcodecs/Mp4MuxerWrapper.ts
index 0341cc9..770aa41 100644
--- a/src/pages/Recorder/webcodecs/Mp4MuxerWrapper.ts
+++ b/src/pages/Recorder/webcodecs/Mp4MuxerWrapper.ts
@@ -57,6 +57,11 @@ export class Mp4MuxerWrapper {
private _pendingFlush: Promise<void> = Promise.resolve();
private _closed = false;
+ // Bytes streamed to onChunk. When the file ends up empty, near-zero blames the
+ // encoder (header only); large here means the loss is in the OPFS write/close path.
+ private _totalEmittedBytes = 0;
+ private _emitCount = 0;
+
private debug: boolean;
private log: (...args: any[]) => void;
private warn: (...args: any[]) => void;
@@ -201,6 +206,14 @@ export class Mp4MuxerWrapper {
await this._pendingFlush;
}
+ // Read at stop to blame an empty file on the encoder (near-zero) vs the write path.
+ getStats() {
+ return {
+ totalEmittedBytes: this._totalEmittedBytes,
+ emitCount: this._emitCount,
+ };
+ }
+
// No-op: WebCodecsRecorder already subtracts paused time; double-subtract
// would break monotonicity. Kept for API compat.
setPausedOffset(_offsetUs: number) {}
@@ -210,6 +223,8 @@ export class Mp4MuxerWrapper {
}
private emitChunk(chunk: Uint8Array, timestampUs: number | null) {
+ this._totalEmittedBytes += chunk.byteLength;
+ this._emitCount += 1;
try {
const res = this.options.onChunk?.(chunk, timestampUs ?? null);
if (res instanceof Promise) {
diff --git a/src/pages/Recorder/webcodecs/WebCodecsRecorder.js b/src/pages/Recorder/webcodecs/WebCodecsRecorder.js
index 2a3631b..c8907b1 100644
--- a/src/pages/Recorder/webcodecs/WebCodecsRecorder.js
+++ b/src/pages/Recorder/webcodecs/WebCodecsRecorder.js
@@ -356,6 +356,10 @@ export class WebCodecsRecorder {
this._failureReported = false;
this._videoLoopError = null;
this._firstChunkSeen = false;
+ // no-first-chunk SW salvage is one-shot (guarded by _didSwRetry); reset so a
+ // reused instance can salvage again on a second recording.
+ this._didSwRetry = false;
+ this._swRetryReason = null;
this._lastChunkAt = null;
this._lastFailureCode = null;
this._forceNextKeyframe = false;
@@ -867,8 +871,10 @@ export class WebCodecsRecorder {
// of the file is already in chunksStore (fragmented MP4);
// flushPending() preserves the rest.
let muxerFinalizeOk = false;
+ let ranFlushPending = false;
if (this.muxer && !this._failureReported) {
const endFinalize = perfSpan("WCR.stop.muxer.finalize");
+ const finalizeStartedAt = performance.now();
try {
await Promise.race([
this.muxer.finalize().then(() => {
@@ -882,16 +888,52 @@ export class WebCodecsRecorder {
),
]);
endFinalize({ ok: true });
+ diagForward("recorder-muxer-finalize-ok", {
+ ms: Math.round(performance.now() - finalizeStartedAt),
+ chunksOut: this._chunksOut,
+ frameCount: this.frameCount,
+ });
} catch (err) {
endFinalize({ ok: false, err: String(err?.message || err).slice(0, 80) });
this.err("[WCR] muxer.finalize:", err);
this.options.onError?.(err);
try {
await this.muxer.flushPending();
+ ranFlushPending = true;
} catch {}
+ // finalize() timed out or threw: moov trailer may be missing, file could
+ // be a header-only fragment. Record whether we force-flushed for salvage.
+ diagForward("recorder-muxer-finalize-fail", {
+ ms: Math.round(performance.now() - finalizeStartedAt),
+ err: String(err?.message || err).slice(0, 120),
+ ranFlushPending,
+ chunksOut: this._chunksOut,
+ frameCount: this.frameCount,
+ });
}
}
+ // Capture-to-disk breadcrumb at stop: splits "encoder produced nothing"
+ // (muxerBytes ~= header) from "bytes lost after the muxer" (big muxerBytes,
+ // tiny file). ALWAYS_FLUSH survives SW teardown.
+ try {
+ const muxerStats = this.muxer?.getStats?.() || null;
+ diagForward("recorder-finalize-summary", {
+ frameCount: this.frameCount,
+ chunksOut: this._chunksOut,
+ firstChunkSeen: this._firstChunkSeen,
+ framesFromMSTP: this._framesFromMSTP,
+ syntheticFirstFrameCount: this._syntheticFirstFrameCount,
+ muxerBytes: muxerStats?.totalEmittedBytes ?? null,
+ muxerEmits: muxerStats?.emitCount ?? null,
+ muxerFinalizeOk,
+ ranFlushPending,
+ videoEncoderStateAtStop: this._videoEncoderStateAtStop,
+ failureReported: this._failureReported,
+ lastFailureCode: this._lastFailureCode || null,
+ });
+ } catch {}
+
// Always invoke onFinalized: skipping on finalize-fail caused the
// stuck-at-90% bug on stream-end. Recorder layer decides next steps
// (validate chunks, mark failed, send video-ready).
@@ -1323,6 +1365,44 @@ export class WebCodecsRecorder {
this._armFirstChunkWatchdog();
return;
}
+ // HW encoder can configure() fine yet emit no chunk: screen+camera both on
+ // HW WebCodecs contend for macOS VideoToolbox sessions, yielding a 28-byte
+ // ftyp-only file. Nothing throws, so rebuild prefer-software once first.
+ const cfg = this._activeVideoConfig;
+ const isHwConfig =
+ cfg &&
+ (cfg.hardwareAcceleration === "prefer-hardware" ||
+ !cfg.hardwareAcceleration);
+ if (
+ this.running &&
+ !this._stopping &&
+ isHwConfig &&
+ !this._didSwRetry &&
+ this._encoderReclaimCount < this._maxEncoderReclaims
+ ) {
+ this._encoderReclaimCount += 1;
+ this.warn(
+ "[WCR] no first chunk on hardware encoder; rebuilding prefer-software",
+ { withinMs: this._firstChunkWatchdogMs, attempt: this._encoderReclaimCount },
+ );
+ try {
+ diagForward("recorder-no-first-chunk-sw-rebuild", {
+ withinMs: this._firstChunkWatchdogMs,
+ attempt: this._encoderReclaimCount,
+ });
+ } catch {}
+ const swConfig = {
+ ...cfg,
+ hardwareAcceleration: "prefer-software",
+ };
+ if (this._rebuildVideoEncoder(swConfig)) {
+ this._didSwRetry = true;
+ this._swRetryReason = this._swRetryReason || "no-first-chunk";
+ this._forceNextKeyframe = true;
+ this._armFirstChunkWatchdog();
+ return;
+ }
+ }
this.warn(
`[WCR] no encoded video chunk within ${this._firstChunkWatchdogMs}ms`,
);
@@ -2372,7 +2452,14 @@ export class WebCodecsRecorder {
gapMs: Math.round(_nowLoopTick - this._lastFrameArrivalAt),
recoveries: this._postSleepRecoveries,
});
- this._lastChunkAt = _nowLoopTick;
+ // Sleep can invalidate the VideoToolbox session (crbug 477895).
+ // Backdate _lastChunkAt to give the stall watchdog 8s grace, not 15s:
+ // clears HW cold-start yet rebuilds a dead session promptly.
+ const POST_SLEEP_GRACE_MS = 8000;
+ this._lastChunkAt =
+ this._midStreamWatchdogMs > POST_SLEEP_GRACE_MS
+ ? _nowLoopTick - (this._midStreamWatchdogMs - POST_SLEEP_GRACE_MS)
+ : _nowLoopTick;
this._forceNextKeyframe = true;
try {
diagForward("recorder-sleep-detected", {
diff --git a/src/pages/Region/Recorder.jsx b/src/pages/Region/Recorder.jsx
index 801a5c6..c80c9b8 100644
--- a/src/pages/Region/Recorder.jsx
+++ b/src/pages/Region/Recorder.jsx
@@ -29,6 +29,7 @@ import {
validateFastRecorderOutputBlob,
isFastRecorderFailureTransient,
} from "../../media/fastRecorderGate";
+import { getResolutionForQuality } from "../Recorder/recorderConfig";
import { chooseWriter } from "../Recorder/recorderStorage/chooseWriter";
import { chooseReader } from "../Recorder/recorderStorage/chooseReader";
import { lifecycle } from "../utils/lifecycleLog";
@@ -241,6 +242,9 @@ const Recorder = () => {
const lastEstimateAt = useRef(0);
const ESTIMATE_INTERVAL_MS = 5000;
const MIN_HEADROOM = 25 * 1024 * 1024;
+ // Aborting still writes a tail chunk and finalizes, so the reserve has to
+ // cover the bytes in flight, not just a flat floor.
+ const HEADROOM_CHUNKS = 4;
const MAX_PENDING_BYTES = 8 * 1024 * 1024;
const pendingBytes = useRef(0);
const recordingIdRef = useRef(null);
@@ -363,7 +367,11 @@ const Recorder = () => {
try {
const { usage = 0, quota = 0 } = await navigator.storage.estimate();
const remaining = quota - usage;
- return remaining > MIN_HEADROOM + (byteLength || 0);
+ const reserve = Math.max(
+ MIN_HEADROOM,
+ (byteLength || 0) * HEADROOM_CHUNKS,
+ );
+ return remaining > reserve + (byteLength || 0);
} catch {
return !lowStorageAbort.current;
}
@@ -888,9 +896,11 @@ const Recorder = () => {
console.error(
"[Region.Recorder] no supported MediaRecorder mimeType",
);
- sendRecordingError(
- chrome.i18n.getMessage("unsupportedVideoCodecError"),
- );
+ chrome.runtime.sendMessage({
+ type: "recording-error",
+ error: "stream-error",
+ why: chrome.i18n.getMessage("unsupportedVideoCodecError"),
+ });
return;
}
@@ -1006,7 +1016,7 @@ const Recorder = () => {
const handleWebCodecsChunk = async (blob, timestampUs) => {
if (lowStorageAbort.current) return;
- // First chunk landed — cancel the BG watchdog so it doesn't fire
+ // First chunk landed, cancel the BG watchdog so it doesn't fire
// a spurious recording-error. hasChunks is set later in saveChunk
// for the MR path; we set it here for WebCodecs.
if (!hasChunks.current) {
@@ -1304,7 +1314,7 @@ const Recorder = () => {
}
let swapped = false;
try {
- swapped = await startMediaRecorderWithCodec("vp9");
+ swapped = await startMediaRecorderWithCodec("mp4");
} catch (e) {
swapped = false;
}
@@ -1406,7 +1416,7 @@ const Recorder = () => {
};
const startMediaRecorderWithCodec = async (codec) => {
- const mimeType = selectMimeType(codec);
+ const mimeType = selectMimeType(codec, liveStream.current);
lifecycle("Region.Recorder", "startMediaRecorderWithCodec", {
codec,
mimeType,
@@ -1641,7 +1651,10 @@ const Recorder = () => {
!isFinishing.current &&
!isRestarting.current
) {
- if (derivedMbps < 5 && getCodecLabel(mimeType) !== "vp8") {
+ // A broken encoder emits ~28 bytes (empty-stream failure). H.264
+ // encodes static screens at 1-4 Mbps, so the old <5 threshold
+ // downgraded normal recordings to VP8 and dropped the first ~3s.
+ if (derivedMbps < 0.05 && getCodecLabel(mimeType) !== "vp8") {
codecFallbackTriggered = true;
lifecycle("Region.Recorder", "codec-fallback", {
from: getCodecLabel(mimeType),
@@ -1720,7 +1733,7 @@ const Recorder = () => {
if (!ok) {
useWebCodecs.current = false;
await chrome.storage.local.set({ fastRecorderInUse: false });
- await startMediaRecorderWithCodec("vp9");
+ await startMediaRecorderWithCodec("mp4");
persistRegionStartDebug({ stage: "start-recorder-fallback-vp9" });
} else {
persistRegionStartDebug({ stage: "start-recorder-webcodecs-ok" });
@@ -1728,7 +1741,7 @@ const Recorder = () => {
} else {
useWebCodecs.current = false;
await chrome.storage.local.set({ fastRecorderInUse: false });
- await startMediaRecorderWithCodec("vp9");
+ await startMediaRecorderWithCodec("mp4");
persistRegionStartDebug({ stage: "start-recorder-mediarecorder-vp9" });
}
} catch (err) {
@@ -2264,30 +2277,7 @@ const Recorder = () => {
try {
const endStorageReads = perfSpan("Region.Recorder storage.reads");
const { qualityValue } = await chrome.storage.local.get(["qualityValue"]);
-
- let width = 1920;
- let height = 1080;
-
- if (qualityValue === "4k") {
- width = 4096;
- height = 2160;
- } else if (qualityValue === "1080p") {
- width = 1920;
- height = 1080;
- } else if (qualityValue === "720p") {
- width = 1280;
- height = 720;
- } else if (qualityValue === "480p") {
- width = 854;
- height = 480;
- } else if (qualityValue === "360p") {
- width = 640;
- height = 360;
- } else if (qualityValue === "240p") {
- width = 426;
- height = 240;
- }
-
+ const { width, height } = getResolutionForQuality(qualityValue);
const { fpsValue } = await chrome.storage.local.get(["fpsValue"]);
let fps = parseInt(fpsValue);
diff --git a/src/pages/utils/captureResolution.js b/src/pages/utils/captureResolution.js
new file mode 100644
index 0000000..1cf79fa
--- /dev/null
+++ b/src/pages/utils/captureResolution.js
@@ -0,0 +1,86 @@
+// Capture at 2x the encode size and let the resize canvas downscale: measured
+// 1.315x more detail, matching full native at half the pixel cost. Below 2x is
+// no better than not oversampling, so it is 2x or nothing.
+export const OVERSAMPLE_FACTOR = 2;
+
+// Also the encoder's per-dimension cap (VIDEO_DIM_HARD_CAP in recorderLogic.js).
+const OVERSAMPLE_MAX_WIDTH = 3840;
+const OVERSAMPLE_MAX_HEIGHT = 2160;
+
+export const computeCaptureCap = (encodeWidth, encodeHeight, { disabled = false } = {}) => {
+ const w = Number(encodeWidth);
+ const h = Number(encodeHeight);
+ if (!Number.isFinite(w) || !Number.isFinite(h) || w <= 0 || h <= 0) return null;
+
+ const encode = { width: Math.round(w), height: Math.round(h), oversampled: false };
+ if (disabled) return encode;
+
+ const ow = w * OVERSAMPLE_FACTOR;
+ const oh = h * OVERSAMPLE_FACTOR;
+ if (ow > OVERSAMPLE_MAX_WIDTH || oh > OVERSAMPLE_MAX_HEIGHT) return encode;
+
+ return { width: Math.round(ow), height: Math.round(oh), oversampled: true };
+};
+
+// capWidth/capHeight are the encode BOX, not the encode size. The real encode is
+// the source fitted inside it, so the ratio comes from that fit; width alone
+// misreads anything off the box aspect (a portrait tab binds on height).
+export const enforceOversampleRatio = async (track, capWidth, capHeight) => {
+ const settings = track?.getSettings?.() || {};
+ const w = Number(settings.width);
+ const h = Number(settings.height);
+ const cw = Number(capWidth);
+ const ch = Number(capHeight);
+ if (![w, h, cw, ch].every((n) => Number.isFinite(n) && n > 0)) return "unknown";
+ const fit = Math.min(cw / w, ch / h, 1);
+ const ratio = 1 / fit;
+ if (ratio >= OVERSAMPLE_FACTOR) return "supersampled";
+ if (ratio <= 1) return "not-needed";
+ return constrainTrackDown(track, cw, ch);
+};
+
+// Kill-switch, matching disableSurfaceSwitching. Absent means enabled.
+export const isOversampleDisabled = async () => {
+ try {
+ if (typeof chrome === "undefined" || !chrome.storage?.local) return false;
+ const { disableCaptureOversample } = await chrome.storage.local.get([
+ "disableCaptureOversample",
+ ]);
+ return disableCaptureOversample === true;
+ } catch {
+ return false;
+ }
+};
+
+// MediaRecorder has no resize stage, so a supersampled track would encode at 2x.
+// applyConstraints can only lower (crbug 40189508). The tri-state stops an
+// already-small track being reported as a failure.
+export const constrainTrackDown = async (track, width, height) => {
+ if (!track || typeof track.applyConstraints !== "function") return "failed";
+ const w = Number(width);
+ const h = Number(height);
+ if (!Number.isFinite(w) || !Number.isFinite(h) || w <= 0 || h <= 0) return "failed";
+ const settings = typeof track.getSettings === "function" ? track.getSettings() : {};
+ if (settings.width <= w && settings.height <= h) return "not-needed";
+ // applyConstraints REPLACES the constraint set, so re-assert the frame rate
+ // the capture was opened with or the track loses its ceiling and floats up.
+ const box = { width: { max: w }, height: { max: h } };
+ const fps = Number(settings.frameRate);
+ try {
+ if (Number.isFinite(fps) && fps > 0) {
+ // Retry without the rate if a source refuses the combination: a track at
+ // the right size with no ceiling still beats one left at 2x.
+ try {
+ await track.applyConstraints({
+ ...box,
+ frameRate: { max: Math.round(fps) },
+ });
+ return "lowered";
+ } catch {}
+ }
+ await track.applyConstraints(box);
+ return "lowered";
+ } catch {
+ return "failed";
+ }
+};
diff --git a/src/pages/utils/diagnosticLog.js b/src/pages/utils/diagnosticLog.js
index e89e005..cb17afd 100644
--- a/src/pages/utils/diagnosticLog.js
+++ b/src/pages/utils/diagnosticLog.js
@@ -57,6 +57,14 @@ const ALWAYS_FLUSH = [
"sandbox-opfs-materialize-deferred",
"session-deferred-end",
"editor-route-decision",
+ "recorder-finalize-summary",
+ "recorder-muxer-finalize-ok",
+ "recorder-muxer-finalize-fail",
+ "recorder-writer-close-result",
+ "opfs-close-fail",
+ "opfs-finalize-marker-set",
+ "recorder-validation-start",
+ "recorder-validation-done",
];
let _log = null;
diff --git a/src/pages/utils/recorderCodec.js b/src/pages/utils/recorderCodec.js
index 74d0e8a..9d08cff 100644
--- a/src/pages/utils/recorderCodec.js
+++ b/src/pages/utils/recorderCodec.js
@@ -1,9 +1,38 @@
-// MediaRecorder codec negotiation + track snapshots, shared by Recorder and Region.
-// CloudRecorder has its own inline mimeType handling.
+// MediaRecorder codec negotiation + track snapshots, shared by Recorder and
+// Region (the same recorder, tab vs iframe). CloudRecorder has its own inline
+// mimeType handling (encoder/chooseEncoder.js).
-export const selectMimeType = (preferredCodec) => {
+// Prefer MP4 (H.264+AAC) for the MediaRecorder fallback, matching the free
+// Recorder and CloudRecorder. VFR VP9/WebM breaks downstream (Bunny drops
+// frames, node-av SIGSEGVs). false = VP9-WebM.
+const PREFER_MP4_MEDIARECORDER = true;
+// avc1 Baseline + AAC-LC, same string the free Recorder uses.
+const MP4_MIME = "video/mp4;codecs=avc1.42E01E,mp4a.40.2";
+
+// isTypeSupported(avc1) true does not guarantee start() succeeds: some
+// Windows/Chrome installs advertise the mime and then throw NotSupportedError
+// from start(), which killed the whole recording. Probe the real stream.
+export const canStartMp4Recorder = (stream, mime) => {
+ if (!stream || typeof MediaRecorder === "undefined") return true;
+ let probe = null;
+ try {
+ probe = new MediaRecorder(stream, { mimeType: mime });
+ probe.start();
+ return true;
+ } catch {
+ return false;
+ } finally {
+ try {
+ if (probe && probe.state !== "inactive") probe.stop();
+ } catch {}
+ }
+};
+
+// Primary start passes "mp4" (falls through to WebM if unsupported); the
+// runtime downgrade passes "vp8" and must stay WebM.
+export const selectMimeType = (preferredCodec, stream = null) => {
const preferred = (preferredCodec || "").toLowerCase();
- const mimeTypes = [
+ const webmTypes = [
"video/webm;codecs=vp9,opus",
"video/webm;codecs=vp9",
"video/webm;codecs=vp8,opus",
@@ -12,11 +41,24 @@ export const selectMimeType = (preferredCodec) => {
"video/webm;codecs=h264",
"video/webm",
];
- const ordered = preferred
- ? mimeTypes
+ const wantsWebmCodec =
+ preferred.includes("vp8") ||
+ preferred.includes("vp9") ||
+ preferred === "webm";
+ const offerMp4 =
+ PREFER_MP4_MEDIARECORDER &&
+ !wantsWebmCodec &&
+ canStartMp4Recorder(stream, MP4_MIME)
+ ? [MP4_MIME]
+ : [];
+
+ const orderedWebm = preferred
+ ? webmTypes
.filter((type) => type.includes(preferred))
- .concat(mimeTypes.filter((type) => !type.includes(preferred)))
- : mimeTypes;
+ .concat(webmTypes.filter((type) => !type.includes(preferred)))
+ : webmTypes;
+
+ const ordered = [...offerMp4, ...orderedWebm];
return ordered.find((type) => MediaRecorder.isTypeSupported(type)) || null;
};