Skip to content

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

Improve long recording reliability + webcodecs

Alyssa X6fddd8432c87
diff --git a/package-lock.json b/package-lock.json
index 3b77b78..4f0ac07 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -36,7 +36,7 @@
"gif.js": "^0.2.0",
"jszip": "^3.10.1",
"localforage": "^1.10.0",
- "mediabunny": "^1.24.4",
+ "mediabunny": "^1.40.1",
"patch-package": "^8.0.0",
"plyr": "3.7.8",
"plyr-react": "^5.3.0",
@@ -8238,9 +8238,10 @@
}
},
"node_modules/mediabunny": {
- "version": "1.24.4",
- "resolved": "https://registry.npmjs.org/mediabunny/-/mediabunny-1.24.4.tgz",
- "integrity": "sha512-dpWYBPTtMg152yNLXZQ7xb6hsXdYbKp9EuK8qq4npS+SZ08FVc1XHlXYhrOm31T+tUVJKgm95Yaqy69wTpZP9Q==",
+ "version": "1.40.1",
+ "resolved": "https://registry.npmjs.org/mediabunny/-/mediabunny-1.40.1.tgz",
+ "integrity": "sha512-HU/stGzAkdWaJIly6ypbUVgAUvT9kt39DIg0IaErR7/1fwtTmgUYs4i8uEPYcgcjPjbB9gtBmUXOLnXi6J2LDw==",
+ "license": "MPL-2.0",
"workspaces": [
"packages/*"
],
diff --git a/package.json b/package.json
index 0069006..70214c1 100755
--- a/package.json
+++ b/package.json
@@ -46,7 +46,7 @@
"gif.js": "^0.2.0",
"jszip": "^3.10.1",
"localforage": "^1.10.0",
- "mediabunny": "^1.24.4",
+ "mediabunny": "^1.40.1",
"patch-package": "^8.0.0",
"plyr": "3.7.8",
"plyr-react": "^5.3.0",
diff --git a/src/_locales/ca/messages.json b/src/_locales/ca/messages.json
index 435f7cd..bad4b06 100644
--- a/src/_locales/ca/messages.json
+++ b/src/_locales/ca/messages.json
@@ -495,6 +495,10 @@
"message": "L'edició i la descàrrega en format MP4 no estan disponibles",
"description": "Descripció de límit de més de 5 minuts a l'editor"
},
+ "overLimitLabelDescriptionFastPath": {
+ "message": "Les funcions d'edició no estan disponibles",
+ "description": "Over limit description when the recording is a native MP4 (fast recorder / WebCodecs) so MP4 export still works"
+ },
"videoProcessingLabelTitle": {
"message": "El vídeo s'està processant...",
"description": "Etiqueta de processament de vídeo a l'editor"
@@ -891,6 +895,10 @@
"message": "Com que Screenity és completament privat i s'executa localment, està limitat pel maquinari del teu dispositiu. Processar un vídeo d'aquesta longitud trigarà massa temps i serà molt intensiu en recursos. No et preocupis, encara pots descarregar l'arxiu WEBM o la gravació en brut, però l'edició i l'exportació a MP4 no estan disponibles. Dicho això, encara pots intentar processar el vídeo de tota manera si entens els riscos.",
"description": "Descripció del modal de límit superior a 5 minuts"
},
+ "overLimitModalDescriptionFastPath": {
+ "message": "Com que Screenity és completament privat i s'executa localment, està limitat pel maquinari del teu dispositiu. Processar un vídeo d'aquesta longitud trigarà massa temps i serà molt intensiu en recursos. El teu MP4 ja està llest per descarregar, però l'edició al navegador no està disponible per a clips tan llargs. Dicho això, encara pots intentar processar el vídeo de tota manera si entens els riscos.",
+ "description": "Over 5 minutes limit modal description when the recording is a native MP4 (fast recorder / WebCodecs)"
+ },
"overLimitModalButton": {
"message": "Entenc el risc, intenta-ho igualment",
"description": "Botó del modal de límit superior a 5 minuts"
@@ -1390,7 +1398,7 @@
"description": "Botó d’acció del modal de benvinguda a Pro"
},
"webcodecsToggleLabel": {
- "message": "Fast MP4 (beta)",
+ "message": "Fast MP4",
"description": "WebCodecs recorder toggle label"
},
"webcodecsFailedOffToast": {
@@ -1570,7 +1578,7 @@
"description": "Button to download the recording file despite validation failure"
},
"cancelButton": {
- "message": "Cancel\u00b7la",
+ "message": "Cancel·la",
"description": "Generic cancel button label"
}
}
diff --git a/src/_locales/de/messages.json b/src/_locales/de/messages.json
index fd9c5a6..90d8bf4 100644
--- a/src/_locales/de/messages.json
+++ b/src/_locales/de/messages.json
@@ -495,6 +495,10 @@
"message": "Bearbeitung und MP4-Export nicht verfügbar",
"description": "Beschreibung für über 5 Minuten in der Bearbeitung"
},
+ "overLimitLabelDescriptionFastPath": {
+ "message": "Bearbeitungsfunktionen nicht verfügbar",
+ "description": "Over limit description when the recording is a native MP4 (fast recorder / WebCodecs) so MP4 export still works"
+ },
"videoProcessingLabelTitle": {
"message": "Das Video wird verarbeitet...",
"description": "Schriftzug 'Videoverarbeitung' im Editor"
@@ -891,6 +895,10 @@
"message": "Da Screenity komplett privat ist und lokal ausgeführt wird, ist es von der Hardware Ihres Geräts begrenzt. Die Verarbeitung eines Videos dieser Länge würde zu lange dauern und sehr ressourcenintensiv sein. Keine Sorge, Sie können immer noch die WEBM-Datei oder die Rohaufnahme herunterladen, aber Bearbeitung und MP4-Export sind nicht verfügbar. Sie können das Video dennoch versuchen zu verarbeiten, wenn Sie die Risiken verstehen.",
"description": "Beschreibung des Modals für die 5-Minuten-Limitierung"
},
+ "overLimitModalDescriptionFastPath": {
+ "message": "Da Screenity komplett privat ist und lokal ausgeführt wird, ist es von der Hardware Ihres Geräts begrenzt. Die Verarbeitung eines Videos dieser Länge würde zu lange dauern und sehr ressourcenintensiv sein. Ihr MP4 ist bereit zum Herunterladen, aber die Bearbeitung im Browser ist für Clips dieser Länge nicht verfügbar. Sie können das Video dennoch versuchen zu verarbeiten, wenn Sie die Risiken verstehen.",
+ "description": "Over 5 minutes limit modal description when the recording is a native MP4 (fast recorder / WebCodecs)"
+ },
"overLimitModalButton": {
"message": "Ich verstehe das Risiko, trotzdem versuchen",
"description": "Schaltfläche des Modals für die 5-Minuten-Limitierung"
@@ -1390,7 +1398,7 @@
"description": "Bestätigungsbutton im Willkommensmodal für Pro"
},
"webcodecsToggleLabel": {
- "message": "Fast MP4 (beta)",
+ "message": "Fast MP4",
"description": "WebCodecs recorder toggle label"
},
"webcodecsFailedOffToast": {
diff --git a/src/_locales/en/messages.json b/src/_locales/en/messages.json
index c837b55..e6adecf 100644
--- a/src/_locales/en/messages.json
+++ b/src/_locales/en/messages.json
@@ -495,6 +495,10 @@
"message": "Editing and MP4 export are unavailable",
"description": "Over 5 minutes limit description in editor"
},
+ "overLimitLabelDescriptionFastPath": {
+ "message": "Editing features are unavailable",
+ "description": "Over limit description when the recording is a native MP4 (fast recorder / WebCodecs) so MP4 export still works"
+ },
"videoProcessingLabelTitle": {
"message": "The video is processing locally...",
"description": "Video processing label in editor"
@@ -923,6 +927,10 @@
"message": "Since Screenity is completely private and runs locally, it's limited by your device's hardware. Processing a video of this length would take too long, and be very resource intensive. Don't worry, you can still download the WEBM file or the raw recording, but editing and MP4 export are not available. That said, you can still try to process the video anyway, if you understand the risks.",
"description": "Over 5 minutes limit modal description"
},
+ "overLimitModalDescriptionFastPath": {
+ "message": "Since Screenity is completely private and runs locally, it's limited by your device's hardware. Processing a video of this length would take too long, and be very resource intensive. Your MP4 is ready to download as-is, but in-browser editing isn't available for clips this long. You can still try to process the video anyway, if you understand the risks.",
+ "description": "Over 5 minutes limit modal description when the recording is a native MP4 (fast recorder / WebCodecs)"
+ },
"overLimitModalButton": {
"message": "I understand the risk, try anyway",
"description": "Over 5 minutes limit modal button"
@@ -1438,7 +1446,7 @@
"description": "Welcome to Pro modal action button"
},
"webcodecsToggleLabel": {
- "message": "Fast MP4 (beta)",
+ "message": "Fast MP4",
"description": "WebCodecs recorder toggle label"
},
"webcodecsFailedOffToast": {
diff --git a/src/_locales/es/messages.json b/src/_locales/es/messages.json
index bb89237..6195486 100644
--- a/src/_locales/es/messages.json
+++ b/src/_locales/es/messages.json
@@ -495,6 +495,10 @@
"message": "La edición y descarga en formato MP4 no están disponibles",
"description": "Descripción de límite de más de 5 minutos en el editor"
},
+ "overLimitLabelDescriptionFastPath": {
+ "message": "Las funciones de edición no están disponibles",
+ "description": "Over limit description when the recording is a native MP4 (fast recorder / WebCodecs) so MP4 export still works"
+ },
"videoProcessingLabelTitle": {
"message": "El vídeo se está procesando...",
"description": "Etiqueta de procesamiento de vídeo en el editor"
@@ -891,6 +895,10 @@
"message": "Dado que Screenity es completamente privado y se ejecuta localmente, está limitado por el hardware de tu dispositivo. Procesar un video de esta longitud llevaría demasiado tiempo y sería muy intensivo en recursos. No te preocupes, aún puedes descargar el archivo WEBM o la grabación sin procesar, pero la edición y la exportación a MP4 no están disponibles. Dicho esto, aún puedes intentar procesar el video de todos modos si comprendes los riesgos.",
"description": "Descripción del modal de límite de más de 5 minutos"
},
+ "overLimitModalDescriptionFastPath": {
+ "message": "Dado que Screenity es completamente privado y se ejecuta localmente, está limitado por el hardware de tu dispositivo. Procesar un video de esta longitud llevaría demasiado tiempo y sería muy intensivo en recursos. Tu MP4 ya está listo para descargar, pero la edición en el navegador no está disponible para clips de esta longitud. Dicho esto, aún puedes intentar procesar el video de todos modos si comprendes los riesgos.",
+ "description": "Over 5 minutes limit modal description when the recording is a native MP4 (fast recorder / WebCodecs)"
+ },
"overLimitModalButton": {
"message": "Entiendo el riesgo, intentalo de todos modos",
"description": "Botón del modal de límite de más de 5 minutos"
@@ -1390,7 +1398,7 @@
"description": "Botón de acción del modal de bienvenida a Pro"
},
"webcodecsToggleLabel": {
- "message": "Fast MP4 (beta)",
+ "message": "Fast MP4",
"description": "WebCodecs recorder toggle label"
},
"webcodecsFailedOffToast": {
@@ -1558,11 +1566,11 @@
"description": "Toast shown when a region recording is stopped by navigation but no chunks were saved"
},
"fastRecorderFailedTitle": {
- "message": "El grabador r\u00e1pido fall\u00f3",
+ "message": "El grabador rápido falló",
"description": "Title for the modal shown when the fast MP4 recorder output could not be validated"
},
"fastRecorderFailedDescription": {
- "message": "La salida del grabador r\u00e1pido no se pudo validar en este dispositivo.\nPuedes descargar el archivo de todas formas.",
+ "message": "La salida del grabador rápido no se pudo validar en este dispositivo.\nPuedes descargar el archivo de todas formas.",
"description": "Body text for the fast recorder failure modal"
},
"downloadAnywayButton": {
diff --git a/src/_locales/fr/messages.json b/src/_locales/fr/messages.json
index ebba780..f1aef9c 100644
--- a/src/_locales/fr/messages.json
+++ b/src/_locales/fr/messages.json
@@ -495,6 +495,10 @@
"message": "L'édition et l'exportation au format MP4 ne sont pas disponibles",
"description": "Description de la limite de plus de 5 minutes dans l'éditeur"
},
+ "overLimitLabelDescriptionFastPath": {
+ "message": "Les fonctions d'édition ne sont pas disponibles",
+ "description": "Over limit description when the recording is a native MP4 (fast recorder / WebCodecs) so MP4 export still works"
+ },
"videoProcessingLabelTitle": {
"message": "La vidéo est en cours de traitement...",
"description": "Étiquette de traitement vidéo dans l'éditeur"
@@ -891,6 +895,10 @@
"message": "Comme Screenity est complètement privé et fonctionne en local, il est limité par le matériel de votre appareil. Le traitement d'une vidéo de cette longueur prendrait trop de temps et serait très intensif en ressources. Ne vous inquiétez pas, vous pouvez toujours télécharger le fichier WEBM ou l'enregistrement brut, mais l'édition et l'exportation en MP4 ne sont pas disponibles. Cela dit, vous pouvez toujours essayer de traiter la vidéo de toute façon, si vous comprenez les risques.",
"description": "Description de la fenêtre modale de limite de plus de 5 minutes"
},
+ "overLimitModalDescriptionFastPath": {
+ "message": "Comme Screenity est complètement privé et fonctionne en local, il est limité par le matériel de votre appareil. Le traitement d'une vidéo de cette longueur prendrait trop de temps et serait très intensif en ressources. Votre MP4 est prêt à être téléchargé, mais l'édition dans le navigateur n'est pas disponible pour des clips aussi longs. Cela dit, vous pouvez toujours essayer de traiter la vidéo de toute façon, si vous comprenez les risques.",
+ "description": "Over 5 minutes limit modal description when the recording is a native MP4 (fast recorder / WebCodecs)"
+ },
"overLimitModalButton": {
"message": "Je comprends le risque, essayer quand même",
"description": "Bouton de la fenêtre modale de limite de plus de 5 minutes"
@@ -1390,7 +1398,7 @@
"description": "Bouton d’action de la fenêtre de bienvenue pour Pro"
},
"webcodecsToggleLabel": {
- "message": "Fast MP4 (beta)",
+ "message": "Fast MP4",
"description": "WebCodecs recorder toggle label"
},
"webcodecsFailedOffToast": {
@@ -1558,15 +1566,15 @@
"description": "Toast shown when a region recording is stopped by navigation but no chunks were saved"
},
"fastRecorderFailedTitle": {
- "message": "L'enregistreur rapide a \u00e9chou\u00e9",
+ "message": "L'enregistreur rapide a échoué",
"description": "Title for the modal shown when the fast MP4 recorder output could not be validated"
},
"fastRecorderFailedDescription": {
- "message": "La sortie de l'enregistreur rapide n'a pas pu \u00eatre valid\u00e9e sur cet appareil.\nVous pouvez quand m\u00eame t\u00e9l\u00e9charger le fichier.",
+ "message": "La sortie de l'enregistreur rapide n'a pas pu être validée sur cet appareil.\nVous pouvez quand même télécharger le fichier.",
"description": "Body text for the fast recorder failure modal"
},
"downloadAnywayButton": {
- "message": "T\u00e9l\u00e9charger quand m\u00eame",
+ "message": "Télécharger quand même",
"description": "Button to download the recording file despite validation failure"
},
"cancelButton": {
diff --git a/src/_locales/hi/messages.json b/src/_locales/hi/messages.json
index a131d03..aeb2386 100644
--- a/src/_locales/hi/messages.json
+++ b/src/_locales/hi/messages.json
@@ -495,6 +495,10 @@
"message": "संपादन और MP4 निर्यात उपलब्ध नहीं है",
"description": "संपादक में 5 मिनट से अधिक सीमा का विवरण"
},
+ "overLimitLabelDescriptionFastPath": {
+ "message": "संपादन सुविधाएँ उपलब्ध नहीं हैं",
+ "description": "Over limit description when the recording is a native MP4 (fast recorder / WebCodecs) so MP4 export still works"
+ },
"videoProcessingLabelTitle": {
"message": "वीडियो प्रसंस्करण हो रहा है...",
"description": "संपादक में वीडियो प्रसंस्करण लेबल"
@@ -891,6 +895,10 @@
"message": "क्योंकि Screenity पूरी तरह से निजी है और स्थानीय रूप से चलता है, यह आपके डिवाइस के हार्डवेयर द्वारा सीमित होता है। इस लम्बाई के वीडियो को प्रोसेस करना बहुत समय लगेगा और बहुत अधिक संसाधनों की आवश्यकता होगी। फिकर न करें, आप फिर भी WEBM फ़ाइल या रॉ रिकॉर्डिंग डाउनलोड कर सकते हैं, लेकिन संपादन और MP4 निर्यात उपलब्ध नहीं हैं। इसके बावजूद, आप फिर भी कोशिश कर सकते हैं कि वीडियो को प्रोसेस करने का प्रयास करें, अगर आप खतरों को समझते हैं।",
"description": "5 मिनट सीमा मॉडल विवरण"
},
+ "overLimitModalDescriptionFastPath": {
+ "message": "क्योंकि Screenity पूरी तरह से निजी है और स्थानीय रूप से चलता है, यह आपके डिवाइस के हार्डवेयर द्वारा सीमित होता है। इस लम्बाई के वीडियो को प्रोसेस करना बहुत समय लगेगा और बहुत अधिक संसाधनों की आवश्यकता होगी। आपका MP4 डाउनलोड करने के लिए तैयार है, लेकिन इतनी लंबी क्लिप के लिए ब्राउज़र में संपादन उपलब्ध नहीं है। इसके बावजूद, आप फिर भी कोशिश कर सकते हैं कि वीडियो को प्रोसेस करने का प्रयास करें, अगर आप खतरों को समझते हैं।",
+ "description": "Over 5 minutes limit modal description when the recording is a native MP4 (fast recorder / WebCodecs)"
+ },
"overLimitModalButton": {
"message": "मैं खतरा समझता हूँ, फिर भी कोशिश करें",
"description": "5 मिनट सीमा मॉडल बटन"
@@ -1390,7 +1398,7 @@
"description": "Pro वेलकम मोडल का एक्शन बटन"
},
"webcodecsToggleLabel": {
- "message": "Fast MP4 (beta)",
+ "message": "Fast MP4",
"description": "WebCodecs recorder toggle label"
},
"webcodecsFailedOffToast": {
diff --git a/src/_locales/id/messages.json b/src/_locales/id/messages.json
index 9c6de6a..58f304f 100644
--- a/src/_locales/id/messages.json
+++ b/src/_locales/id/messages.json
@@ -495,6 +495,10 @@
"message": "Pengeditan dan ekspor ke format MP4 tidak tersedia",
"description": "Deskripsi batas lebih dari 5 menit dalam editor"
},
+ "overLimitLabelDescriptionFastPath": {
+ "message": "Fitur pengeditan tidak tersedia",
+ "description": "Over limit description when the recording is a native MP4 (fast recorder / WebCodecs) so MP4 export still works"
+ },
"videoProcessingLabelTitle": {
"message": "Video sedang diproses...",
"description": "Label Proses video di editor"
@@ -891,6 +895,10 @@
"message": "Karena Screenity sepenuhnya privat dan berjalan secara lokal, ia dibatasi oleh perangkat keras perangkat Anda. Memproses video sepanjang ini akan memakan waktu terlalu lama dan sangat intensif dalam penggunaan sumber daya. Jangan khawatir, Anda masih dapat mengunduh file WEBM atau rekaman mentah, tetapi pengeditan dan ekspor ke MP4 tidak tersedia. Namun demikian, Anda masih dapat mencoba memproses video ini jika Anda memahami risikonya.",
"description": "Deskripsi modal batas lebih dari 5 menit"
},
+ "overLimitModalDescriptionFastPath": {
+ "message": "Karena Screenity sepenuhnya privat dan berjalan secara lokal, ia dibatasi oleh perangkat keras perangkat Anda. Memproses video sepanjang ini akan memakan waktu terlalu lama dan sangat intensif dalam penggunaan sumber daya. MP4 Anda sudah siap untuk diunduh, tetapi pengeditan di browser tidak tersedia untuk klip sepanjang ini. Namun demikian, Anda masih dapat mencoba memproses video ini jika Anda memahami risikonya.",
+ "description": "Over 5 minutes limit modal description when the recording is a native MP4 (fast recorder / WebCodecs)"
+ },
"overLimitModalButton": {
"message": "Saya mengerti risikonya, coba saja",
"description": "Tombol modal batas lebih dari 5 menit"
@@ -1390,7 +1398,7 @@
"description": "Tombol aksi di modal sambutan Pro"
},
"webcodecsToggleLabel": {
- "message": "Fast MP4 (beta)",
+ "message": "Fast MP4",
"description": "WebCodecs recorder toggle label"
},
"webcodecsFailedOffToast": {
diff --git a/src/_locales/it/messages.json b/src/_locales/it/messages.json
index e8f0c8a..ee1f16c 100644
--- a/src/_locales/it/messages.json
+++ b/src/_locales/it/messages.json
@@ -495,6 +495,10 @@
"message": "Modifica ed esportazione in formato MP4 non disponibili",
"description": "Descrizione del limite superiore a 5 minuti nell'editor"
},
+ "overLimitLabelDescriptionFastPath": {
+ "message": "Funzionalità di modifica non disponibili",
+ "description": "Over limit description when the recording is a native MP4 (fast recorder / WebCodecs) so MP4 export still works"
+ },
"videoProcessingLabelTitle": {
"message": "Il video è in fase di elaborazione...",
"description": "Etichetta per l'elaborazione video nell'editor"
@@ -1374,7 +1378,7 @@
"description": "Pulsante di conferma della finestra di benvenuto per Pro"
},
"webcodecsToggleLabel": {
- "message": "Fast MP4 (beta)",
+ "message": "Fast MP4",
"description": "WebCodecs recorder toggle label"
},
"webcodecsFailedOffToast": {
diff --git a/src/_locales/ko/messages.json b/src/_locales/ko/messages.json
index 7b5f214..7099784 100644
--- a/src/_locales/ko/messages.json
+++ b/src/_locales/ko/messages.json
@@ -495,6 +495,10 @@
"message": "편집 및 MP4 형식으로 내보내기를 사용할 수 없어요",
"description": "편집기 내에서 5분 이상 제한 설명"
},
+ "overLimitLabelDescriptionFastPath": {
+ "message": "편집 기능을 사용할 수 없어요",
+ "description": "Over limit description when the recording is a native MP4 (fast recorder / WebCodecs) so MP4 export still works"
+ },
"videoProcessingLabelTitle": {
"message": "비디오 처리 중...",
"description": "Video processing label in editor"
@@ -891,6 +895,10 @@
"message": "Screenity는 완전히 개인적이며 로컬에서 실행되므로 디바이스의 하드웨어에 제한됩니다. 이 길이의 비디오를 처리하는 데 시간이 오래 걸리고 많은 리소스를 필요로 할 것입니다. 걱정하지 마세요. 여전히 WEBM 파일이나 원시 녹화를 다운로드할 수 있지만 편집 및 MP4 내보내기는 사용할 수 없습니다. 그럼에도 불구하고, 이 비디오를 처리해 보려고 할 수 있습니다. 단, 위험을 이해하는 경우에만 시도하십시오.",
"description": "5분 이상 제한 모달 설명"
},
+ "overLimitModalDescriptionFastPath": {
+ "message": "Screenity는 완전히 개인적이며 로컬에서 실행되므로 디바이스의 하드웨어에 제한됩니다. 이 길이의 비디오를 처리하는 데 시간이 오래 걸리고 많은 리소스를 필요로 할 것입니다. MP4 파일은 바로 다운로드할 수 있지만, 이 정도 길이의 클립은 브라우저 내 편집이 지원되지 않습니다. 그럼에도 불구하고, 위험을 이해하는 경우에만 이 비디오를 처리해 볼 수 있습니다.",
+ "description": "Over 5 minutes limit modal description when the recording is a native MP4 (fast recorder / WebCodecs)"
+ },
"overLimitModalButton": {
"message": "위험을 이해하고 시도해 보겠습니다",
"description": "5분 이상 제한 모달 버튼"
@@ -1390,7 +1398,7 @@
"description": "Pro 환영 모달 확인 버튼"
},
"webcodecsToggleLabel": {
- "message": "Fast MP4 (beta)",
+ "message": "Fast MP4",
"description": "WebCodecs recorder toggle label"
},
"webcodecsFailedOffToast": {
diff --git a/src/_locales/pl/messages.json b/src/_locales/pl/messages.json
index 54c7597..b0304ec 100644
--- a/src/_locales/pl/messages.json
+++ b/src/_locales/pl/messages.json
@@ -495,6 +495,10 @@
"message": "Edycja i eksport do formatu MP4 są niedostępne",
"description": "Opis limitu powyżej 5 minut w edytorze"
},
+ "overLimitLabelDescriptionFastPath": {
+ "message": "Funkcje edycji są niedostępne",
+ "description": "Over limit description when the recording is a native MP4 (fast recorder / WebCodecs) so MP4 export still works"
+ },
"videoProcessingLabelTitle": {
"message": "Wideo jest przetwarzane...",
"description": "Etykieta przetwarzania wideo w edytorze"
@@ -891,6 +895,10 @@
"message": "Ponieważ Screenity działa w sposób całkowicie prywatny i lokalnie, jest ograniczane przez sprzęt twojego urządzenia. Przetwarzanie filmu o tej długości zajęłoby zbyt dużo czasu i byłoby bardzo intensywne z punktu widzenia zasobów. Nie martw się, nadal możesz pobrać plik WEBM lub surowe nagranie, ale edycja i eksport do formatu MP4 nie są dostępne. Mimo to nadal możesz spróbować przetworzyć film, jeśli rozumiesz związane z tym ryzyko.",
"description": "Opis okna modalnego z limitem ponad 5 minut"
},
+ "overLimitModalDescriptionFastPath": {
+ "message": "Ponieważ Screenity działa w sposób całkowicie prywatny i lokalnie, jest ograniczane przez sprzęt twojego urządzenia. Przetwarzanie filmu o tej długości zajęłoby zbyt dużo czasu i byłoby bardzo intensywne z punktu widzenia zasobów. Twój plik MP4 jest gotowy do pobrania, ale edycja w przeglądarce nie jest dostępna dla tak długich nagrań. Mimo to nadal możesz spróbować przetworzyć film, jeśli rozumiesz związane z tym ryzyko.",
+ "description": "Over 5 minutes limit modal description when the recording is a native MP4 (fast recorder / WebCodecs)"
+ },
"overLimitModalButton": {
"message": "Rozumiem ryzyko, spróbuj mimo to",
"description": "Przycisk okna modalnego z limitem ponad 5 minut"
@@ -1390,7 +1398,7 @@
"description": "Przycisk akcji w oknie powitalnym Pro"
},
"webcodecsToggleLabel": {
- "message": "Fast MP4 (beta)",
+ "message": "Fast MP4",
"description": "WebCodecs recorder toggle label"
},
"webcodecsFailedOffToast": {
@@ -1558,11 +1566,11 @@
"description": "Toast shown when a region recording is stopped by navigation but no chunks were saved"
},
"fastRecorderFailedTitle": {
- "message": "Szybki rejestrator nie powi\u00f3d\u0142 si\u0119",
+ "message": "Szybki rejestrator nie powiódł się",
"description": "Title for the modal shown when the fast MP4 recorder output could not be validated"
},
"fastRecorderFailedDescription": {
- "message": "Wyj\u015bcie szybkiego rejestratora nie mog\u0142o zosta\u0107 zweryfikowane na tym urz\u0105dzeniu.\nMo\u017cesz mimo to pobra\u0107 plik.",
+ "message": "Wyjście szybkiego rejestratora nie mogło zostać zweryfikowane na tym urządzeniu.\nMożesz mimo to pobrać plik.",
"description": "Body text for the fast recorder failure modal"
},
"downloadAnywayButton": {
diff --git a/src/_locales/pt_BR/messages.json b/src/_locales/pt_BR/messages.json
index f090056..35c4ad9 100644
--- a/src/_locales/pt_BR/messages.json
+++ b/src/_locales/pt_BR/messages.json
@@ -495,6 +495,10 @@
"message": "Edição e exportação em formato MP4 não estão disponíveis",
"description": "Descrição de limite de mais de 5 minutos no editor"
},
+ "overLimitLabelDescriptionFastPath": {
+ "message": "Os recursos de edição não estão disponíveis",
+ "description": "Over limit description when the recording is a native MP4 (fast recorder / WebCodecs) so MP4 export still works"
+ },
"videoProcessingLabelTitle": {
"message": "O vídeo está sendo processado...",
"description": "Rótulo de processamento de vídeo no editor"
@@ -891,6 +895,10 @@
"message": "Uma vez que o Screenity é completamente privado e é executado localmente, está limitado pelo hardware do seu dispositivo. O processamento de um vídeo dessa duração levaria muito tempo e seria muito intensivo em recursos. Não se preocupe, você ainda pode baixar o arquivo WEBM ou a gravação bruta, mas a edição e a exportação para MP4 não estão disponíveis. Dito isso, você ainda pode tentar processar o vídeo, mesmo sabendo dos riscos.",
"description": "Descrição do modal de limite superior a 5 minutos"
},
+ "overLimitModalDescriptionFastPath": {
+ "message": "Uma vez que o Screenity é completamente privado e é executado localmente, está limitado pelo hardware do seu dispositivo. O processamento de um vídeo dessa duração levaria muito tempo e seria muito intensivo em recursos. Seu MP4 já está pronto para download, mas a edição no navegador não está disponível para clipes tão longos. Dito isso, você ainda pode tentar processar o vídeo, mesmo sabendo dos riscos.",
+ "description": "Over 5 minutes limit modal description when the recording is a native MP4 (fast recorder / WebCodecs)"
+ },
"overLimitModalButton": {
"message": "Entendo o risco, tentar mesmo assim",
"description": "Botão do modal de limite superior a 5 minutos"
@@ -1390,7 +1398,7 @@
"description": "Botão de ação do modal de boas-vindas ao Pro"
},
"webcodecsToggleLabel": {
- "message": "Fast MP4 (beta)",
+ "message": "Fast MP4",
"description": "WebCodecs recorder toggle label"
},
"webcodecsFailedOffToast": {
@@ -1558,11 +1566,11 @@
"description": "Toast shown when a region recording is stopped by navigation but no chunks were saved"
},
"fastRecorderFailedTitle": {
- "message": "Gravador r\u00e1pido falhou",
+ "message": "Gravador rápido falhou",
"description": "Title for the modal shown when the fast MP4 recorder output could not be validated"
},
"fastRecorderFailedDescription": {
- "message": "A sa\u00edda do gravador r\u00e1pido n\u00e3o p\u00f4de ser validada neste dispositivo.\nVoc\u00ea pode baixar o arquivo mesmo assim.",
+ "message": "A saída do gravador rápido não pôde ser validada neste dispositivo.\nVocê pode baixar o arquivo mesmo assim.",
"description": "Body text for the fast recorder failure modal"
},
"downloadAnywayButton": {
diff --git a/src/_locales/pt_PT/messages.json b/src/_locales/pt_PT/messages.json
index 99dfd8b..f47e8fb 100644
--- a/src/_locales/pt_PT/messages.json
+++ b/src/_locales/pt_PT/messages.json
@@ -495,6 +495,10 @@
"message": "Edição e exportação em formato MP4 não estão disponíveis",
"description": "Descrição de limite superior a 5 minutos no editor"
},
+ "overLimitLabelDescriptionFastPath": {
+ "message": "As funcionalidades de edição não estão disponíveis",
+ "description": "Over limit description when the recording is a native MP4 (fast recorder / WebCodecs) so MP4 export still works"
+ },
"videoProcessingLabelTitle": {
"message": "O vídeo está a ser processado...",
"description": "Rótulo de processamento de vídeo no editor"
@@ -891,6 +895,10 @@
"message": "Uma vez que o Screenity é completamente privado e funciona localmente, está limitado pelo hardware do teu dispositivo. Processar um vídeo com esta duração levaria demasiado tempo e seria muito intensivo em recursos. Não te preocupes, ainda podes descarregar o ficheiro WEBM ou a gravação em bruto, mas a edição e a exportação para MP4 não estão disponíveis. Dito isto, ainda podes tentar processar o vídeo mesmo assim, se compreenderes os riscos.",
"description": "Descrição do modal de limite superior a 5 minutos"
},
+ "overLimitModalDescriptionFastPath": {
+ "message": "Uma vez que o Screenity é completamente privado e funciona localmente, está limitado pelo hardware do teu dispositivo. Processar um vídeo com esta duração levaria demasiado tempo e seria muito intensivo em recursos. O teu MP4 já está pronto para descarregar, mas a edição no navegador não está disponível para clips com esta duração. Dito isto, ainda podes tentar processar o vídeo mesmo assim, se compreenderes os riscos.",
+ "description": "Over 5 minutes limit modal description when the recording is a native MP4 (fast recorder / WebCodecs)"
+ },
"overLimitModalButton": {
"message": "Compreendo o risco, tentar mesmo assim",
"description": "Botão do modal de limite superior a 5 minutos"
@@ -1390,7 +1398,7 @@
"description": "Botão de ação do modal de boas-vindas ao Pro"
},
"webcodecsToggleLabel": {
- "message": "Fast MP4 (beta)",
+ "message": "Fast MP4",
"description": "WebCodecs recorder toggle label"
},
"webcodecsFailedOffToast": {
@@ -1558,11 +1566,11 @@
"description": "Toast shown when a region recording is stopped by navigation but no chunks were saved"
},
"fastRecorderFailedTitle": {
- "message": "Gravador r\u00e1pido falhou",
+ "message": "Gravador rápido falhou",
"description": "Title for the modal shown when the fast MP4 recorder output could not be validated"
},
"fastRecorderFailedDescription": {
- "message": "A sa\u00edda do gravador r\u00e1pido n\u00e3o p\u00f4de ser validada neste dispositivo.\nPode transferir o ficheiro na mesma.",
+ "message": "A saída do gravador rápido não pôde ser validada neste dispositivo.\nPode transferir o ficheiro na mesma.",
"description": "Body text for the fast recorder failure modal"
},
"downloadAnywayButton": {
diff --git a/src/_locales/ru/messages.json b/src/_locales/ru/messages.json
index 64b631a..6e8e4e9 100644
--- a/src/_locales/ru/messages.json
+++ b/src/_locales/ru/messages.json
@@ -495,6 +495,10 @@
"message": "Редактирование и экспорт в формате MP4 недоступны",
"description": "Описание ограничения более 5 минут в редакторе"
},
+ "overLimitLabelDescriptionFastPath": {
+ "message": "Функции редактирования недоступны",
+ "description": "Over limit description when the recording is a native MP4 (fast recorder / WebCodecs) so MP4 export still works"
+ },
"videoProcessingLabelTitle": {
"message": "Видео обрабатывается...",
"description": "Метка обработки видео в редакторе"
@@ -891,6 +895,10 @@
"message": "Поскольку Screenity полностью конфиденциален и работает локально, его возможности ограничены аппаратными ресурсами вашего устройства. Обработка видео такой длины займет слишком много времени и ресурсов. Но не волнуйтесь, вы всё равно можете скачать файл WEBM или оригинальную запись, но редактирование и экспорт в MP4 недоступны. Тем не менее, вы можете попробовать обработать видео, если осознаете риски.",
"description": "Описание модального окна ограничения более 5 минут"
},
+ "overLimitModalDescriptionFastPath": {
+ "message": "Поскольку Screenity полностью конфиденциален и работает локально, его возможности ограничены аппаратными ресурсами вашего устройства. Обработка видео такой длины займет слишком много времени и ресурсов. Ваш файл MP4 готов к скачиванию, но редактирование в браузере недоступно для записей такой длины. Тем не менее, вы можете попробовать обработать видео, если осознаете риски.",
+ "description": "Over 5 minutes limit modal description when the recording is a native MP4 (fast recorder / WebCodecs)"
+ },
"overLimitModalButton": {
"message": "Я понимаю риск, попробовать в любом случае",
"description": "Кнопка модального окна ограничения более 5 минут"
@@ -1390,7 +1398,7 @@
"description": "Кнопка действия в приветственном окне Pro"
},
"webcodecsToggleLabel": {
- "message": "Fast MP4 (beta)",
+ "message": "Fast MP4",
"description": "WebCodecs recorder toggle label"
},
"webcodecsFailedOffToast": {
diff --git a/src/_locales/ta/messages.json b/src/_locales/ta/messages.json
index f8a2bce..ca2392d 100644
--- a/src/_locales/ta/messages.json
+++ b/src/_locales/ta/messages.json
@@ -495,6 +495,10 @@
"message": "திருத்தல் மற்றும் MP4 வடிவம் விரும்பில்லை",
"description": "எடிட்டரில் 5 நிமிடத்திற்குக் கீழ் வரும் விளக்கம்"
},
+ "overLimitLabelDescriptionFastPath": {
+ "message": "திருத்தல் அம்சங்கள் கிடைக்கவில்லை",
+ "description": "Over limit description when the recording is a native MP4 (fast recorder / WebCodecs) so MP4 export still works"
+ },
"videoProcessingLabelTitle": {
"message": "வீடியோ செயலாக்கப்படுகின்றது...",
"description": "வீடியோ செயலாக்க லேபிள் இன் பதிவு"
@@ -891,6 +895,10 @@
"message": "Screenity முழுவதும் தனியாக உழைந்து உழைக்கும் போது, உங்கள் சாதனத்தின் உபகரண வகைகளால் கட்டாயமாக வர்ம்வேர் செய்வது. இந்த நீளம் உள்ள விடியோவை செயல்படுத்துவது மிகவும் நேரம் எடுக்கும் மற்றும் மிகவும் வளர்ச்சியடையும். ஆனால் வேறு பரிமாற்றம் முடியும் என்று கவனிக்கவும், நீங்கள் இந்த அபரிசீலிதம் புரிந்திருந்தால்.",
"description": "5 நிமிட வாரந்தோற்ற உள்ளடக்கம் மோடல் விளக்கம்"
},
+ "overLimitModalDescriptionFastPath": {
+ "message": "Screenity முற்றிலும் தனிப்பட்டதாகவும் உள்ளூரில் இயங்குவதால், உங்கள் சாதன வன்பொருளால் வரையறுக்கப்படுகிறது. இந்த நீளமான வீடியோவை செயலாக்க அதிக நேரம் மற்றும் வளங்கள் தேவைப்படும். உங்கள் MP4 பதிவிறக்கத் தயாராக உள்ளது, ஆனால் இவ்வளவு நீளமான கிளிப்புகளுக்கு உலாவியில் திருத்தம் கிடைக்காது. இருந்தாலும், நீங்கள் அபாயங்களைப் புரிந்தால் வீடியோவை செயலாக்க முயற்சி செய்யலாம்.",
+ "description": "Over 5 minutes limit modal description when the recording is a native MP4 (fast recorder / WebCodecs)"
+ },
"overLimitModalButton": {
"message": "ஞாபகம், அதை முயற்சிக்கவும்",
"description": "5 நிமிட வாரந்தோற்ற உள்ளடக்கம் மோடல் பட்டன்"
@@ -1390,7 +1398,7 @@
"description": "Pro வரவேற்பு தோன்றும் பதிலின் செயல்பாடு பொத்தான்"
},
"webcodecsToggleLabel": {
- "message": "Fast MP4 (beta)",
+ "message": "Fast MP4",
"description": "WebCodecs recorder toggle label"
},
"webcodecsFailedOffToast": {
diff --git a/src/_locales/tr/messages.json b/src/_locales/tr/messages.json
index f66eea1..30220eb 100644
--- a/src/_locales/tr/messages.json
+++ b/src/_locales/tr/messages.json
@@ -495,6 +495,10 @@
"message": "Düzenleme ve MP4 biçiminde dışa aktarma mevcut değil",
"description": "Editörde 5 dakikadan fazla sınır açıklaması"
},
+ "overLimitLabelDescriptionFastPath": {
+ "message": "Düzenleme özellikleri mevcut değil",
+ "description": "Over limit description when the recording is a native MP4 (fast recorder / WebCodecs) so MP4 export still works"
+ },
"videoProcessingLabelTitle": {
"message": "Video işleniyor...",
"description": "Editörde video işleme etiketi"
@@ -891,6 +895,10 @@
"message": "Screenity tamamen özel ve yerel olarak çalıştığı için cihazınızın donanımıyla sınırlıdır. Bu uzunluktaki bir videoyu işlemek çok uzun sürer ve çok fazla kaynak kullanır. Ancak, hala WEBM dosyasını veya ham kaydı indirebilirsiniz, ancak düzenleme ve MP4 dışa aktarma seçenekleri mevcut değildir. Yine de riskleri anlıyorsanız, videoyu işlemeyi deneyebilirsiniz.",
"description": "5 dakika sınırlı modal açıklaması"
},
+ "overLimitModalDescriptionFastPath": {
+ "message": "Screenity tamamen özel ve yerel olarak çalıştığı için cihazınızın donanımıyla sınırlıdır. Bu uzunluktaki bir videoyu işlemek çok uzun sürer ve çok fazla kaynak kullanır. MP4 dosyanız indirilmeye hazır, ancak bu uzunluktaki klipler için tarayıcıda düzenleme yapılamaz. Yine de riskleri anlıyorsanız, videoyu işlemeyi deneyebilirsiniz.",
+ "description": "Over 5 minutes limit modal description when the recording is a native MP4 (fast recorder / WebCodecs)"
+ },
"overLimitModalButton": {
"message": "Riski anladım, yine de dene",
"description": "5 dakika sınırlı modal düğmesi"
@@ -1390,7 +1398,7 @@
"description": "Pro karşılama modali eylem düğmesi"
},
"webcodecsToggleLabel": {
- "message": "Fast MP4 (beta)",
+ "message": "Fast MP4",
"description": "WebCodecs recorder toggle label"
},
"webcodecsFailedOffToast": {
@@ -1558,11 +1566,11 @@
"description": "Toast shown when a region recording is stopped by navigation but no chunks were saved"
},
"fastRecorderFailedTitle": {
- "message": "H\u0131zl\u0131 kay\u0131t ba\u015far\u0131s\u0131z oldu",
+ "message": "Hızlı kayıt başarısız oldu",
"description": "Title for the modal shown when the fast MP4 recorder output could not be validated"
},
"fastRecorderFailedDescription": {
- "message": "H\u0131zl\u0131 kaydedicinin \u00e7\u0131kt\u0131s\u0131 bu cihazda do\u011frulanamad\u0131.\nDosyay\u0131 yine de indirebilirsiniz.",
+ "message": "Hızlı kaydedicinin çıktısı bu cihazda doğrulanamadı.\nDosyayı yine de indirebilirsiniz.",
"description": "Body text for the fast recorder failure modal"
},
"downloadAnywayButton": {
@@ -1570,7 +1578,7 @@
"description": "Button to download the recording file despite validation failure"
},
"cancelButton": {
- "message": "\u0130ptal",
+ "message": "İptal",
"description": "Generic cancel button label"
}
}
diff --git a/src/_locales/uk/messages.json b/src/_locales/uk/messages.json
index 29240a9..d6eb7d2 100644
--- a/src/_locales/uk/messages.json
+++ b/src/_locales/uk/messages.json
@@ -495,6 +495,10 @@
"message": "Редагування та експорт у форматі MP4 недоступні",
"description": "Опис обмеження понад 5 хвилин у редакторі"
},
+ "overLimitLabelDescriptionFastPath": {
+ "message": "Функції редагування недоступні",
+ "description": "Over limit description when the recording is a native MP4 (fast recorder / WebCodecs) so MP4 export still works"
+ },
"videoProcessingLabelTitle": {
"message": "Відео обробляється...",
"description": "Video processing label in editor"
@@ -891,6 +895,10 @@
"message": "Оскільки Screenity цілком приватний і працює локально, він обмежений апаратним забезпеченням вашого пристрою. Обробка відео цієї довжини займе дуже багато часу та буде вимагати значних ресурсів. Однак ви все ще можете завантажити файл WEBM або необроблену запису, але можливості редагування та експорту в MP4 недоступні. Так чи інакше, ви можете спробувати обробити відео, якщо розумієте ризики.",
"description": "Опис модального вікна обмеження понад 5 хвилин"
},
+ "overLimitModalDescriptionFastPath": {
+ "message": "Оскільки Screenity цілком приватний і працює локально, він обмежений апаратним забезпеченням вашого пристрою. Обробка відео цієї довжини займе дуже багато часу та буде вимагати значних ресурсів. Ваш файл MP4 готовий до завантаження, але редагування в браузері недоступне для записів такої довжини. Так чи інакше, ви можете спробувати обробити відео, якщо розумієте ризики.",
+ "description": "Over 5 minutes limit modal description when the recording is a native MP4 (fast recorder / WebCodecs)"
+ },
"overLimitModalButton": {
"message": "Я розумію ризики, все одно спробувати",
"description": "Кнопка модального вікна обмеження понад 5 хвилин"
@@ -1382,7 +1390,7 @@
"description": "Кнопка дії у вікні привітання Pro"
},
"webcodecsToggleLabel": {
- "message": "Fast MP4 (beta)",
+ "message": "Fast MP4",
"description": "WebCodecs recorder toggle label"
},
"webcodecsFailedOffToast": {
diff --git a/src/_locales/zh_CN/messages.json b/src/_locales/zh_CN/messages.json
index e506c8c..3dbce4d 100644
--- a/src/_locales/zh_CN/messages.json
+++ b/src/_locales/zh_CN/messages.json
@@ -495,6 +495,10 @@
"message": "编辑和MP4格式导出不可用",
"description": "编辑器中超过5分钟的限制描述"
},
+ "overLimitLabelDescriptionFastPath": {
+ "message": "编辑功能不可用",
+ "description": "Over limit description when the recording is a native MP4 (fast recorder / WebCodecs) so MP4 export still works"
+ },
"videoProcessingLabelTitle": {
"message": "视频正在处理中...",
"description": "Video processing label in editor"
@@ -887,6 +891,10 @@
"message": "由于Screenity完全私密且在本地运行,它受到您设备硬件的限制。处理这样长度的视频需要很长时间,而且资源消耗很大。但您仍然可以下载WEBM文件或原始录制文件,但无法进行编辑和MP4导出。尽管如此,如果您了解风险,仍然可以尝试处理该视频。",
"description": "超过5分钟限制的模态框描述"
},
+ "overLimitModalDescriptionFastPath": {
+ "message": "由于Screenity完全私密且在本地运行,它受到您设备硬件的限制。处理这样长度的视频需要很长时间,而且资源消耗很大。您的MP4已准备好可以直接下载,但此类长度的视频无法在浏览器中编辑。尽管如此,如果您了解风险,仍然可以尝试处理该视频。",
+ "description": "Over 5 minutes limit modal description when the recording is a native MP4 (fast recorder / WebCodecs)"
+ },
"overLimitModalButton": {
"message": "我理解风险,仍然尝试",
"description": "超过5分钟限制的模态框按钮"
@@ -1386,7 +1394,7 @@
"description": "Pro 欢迎弹窗确认按钮"
},
"webcodecsToggleLabel": {
- "message": "极速 MP4(beta)",
+ "message": "极速 MP4",
"description": "WebCodecs recorder toggle label"
},
"webcodecsFailedOffToast": {
diff --git a/src/_locales/zh_TW/messages.json b/src/_locales/zh_TW/messages.json
index 485fa14..e30febc 100644
--- a/src/_locales/zh_TW/messages.json
+++ b/src/_locales/zh_TW/messages.json
@@ -495,6 +495,10 @@
"message": "編輯功能與 MP4 匯出無法使用",
"description": "Over 5 minutes limit description in editor"
},
+ "overLimitLabelDescriptionFastPath": {
+ "message": "編輯功能無法使用",
+ "description": "Over limit description when the recording is a native MP4 (fast recorder / WebCodecs) so MP4 export still works"
+ },
"videoProcessingLabelTitle": {
"message": "影片正在於本機處理中...",
"description": "Video processing label in editor"
@@ -891,6 +895,10 @@
"message": "由於 Screenity 完全在本機執行來保護隱私,它也受您的裝置硬體限制。處理這個長度的影片會需要太久,並需要大量電腦資源。不用擔心,您還是可以下載 WEBM 檔案或是原始錄影,只是編輯功能與 MP4 匯出會無法使用。雖然是這樣說,如果您瞭解風險您還是可以決定嘗試處理影片。",
"description": "Over 5 minutes limit modal description"
},
+ "overLimitModalDescriptionFastPath": {
+ "message": "由於 Screenity 完全在本機執行來保護隱私,它也受您的裝置硬體限制。處理這個長度的影片會需要太久,並需要大量電腦資源。您的 MP4 已準備好可以直接下載,但這麼長的片段無法在瀏覽器中編輯。雖然是這樣說,如果您瞭解風險您還是可以決定嘗試處理影片。",
+ "description": "Over 5 minutes limit modal description when the recording is a native MP4 (fast recorder / WebCodecs)"
+ },
"overLimitModalButton": {
"message": "我瞭解風險,仍要嘗試",
"description": "Over 5 minutes limit modal button"
@@ -1390,7 +1398,7 @@
"description": "Pro 歡迎視窗確認按鈕"
},
"webcodecsToggleLabel": {
- "message": "快速 MP4(beta)",
+ "message": "快速 MP4",
"description": "WebCodecs recorder toggle label"
},
"webcodecsFailedOffToast": {
diff --git a/src/manifest.json b/src/manifest.json
index 7bdf2f8..f5639fe 100755
--- a/src/manifest.json
+++ b/src/manifest.json
@@ -3,7 +3,7 @@
"name": "__MSG_extName__",
"description": "__MSG_extDesc__",
"default_locale": "en",
- "version": "4.3.6",
+ "version": "4.3.7",
"background": {
"service_worker": "background.bundle.js"
},
diff --git a/src/media/fastRecorderGate.ts b/src/media/fastRecorderGate.ts
index 9e1b526..af7cbe1 100644
--- a/src/media/fastRecorderGate.ts
+++ b/src/media/fastRecorderGate.ts
@@ -1,5 +1,8 @@
declare const chrome: any;
+// @ts-ignore — mediabunny ships types but this file is loose with any
+import { Input, BlobSource, ALL_FORMATS } from "mediabunny";
+
export type FastRecorderProbeResult = {
ok: boolean;
reasons: string[];
@@ -359,156 +362,46 @@ export const validateFastRecorderOutputBlob = async (
reasons.push("unexpected-mime");
}
- let duration = 0;
- let width = 0;
- let height = 0;
- let seekable: { start: number; end: number; length: number } | null = null;
- let frameChecked = false;
- let framePresented = false;
- let blackFrameSuspected = false;
-
if (opts.recordingId) {
details.recordingId = opts.recordingId;
}
- if (typeof document !== "undefined") {
- const timeoutMs = opts.timeoutMs ?? 4000;
- const url = URL.createObjectURL(blob);
- const video = document.createElement("video");
- video.preload = "metadata";
- video.muted = true;
- video.playsInline = true;
-
- try {
- const meta = await new Promise<{ duration: number; width: number; height: number }>(
- (resolve, reject) => {
- const timer = setTimeout(() => {
- reject(new Error("metadata-timeout"));
- }, timeoutMs);
-
- video.onloadedmetadata = () => {
- clearTimeout(timer);
- resolve({
- duration: Number.isFinite(video.duration) ? video.duration : video.duration || 0,
- width: video.videoWidth || 0,
- height: video.videoHeight || 0,
- });
- };
-
- video.onerror = () => {
- clearTimeout(timer);
- reject(new Error("metadata-error"));
- };
-
- video.src = url;
- }
- );
-
- duration = meta.duration;
- width = meta.width;
- height = meta.height;
- details.duration = duration;
- details.width = width;
- details.height = height;
- seekable = {
- length: video.seekable?.length || 0,
- start: video.seekable?.length ? video.seekable.start(0) : 0,
- end: video.seekable?.length ? video.seekable.end(0) : 0,
- };
- details.seekable = seekable;
-
- const durationFinite = Number.isFinite(duration) && duration > 0;
- const seekableOk = seekable && seekable.length > 0 && seekable.end > 0;
-
- if (!durationFinite && !seekableOk) {
- reasons.push("duration-unavailable");
- }
-
- // First frame validation (best-effort)
- let seekTarget = 0.1;
- if (durationFinite) {
- seekTarget = Math.min(0.1, Math.max(0.01, duration / 10));
- } else if (seekableOk) {
- seekTarget = Math.min(seekable!.end - seekable!.start, 0.1) + seekable!.start;
- }
-
- const seekResult = await new Promise<void>((resolve, reject) => {
- const timer = setTimeout(() => reject(new Error("seek-timeout")), timeoutMs);
- const onSeeked = () => {
- clearTimeout(timer);
- resolve();
- };
- const onError = () => {
- clearTimeout(timer);
- reject(new Error("seek-error"));
- };
- video.onseeked = onSeeked;
- video.onerror = onError;
- try {
- video.currentTime = seekTarget;
- } catch (err) {
- clearTimeout(timer);
- reject(err);
- }
- });
-
- void seekResult;
-
- frameChecked = true;
- if (typeof video.requestVideoFrameCallback === "function") {
- await new Promise<void>((resolve) => {
- const timer = setTimeout(() => resolve(), timeoutMs);
- video.requestVideoFrameCallback(() => {
- clearTimeout(timer);
- resolve();
- });
- });
- framePresented = true;
- } else {
- await new Promise((resolve) => setTimeout(resolve, 50));
- framePresented = video.readyState >= HTMLMediaElement.HAVE_CURRENT_DATA;
- }
-
- if (framePresented && width > 0 && height > 0) {
- try {
- const canvas = document.createElement("canvas");
- canvas.width = Math.min(64, width);
- canvas.height = Math.min(64, height);
- const ctx = canvas.getContext("2d");
- if (ctx) {
- ctx.drawImage(video, 0, 0, canvas.width, canvas.height);
- const sample = ctx.getImageData(0, 0, canvas.width, canvas.height).data;
- let bright = 0;
- for (let i = 0; i < sample.length; i += 16) {
- bright += sample[i] + sample[i + 1] + sample[i + 2];
- }
- const avg = bright / (sample.length / 16);
- blackFrameSuspected = avg < 5;
- }
- } catch {
- // ignore pixel sampling errors
- }
- }
-
- details.frameChecked = frameChecked;
- details.framePresented = framePresented;
- details.blackFrameSuspected = blackFrameSuspected;
-
- if (frameChecked && !framePresented) {
- reasons.push("frame-not-presented");
- } else if (blackFrameSuspected) {
- reasons.push("frame-black-suspected");
- }
- } catch (err) {
- details.metadataError = String(err);
- reasons.push("metadata-unavailable");
- } finally {
- URL.revokeObjectURL(url);
+ // Structural validation via the mediabunny demuxer. Handles moov-at-end
+ // (fastStart: false) efficiently, unlike the <video> element which has to
+ // scan the full file. This replaces the earlier <video>.onloadedmetadata +
+ // seek + requestVideoFrameCallback + black-frame pixel sample pipeline —
+ // those were designed around paranoia when we had no other structural check,
+ // and they stacked to ~3-4s of sequential timeouts against fastStart-false
+ // MP4s.
+ try {
+ const demuxInput: any = new Input({
+ formats: ALL_FORMATS,
+ source: new BlobSource(blob),
+ });
+ const demuxTimeoutMs = opts.timeoutMs ?? 2000;
+ const tracks: any[] = await Promise.race([
+ demuxInput.getTracks(),
+ new Promise<any[]>((_, reject) =>
+ setTimeout(() => reject(new Error("demuxer-timeout")), demuxTimeoutMs),
+ ),
+ ]);
+ const videoTracks = tracks.filter((t: any) => t?.type === "video");
+ const audioTracks = tracks.filter((t: any) => t?.type === "audio");
+ details.demuxerVideoTrackCount = videoTracks.length;
+ details.demuxerAudioTrackCount = audioTracks.length;
+ details.demuxerVideoCodec = videoTracks[0]?.codec || null;
+ details.demuxerAudioCodec = audioTracks[0]?.codec || null;
+ const firstVideo = videoTracks[0];
+ if (firstVideo?.isVideoTrack?.()) {
+ details.codedWidth = firstVideo.codedWidth ?? null;
+ details.codedHeight = firstVideo.codedHeight ?? null;
}
- }
-
- if (Number.isFinite(duration) && duration <= 0) {
- reasons.push("duration-zero");
+ if (videoTracks.length === 0) {
+ reasons.push("demuxer-no-video-track");
+ }
+ } catch (err: any) {
+ details.demuxerError = String(err?.message || err);
+ reasons.push("demuxer-error");
}
const videoCodec = opts.videoCodec || "avc1.42E01E";
@@ -516,26 +409,18 @@ export const validateFastRecorderOutputBlob = async (
opts.audioCodec === undefined ? "mp4a.40.2" : opts.audioCodec;
const codecSuffix = audioCodec ? `, ${audioCodec}` : "";
const mp4Mime = `video/mp4; codecs="${videoCodec}${codecSuffix}"`;
- const canPlay = safeCanPlayType(mp4Mime);
- const mseSupported = safeMseSupport(mp4Mime);
- details.canPlayType = canPlay;
- details.mediaSourceSupported = mseSupported;
details.expectedVideoCodec = videoCodec;
details.expectedAudioCodec = audioCodec;
-
- const metadataFailed =
- reasons.includes("metadata-unavailable") ||
- reasons.includes("duration-unavailable");
+ details.canPlayType = safeCanPlayType(mp4Mime);
+ details.mediaSourceSupported = safeMseSupport(mp4Mime);
const hardFail =
reasons.includes("no-blob") ||
reasons.includes("blob-too-small") ||
reasons.includes("unexpected-mime") ||
- // When fastStart is false, metadata can be flaky in some contexts.
- // Only hard-fail metadata issues if the browser also can't play the codec.
- (metadataFailed && !canPlay);
+ reasons.includes("demuxer-no-video-track");
- const ok = reasons.length === 0 || (!hardFail && Boolean(canPlay));
+ const ok = reasons.length === 0;
debugLog("validation result", { ok, hardFail, reasons, details });
diff --git a/src/pages/Background/alarms/handleAlarm.js b/src/pages/Background/alarms/handleAlarm.js
index 4ddf347..19a3f84 100644
--- a/src/pages/Background/alarms/handleAlarm.js
+++ b/src/pages/Background/alarms/handleAlarm.js
@@ -16,6 +16,54 @@ import {
export { FIRST_CHUNK_WATCHDOG_ALARM, RECORDER_KEEPALIVE_ALARM };
+// Best-effort attempt to salvage a recording whose tab missed the watchdog.
+// Sends stop-recording-tab and waits for `video-ready` (the signal that the
+// recorder's normal stop/flush/finalize pipeline succeeded). If the tab is
+// only partially hung (e.g. main thread briefly pinned, background-throttled
+// then resumed), this can recover an otherwise-lost recording. If the tab is
+// truly dead, the timeout fires and the caller proceeds with the error path.
+//
+// For WebCodecs specifically this matters a lot: the muxer only finalizes
+// inside the recorder tab, so without this path the MP4's moov box is never
+// written and chunks on disk are unplayable. For MediaRecorder it still helps
+// by draining any pending in-memory samples that hadn't yet reached IDB.
+const STALL_RECOVERY_TIMEOUT_MS = 5000;
+const attemptStallRecovery = (recordingTabId) => {
+ return new Promise((resolve) => {
+ if (!recordingTabId) {
+ resolve(false);
+ return;
+ }
+ let settled = false;
+ const onMsg = (message) => {
+ if (settled) return;
+ if (message?.type === "video-ready") {
+ settled = true;
+ chrome.runtime.onMessage.removeListener(onMsg);
+ resolve(true);
+ }
+ };
+ chrome.runtime.onMessage.addListener(onMsg);
+ try {
+ chrome.tabs.sendMessage(
+ recordingTabId,
+ { type: "stop-recording-tab", reason: "stall-recovery" },
+ () => {
+ // Swallow lastError — the tab may be unresponsive; the timeout
+ // below is the authoritative signal.
+ void chrome.runtime.lastError;
+ },
+ );
+ } catch {}
+ setTimeout(() => {
+ if (settled) return;
+ settled = true;
+ chrome.runtime.onMessage.removeListener(onMsg);
+ resolve(false);
+ }, STALL_RECOVERY_TIMEOUT_MS);
+ });
+};
+
// Utility to handle tab messaging logic.
// `tab` is an optional Chrome Tab object used as a fallback when the stored
// activeTab is no longer valid (e.g. when called from an action-button click).
@@ -98,24 +146,7 @@ export const handleAlarm = async (alarm) => {
return;
}
- if (stallLevel === 1) {
- diagEvent("recording-stall-escalated", {
- ageMs: age,
- tabId: snap.recordingTab,
- });
- void emitRecordingTelemetry("recording_stall_escalated", {
- ageMs: age,
- tabId: snap.recordingTab,
- });
- // Force-focus causes a brief tab flash but reliably unfreezes hard-throttled tabs.
- try {
- await chrome.tabs.update(snap.recordingTab, { active: true });
- } catch {}
- await chrome.storage.local.set({ recordingStallLevel: 2 });
- return;
- }
-
- if (stallLevel === 2) {
+ if (stallLevel >= 1) {
diagEvent("recording-stall-unrecoverable", {
ageMs: age,
tabId: snap.recordingTab,
@@ -124,6 +155,26 @@ export const handleAlarm = async (alarm) => {
ageMs: age,
tabId: snap.recordingTab,
});
+
+ // Before giving up, ask the recorder tab to run its normal stop
+ // pipeline. A tab that's only partially hung (main thread briefly
+ // pinned, background-throttled then resumed) can still process this
+ // and deliver a valid recording via `video-ready`. For WebCodecs this
+ // is especially important — the muxer only finalizes inside the
+ // recorder tab, so without this pathway the MP4's moov atom is never
+ // written and chunks on disk are unplayable.
+ const recovered = await attemptStallRecovery(snap.recordingTab);
+ if (recovered) {
+ diagEvent("recording-stall-recovered", {
+ ageMs: age,
+ tabId: snap.recordingTab,
+ });
+ try {
+ await chrome.storage.local.set({ recordingStallLevel: 0 });
+ } catch {}
+ return;
+ }
+
void emitRecordingTelemetry("recording_outcome", {
outcome: "unrecoverable",
ageMs: age,
diff --git a/src/pages/Background/recording/chunkHandler.js b/src/pages/Background/recording/chunkHandler.js
index 7c05c26..28938af 100644
--- a/src/pages/Background/recording/chunkHandler.js
+++ b/src/pages/Background/recording/chunkHandler.js
@@ -9,6 +9,15 @@ localforage.config({
version: 1,
});
+// In-memory lock for handleChunks. The previous storage-based `sendingChunks`
+// flag was check-then-set via async chrome.storage calls — two concurrent
+// handleChunks triggers (one from the recorder's stop flow, one from the
+// sandbox's send-chunks-to-sandbox request) could both pass the check before
+// either wrote the flag. That caused duplicate batches to interleave at the
+// sandbox and scramble chunk order. An in-process promise chain is atomic in
+// the SW event loop and strictly serializes handleChunks calls.
+let _sendChain = Promise.resolve();
+
export const chunksStore = localforage.createInstance({ name: "chunks" });
export const localDirectoryStore = localforage.createInstance({
name: "localDirectory",
@@ -24,12 +33,30 @@ export const clearAllRecordings = async () => {
};
export const handleChunks = async (chunks, override = false, target = null) => {
- const { sendingChunks, sandboxTab, bannerSupport } =
- await chrome.storage.local.get([
- "sendingChunks",
- "sandboxTab",
- "bannerSupport",
- ]);
+ // Serialize via in-memory promise chain. Atomic in the SW event loop, so
+ // two concurrent triggers (e.g. the automatic send on stop and the
+ // sandbox's `send-chunks-to-sandbox` request) run back-to-back instead of
+ // overlapping. Prevents duplicate batches from interleaving at the sandbox
+ // and scrambling chunk order. The old storage-based `sendingChunks` flag
+ // is racy — async read + async write leaves a gap where both callers pass.
+ const priorChain = _sendChain;
+ let releaseChain;
+ _sendChain = new Promise((resolve) => {
+ releaseChain = resolve;
+ });
+ try {
+ await priorChain;
+ } catch {}
+
+ // From here down, any early return or throw must still release the lock.
+ // The inner try/finally below covers the main body; this wrapper catches
+ // anything before it (e.g. a failing storage read).
+ let mainCompleted = false;
+ try {
+ const { sandboxTab, bannerSupport } = await chrome.storage.local.get([
+ "sandboxTab",
+ "bannerSupport",
+ ]);
if (DEBUG_POSTSTOP)
console.debug("[Screenity][BG] handleChunks called", {
@@ -38,8 +65,7 @@ export const handleChunks = async (chunks, override = false, target = null) => {
override,
});
- if (sendingChunks) return;
-
+ // Keep the legacy storage flag in sync for anything still reading it.
await chrome.storage.local.set({ sendingChunks: true });
try {
@@ -206,6 +232,13 @@ export const handleChunks = async (chunks, override = false, target = null) => {
}
} finally {
await chrome.storage.local.set({ sendingChunks: false });
+ mainCompleted = true;
+ }
+ } finally {
+ // Release the in-memory lock so queued callers can proceed, regardless of
+ // whether the inner body completed normally.
+ void mainCompleted;
+ if (releaseChain) releaseChain();
}
};
diff --git a/src/pages/Background/recording/recordingHelpers.js b/src/pages/Background/recording/recordingHelpers.js
index 7ede178..c5df4b7 100644
--- a/src/pages/Background/recording/recordingHelpers.js
+++ b/src/pages/Background/recording/recordingHelpers.js
@@ -20,24 +20,14 @@ export const checkCapturePermissions = async ({ isLoggedIn, isSubscribed }) => {
permissions.push("clipboardWrite");
}
- // API objects are exposed before optional_permission is granted - ask the permissions API directly.
- const alreadyGranted = await new Promise((resolve) => {
- chrome.permissions.contains({ permissions }, resolve);
- });
-
- console.log("[Screenity][PermCheck] requested:", permissions, "alreadyGranted:", alreadyGranted);
-
- if (alreadyGranted) {
- addAlarmListener();
- return { status: "ok" };
- }
-
+ // Must be the first await. Any preceding await consumes the user-gesture
+ // context propagated from the content-script click, and Chrome rejects
+ // request() with "must be called during a user gesture" even when all
+ // perms are already granted.
const granted = await new Promise((resolve) => {
chrome.permissions.request({ permissions }, resolve);
});
- console.log("[Screenity][PermCheck] request returned granted:", granted, "lastError:", chrome.runtime.lastError?.message);
-
if (granted) {
addAlarmListener();
return { status: "ok" };
diff --git a/src/pages/CloudRecorder/bunnyTusUploader.js b/src/pages/CloudRecorder/bunnyTusUploader.js
index b6344ad..7d1878c 100644
--- a/src/pages/CloudRecorder/bunnyTusUploader.js
+++ b/src/pages/CloudRecorder/bunnyTusUploader.js
@@ -788,16 +788,69 @@ export default class BunnyTusUploader {
// Prefer stored screenityToken for auth
const token = this.userToken || (await chrome.storage.local.get(["screenityToken"]).then(r => r.screenityToken));
const headers = token ? { Authorization: `Bearer ${token}` } : {};
- const res = await fetch(
- `${API_BASE}/bunny/videos/tus-auth?videoId=${this.videoId}`,
- { headers },
+ const url = `${API_BASE}/bunny/videos/tus-auth?videoId=${this.videoId}`;
+
+ // Internal retry absorbs short backend blips (5xx/408/429/network) so they
+ // don't burn the outer uploadChunk retry budget. Fatal auth errors
+ // (400/401/403) are surfaced immediately — no recovery possible.
+ const MAX_ATTEMPTS = 4;
+ let lastStatus = null;
+ let lastErr = null;
+ for (let attempt = 0; attempt < MAX_ATTEMPTS; attempt++) {
+ let res = null;
+ try {
+ res = await fetch(url, { headers });
+ } catch (err) {
+ lastErr = err;
+ this.emitTelemetry("upload_auth_refresh_failed", {
+ attempt: attempt + 1,
+ status: null,
+ reason: "network",
+ errMsg: String(err?.message || err),
+ });
+ if (attempt === MAX_ATTEMPTS - 1) break;
+ await this._sleepWithJitter(500 * Math.pow(2, attempt));
+ continue;
+ }
+
+ if (res.ok) {
+ const { signature, expires, libraryId } = await res.json();
+ this.signature = signature;
+ this.expires = expires;
+ this.libraryId = libraryId;
+ this.scheduleJournalPersist();
+ return;
+ }
+
+ lastStatus = res.status;
+ const isFatalAuth = res.status === 400 || res.status === 401 || res.status === 403;
+ const isTransient = res.status >= 500 || res.status === 408 || res.status === 429;
+ this.emitTelemetry("upload_auth_refresh_failed", {
+ attempt: attempt + 1,
+ status: res.status,
+ reason: isFatalAuth ? "unauthorized" : isTransient ? "network" : "other",
+ });
+ if (isFatalAuth || !isTransient || attempt === MAX_ATTEMPTS - 1) break;
+ await this._sleepWithJitter(500 * Math.pow(2, attempt));
+ }
+
+ // Build a structured error whose message matches the outer transient regex
+ // (/network/i) for 5xx/blip cases, and stays non-transient for 401/403.
+ const classification =
+ lastStatus === 400 || lastStatus === 401 || lastStatus === 403
+ ? "unauthorized"
+ : "network";
+ const err = new Error(
+ `Failed to refresh TUS auth (${classification} ${lastStatus ?? "offline"})`,
);
- if (!res.ok) throw new Error("Failed to refresh TUS auth");
- const { signature, expires, libraryId } = await res.json();
- this.signature = signature;
- this.expires = expires;
- this.libraryId = libraryId;
- this.scheduleJournalPersist();
+ err.status = lastStatus;
+ err.cause = lastErr || undefined;
+ throw err;
+ }
+
+ _sleepWithJitter(baseMs) {
+ const jitter = Math.random() * 250;
+ return new Promise((r) => setTimeout(r, baseMs + jitter));
}
async initTusUpload() {
@@ -1022,9 +1075,11 @@ export default class BunnyTusUploader {
throw err;
}
const msg = String(err?.message || "");
+ const status = typeof err?.status === "number" ? err.status : null;
const isTransient =
err?.name === "AbortError" || // timeout / stall-recovery
err?.name === "TypeError" || // fetch network failure
+ (status !== null && (status >= 500 || status === 408 || status === 429)) ||
/Upload failed \((?:5\d\d|408|429)\b/.test(msg) ||
/network|Failed to fetch|timeout/i.test(msg);
if (err?.name === "AbortError") {
diff --git a/src/pages/Content/context/ContentState.jsx b/src/pages/Content/context/ContentState.jsx
index 42c45f9..a9054bb 100644
--- a/src/pages/Content/context/ContentState.jsx
+++ b/src/pages/Content/context/ContentState.jsx
@@ -397,24 +397,30 @@ const ContentState = (props) => {
}
}, []);
- const checkChromeCapturePermissionsSW = useCallback(async () => {
- const { isLoggedIn, isSubscribed } = contentStateRef.current;
-
+ // Must be called synchronously from a user-gesture handler so the
+ // activation propagates to the SW via sendMessage. Awaiting the returned
+ // Promise is fine; awaiting anything before invoking this is not.
+ const checkChromeCapturePermissionsSW = useCallback(() => {
+ const { isLoggedIn, isSubscribed } = contentStateRef.current || {};
return new Promise((resolve) => {
chrome.runtime.sendMessage(
- {
- type: "check-capture-permissions",
- isLoggedIn,
- isSubscribed,
- },
+ { type: "check-capture-permissions", isLoggedIn, isSubscribed },
(response) => {
- resolve(response.status === "ok");
+ resolve(Boolean(response && response.status === "ok"));
},
);
});
}, []);
const startStreaming = useCallback(async () => {
+ // Kick off synchronously so the click's user-gesture propagates through
+ // sendMessage into chrome.permissions.request in the SW. Later awaits
+ // (initStartFlowTrace, check-storage-quota for Pro) would consume it.
+ const isExtensionPage = window.location.href.includes("chrome-extension://");
+ const permissionPromise = isExtensionPage
+ ? null
+ : checkChromeCapturePermissionsSW();
+
// Init start-flow trace for this attempt
const attemptId = `ra-${Date.now().toString(36)}-${Math.random().toString(36).slice(2, 8)}`;
await initStartFlowTrace(attemptId, {
@@ -514,10 +520,10 @@ const ContentState = (props) => {
}
// Check if in content script or extension page (Chrome)
- if (window.location.href.includes("chrome-extension://")) {
+ if (isExtensionPage) {
permission = await checkChromeCapturePermissions();
} else {
- permission = await checkChromeCapturePermissionsSW();
+ permission = await permissionPromise;
}
if (!permission) {
@@ -526,9 +532,10 @@ const ContentState = (props) => {
chrome.i18n.getMessage("chromePermissionsModalDescription"),
chrome.i18n.getMessage("chromePermissionsModalAction"),
chrome.i18n.getMessage("chromePermissionsModalCancel"),
- async () => {
- await checkChromeCapturePermissionsSW();
- startStreaming(); // Retry streaming
+ () => {
+ // Direct call so the click's gesture reaches startStreaming's
+ // synchronous permission check.
+ startStreaming();
},
() => {},
null,
@@ -655,7 +662,14 @@ const ContentState = (props) => {
pipEnded: false,
}));
},
- () => {},
+ () => {
+ setStartFlowOutcome("cancelled", { error: "mic-muted-cancel" });
+ setContentState((prevContentState) => ({
+ ...prevContentState,
+ pendingRecording: false,
+ preparingRecording: false,
+ }));
+ },
false,
false,
false,
@@ -997,7 +1011,7 @@ const ContentState = (props) => {
fpsValue: "30",
fastRecorderBeta: null,
fastRecorderStatus: null,
- useWebCodecsRecorder: false,
+ useWebCodecsRecorder: true,
countdownActive: false,
countdownCancelled: false,
multiMode: false,
diff --git a/src/pages/Content/popup/layout/SettingsMenu.jsx b/src/pages/Content/popup/layout/SettingsMenu.jsx
index 10ac53c..1b376cb 100644
--- a/src/pages/Content/popup/layout/SettingsMenu.jsx
+++ b/src/pages/Content/popup/layout/SettingsMenu.jsx
@@ -737,7 +737,7 @@ const SettingsMenu = (props) => {
: {}),
});
}}
- checked={contentState.useWebCodecsRecorder === true}
+ checked={contentState.useWebCodecsRecorder !== false}
>
{chrome.i18n.getMessage("webcodecsToggleLabel")}
<DropdownMenu.ItemIndicator className="ItemIndicator">
diff --git a/src/pages/Recorder/Recorder.jsx b/src/pages/Recorder/Recorder.jsx
index a4e2246..a7aca21 100644
--- a/src/pages/Recorder/Recorder.jsx
+++ b/src/pages/Recorder/Recorder.jsx
@@ -460,11 +460,27 @@ const Recorder = () => {
*/
const startSessionHeartbeat = () => {
if (sessionHeartbeat.current) clearInterval(sessionHeartbeat.current);
- sessionHeartbeat.current = setInterval(() => {
- if (isRecording.current) {
- persistSessionState("recording");
+ // For WebCodecs: the muxer only emits a single chunk at finalize, so
+ // handleChunk can't drive the recording-stall watchdog heartbeat during
+ // the recording. Drive it from here instead — writes lastChunkAt every
+ // 10s, plus firstChunkAt on the first tick (also overwrites any stale
+ // values left from a prior session that hadn't been cleaned up yet).
+ let firstHeartbeat = true;
+ const tick = () => {
+ if (!isRecording.current) return;
+ persistSessionState("recording");
+ if (useWebCodecs.current) {
+ const now = Date.now();
+ const update = { lastChunkAt: now };
+ if (firstHeartbeat) {
+ update.firstChunkAt = now;
+ firstHeartbeat = false;
+ }
+ chrome.storage.local.set(update).catch(() => {});
}
- }, 10000); // Every 10 seconds
+ };
+ tick(); // fire immediately so first heartbeat lands before the 30s stall window
+ sessionHeartbeat.current = setInterval(tick, 10000);
};
/**
@@ -937,7 +953,8 @@ const Recorder = () => {
const { useWebCodecsRecorder } = await chrome.storage.local.get([
"useWebCodecsRecorder",
]);
- const userSetting = useWebCodecsRecorder === true ? true : false;
+ // Default-on as of 4.3.7: treat undefined as enabled; only explicit `false` opts out.
+ const userSetting = useWebCodecsRecorder === false ? false : true;
const stickyState = await getFastRecorderStickyState();
const probeResult = await probeFastRecorderSupport();
const shouldUseFast = shouldUseFastRecorder(
@@ -1032,6 +1049,13 @@ const Recorder = () => {
isRestarting.current = false;
index.current = 0;
+ // Tracks in-flight WebCodecs IDB writes. onChunk fires handleChunk
+ // fire-and-forget, and waitForDrain only covers the MediaRecorder
+ // pending queue — so onFinalized could race ahead of slicing and
+ // rebuild from a partially-written chunksStore. Chain every handleChunk
+ // call here and await this chain in onFinalized.
+ let webcodecsWriteChain = Promise.resolve();
+
const handleChunk = async (data, timestampMs) => {
if (runGeneration !== recordingGeneration.current) {
return;
@@ -1041,24 +1065,58 @@ const Recorder = () => {
data instanceof Blob ? data : new Blob([data], { type: "video/mp4" });
const ts = timestampMs ?? 0;
- const i = index.current;
+
+ // The WebCodecs Mp4 muxer emits the ENTIRE MP4 as a single chunk at
+ // finalize(). For long recordings that can be 50+ MB. Two problems if
+ // we store it as one IDB entry:
+ // 1. chrome.runtime.sendMessage (used to relay chunks base64-encoded
+ // to the sandbox) has a ~64MB serialization limit. base64 adds
+ // 33% overhead, so a 50MB raw chunk becomes ~67MB base64 → fails.
+ // 2. Encoding a huge blob to base64 via FileReader in the SW is
+ // slow and memory-heavy.
+ // Split into smaller slices at IDB write time. Downstream paths
+ // (rebuildBlobFromChunks + BG sendChunks + sandbox handleBatch)
+ // all concatenate parts, so slicing is transparent to them.
+ const SLICE_SIZE = 2 * 1024 * 1024;
try {
- await chunksStore.setItem(`chunk_${i}`, {
- index: i,
- chunk: blob,
- timestamp: ts,
- });
- index.current = i + 1;
- if (!hasChunks.current) {
- // Cancel first-chunk watchdog
- chrome.runtime
- .sendMessage({ type: "cancel-first-chunk-watchdog" })
- .catch(() => {});
+ let offset = 0;
+ let isFirstSlice = true;
+ while (offset < blob.size || (offset === 0 && blob.size === 0)) {
+ const i = index.current;
+ const end = Math.min(offset + SLICE_SIZE, blob.size);
+ const slice =
+ blob.size <= SLICE_SIZE && offset === 0
+ ? blob
+ : blob.slice(offset, end, blob.type || "video/mp4");
+ await chunksStore.setItem(`chunk_${i}`, {
+ index: i,
+ chunk: slice,
+ timestamp: ts,
+ });
+ if (isFirstSlice) {
+ // Update watchdog heartbeat. Without this, the recording-stall
+ // detector in handleAlarm.js sees lastChunkAt as null, computes
+ // a huge age, and fires stall-unrecoverable at ~30s — killing
+ // every WebCodecs recording silently.
+ const heartbeatUpdate = { lastChunkAt: Date.now() };
+ if (i === 0) heartbeatUpdate.firstChunkAt = Date.now();
+ chrome.storage.local.set(heartbeatUpdate).catch(() => {});
+ if (!hasChunks.current) {
+ chrome.runtime
+ .sendMessage({ type: "cancel-first-chunk-watchdog" })
+ .catch(() => {});
+ }
+ hasChunks.current = true;
+ isFirstSlice = false;
+ }
+ index.current = i + 1;
+ savedCount.current += 1;
+ if (blob.size === 0) break;
+ offset = end;
}
- hasChunks.current = true;
- savedCount.current += 1;
+ const i = index.current - 1;
if (DEBUG_RECORDER) {
debug("WebCodecs chunk saved", {
i,
@@ -1178,6 +1236,9 @@ const Recorder = () => {
onFinalized: async () => {
debug("WebCodecsRecorder onFinalized()");
await waitForDrain();
+ try {
+ await webcodecsWriteChain;
+ } catch {}
await updateFreeFinalizeStatus("chunks_ready", 95);
let validation = null;
try {
@@ -1207,6 +1268,14 @@ const Recorder = () => {
useWebCodecsRecorder: false,
lastWebCodecsFailureAt: Date.now(),
lastWebCodecsFailureCode: "validation-failed",
+ // Persistent record survives subsequent recording starts
+ // (which clear fastRecorderValidation), so we can always
+ // inspect why sticky-disable was triggered.
+ lastFailedValidation: {
+ at: Date.now(),
+ recordingId,
+ validation,
+ },
});
const hardFail = Boolean(validation.hardFail);
await chrome.storage.local.set({
@@ -1259,7 +1328,9 @@ const Recorder = () => {
timestampMs,
});
}
- handleChunk(blob, timestampMs);
+ webcodecsWriteChain = webcodecsWriteChain
+ .catch(() => {})
+ .then(() => handleChunk(blob, timestampMs));
},
onError: (err) => {
debugError("WebCodecsRecorder error", err);
@@ -1367,8 +1438,8 @@ const Recorder = () => {
}
}
- recorder.current.start(1000);
- debug("MediaRecorder.start(1000) called");
+ recorder.current.start(5000);
+ debug("MediaRecorder.start(5000) called");
// Start first-chunk watchdog (8s, via chrome.alarms)
chrome.runtime
@@ -1634,7 +1705,14 @@ const Recorder = () => {
const items = [];
await chunksStore.ready();
await chunksStore.iterate((value) => (items.push(value), undefined));
- items.sort((a, b) => (a.timestamp ?? 0) - (b.timestamp ?? 0));
+ // Primary sort by timestamp, tiebreak by index. Necessary since the
+ // WebCodecs slicing path writes multiple slices with the same timestamp
+ // (they all belong to the single muxer-emitted chunk).
+ items.sort((a, b) => {
+ const dt = (a.timestamp ?? 0) - (b.timestamp ?? 0);
+ if (dt !== 0) return dt;
+ return (a.index ?? 0) - (b.index ?? 0);
+ });
const parts = items.map((c) =>
c.chunk instanceof Blob ? c.chunk : new Blob([c.chunk]),
);
diff --git a/src/pages/Recorder/webcodecs/WebCodecsRecorder.js b/src/pages/Recorder/webcodecs/WebCodecsRecorder.js
index 1c3c4f0..b7c7f2a 100644
--- a/src/pages/Recorder/webcodecs/WebCodecsRecorder.js
+++ b/src/pages/Recorder/webcodecs/WebCodecsRecorder.js
@@ -52,6 +52,8 @@ export class WebCodecsRecorder {
this._videoFrameIndex = 0;
this._videoStartUs = null;
this._frameDurationUs = null;
+ this._lastKeyFrameIndex = 0;
+ this._keyFrameIntervalFrames = 60;
this.audioSamplesWritten = 0;
this.audioSampleRate = null;
@@ -99,6 +101,7 @@ export class WebCodecsRecorder {
this._videoFrameIndex = 0;
this._videoStartUs = null;
this._frameDurationUs = null;
+ this._lastKeyFrameIndex = 0;
this.audioSamplesWritten = 0;
if (this.running) return this._startPromise;
@@ -157,6 +160,7 @@ export class WebCodecsRecorder {
const fps = this.options.fps || 30;
this._frameDurationUs = Math.round(1_000_000 / fps);
+ this._keyFrameIntervalFrames = Math.max(30, Math.round(fps * 2));
const safeBitrate = this.options.videoBitrate || 10_000_000;
const overrideConfig =
@@ -327,6 +331,9 @@ export class WebCodecsRecorder {
this.err("[WCR] Error while waiting for loops:", err);
}
+ // First flush: drain all queued audio and video from the main recording.
+ // This is what makes audioSamplesWritten a reliable basis for computing
+ // the final audio track duration below.
try {
if (this.videoEncoder && this.videoEncoder.state !== "closed") {
await this.videoEncoder.flush();
@@ -339,6 +346,69 @@ export class WebCodecsRecorder {
this.options.onError?.(err);
}
+ // Now encode trailing hold frames sized to cover the final audio track
+ // end. Done after the first flush so all queued audio has been emitted and
+ // audioSamplesWritten reflects the true audio track duration. Without
+ // these, the audio track extends past the last video sample and players
+ // render the gap as a black frame at the very end.
+ //
+ // We encode MULTIPLE hold frames (not one long-duration frame) because
+ // encoders don't always preserve VideoFrame.duration on the output chunk —
+ // a single hold frame with claimed duration=150ms may get written to MP4
+ // with duration=0 or the default frameDuration, leaving the track at its
+ // pre-hold end. With multiple frames, the muxer derives each sample's
+ // duration from the NEXT sample's timestamp, which is naturally correct.
+ if (
+ this.videoEncoder &&
+ this.videoEncoder.state !== "closed" &&
+ this.resizeCanvas &&
+ this._videoFrameIndex > 0 &&
+ this._frameDurationUs
+ ) {
+ try {
+ const sampleRate = this.audioSampleRate || 48000;
+ const audioEndUs =
+ this.audioSamplesWritten > 0
+ ? Math.round((this.audioSamplesWritten * 1_000_000) / sampleRate)
+ : 0;
+ const holdStartUs = this._videoFrameIndex * this._frameDurationUs;
+ // Generous cushion covers both audio-encoder drain lag and any
+ // muxer-side rounding. 150ms is imperceptible to a user scrubbing to
+ // the end; they see the last captured frame held briefly.
+ const cushionUs = 150_000;
+ const targetEndUs = Math.max(
+ holdStartUs + this._frameDurationUs,
+ audioEndUs + cushionUs,
+ );
+ const framesNeeded = Math.max(
+ 1,
+ Math.ceil((targetEndUs - holdStartUs) / this._frameDurationUs),
+ );
+ for (let k = 0; k < framesNeeded; k += 1) {
+ const tsUs = this._videoFrameIndex * this._frameDurationUs;
+ const hold = new VideoFrame(this.resizeCanvas, {
+ timestamp: tsUs,
+ duration: this._frameDurationUs,
+ });
+ this.videoEncoder.encode(hold, {
+ timestamp: tsUs,
+ keyFrame: false,
+ });
+ hold.close();
+ this._videoFrameIndex += 1;
+ }
+ // Second flush: drain the hold frames.
+ await this.videoEncoder.flush();
+ this.log("[WCR] trailing hold frames encoded", {
+ holdStartUs,
+ audioEndUs,
+ framesNeeded,
+ });
+ } catch (err) {
+ this.warn("[WCR] trailing hold frames failed:", err);
+ }
+ }
+
try {
if (this.muxer) {
await this.muxer.finalize();
@@ -418,6 +488,7 @@ export class WebCodecsRecorder {
this._videoFrameIndex = 0;
this._videoStartUs = null;
this._frameDurationUs = null;
+ this._lastKeyFrameIndex = 0;
this.audioSamplesWritten = 0;
this.audioSampleRate = null;
@@ -521,6 +592,20 @@ export class WebCodecsRecorder {
test.configure(config);
test.close();
this.log("[WCR] Selected encoder:", c.codec, c.hw);
+ try {
+ chrome.storage.local.set({
+ fastRecorderSelectedEncoder: {
+ codec: c.codec,
+ hw: c.hw,
+ containerCodec: c.containerCodec,
+ width,
+ height,
+ fps,
+ bitrate,
+ at: Date.now(),
+ },
+ });
+ } catch {}
return {
config,
codec: c.codec,
@@ -612,7 +697,11 @@ export class WebCodecsRecorder {
duration: frameDurationUs,
});
- const keyFrame = i === 0 || (this.justResumed && i === startIndex);
+ const keyFrame =
+ i === 0 ||
+ (this.justResumed && i === startIndex) ||
+ i - this._lastKeyFrameIndex >= this._keyFrameIntervalFrames;
+ if (keyFrame) this._lastKeyFrameIndex = i;
if (this.justResumed && i === startIndex) {
this.justResumed = false;
}
@@ -640,7 +729,17 @@ export class WebCodecsRecorder {
this.err("[WCR] video loop error:", err);
}
- this.log("[WCR] video loop exit", this.frameCount);
+ this.log("[WCR] video loop exit", this.frameCount, "running=", this.running);
+ // If the loop exits while we still think we're recording, the video source
+ // died unexpectedly. Stop the audio loop too so the output file's audio
+ // track doesn't extend past the last video frame. Don't fire onError —
+ // the partial recording is still valid; let the user's stop flow finalize.
+ if (this.running) {
+ this.warn(
+ "[WCR] video loop exited early while running; stopping audio loop",
+ );
+ this.running = false;
+ }
}
async readAudioLoop() {
diff --git a/src/pages/Region/Recorder.jsx b/src/pages/Region/Recorder.jsx
index ee646ab..067417a 100644
--- a/src/pages/Region/Recorder.jsx
+++ b/src/pages/Region/Recorder.jsx
@@ -629,7 +629,8 @@ const Recorder = () => {
const { useWebCodecsRecorder } = await chrome.storage.local.get([
"useWebCodecsRecorder",
]);
- const userSetting = useWebCodecsRecorder === true ? true : false;
+ // Default-on as of 4.3.7: treat undefined as enabled; only explicit `false` opts out.
+ const userSetting = useWebCodecsRecorder === false ? false : true;
const stickyState = await getFastRecorderStickyState();
const probeResult = await probeFastRecorderSupport();
const shouldUseFast = shouldUseFastRecorder(
@@ -1101,7 +1102,7 @@ const Recorder = () => {
const switched = await startMediaRecorderWithCodec("vp8");
if (switched && recorder.current instanceof MediaRecorder) {
try {
- recorder.current.start(1000);
+ recorder.current.start(5000);
setTimeout(() => {
try { recorder.current?.requestData?.(); } catch (_) {}
}, 250);
@@ -1195,7 +1196,7 @@ const Recorder = () => {
const isMediaRecorder = recorder.current instanceof MediaRecorder;
if (isMediaRecorder) {
try {
- recorder.current.start(1000);
+ recorder.current.start(5000);
// Force an early first chunk so even very short recordings have
// data in IndexedDB before the user can navigate away.
setTimeout(() => {
diff --git a/src/pages/Sandbox/context/ContentState.jsx b/src/pages/Sandbox/context/ContentState.jsx
index 6b93a68..1acfda4 100644
--- a/src/pages/Sandbox/context/ContentState.jsx
+++ b/src/pages/Sandbox/context/ContentState.jsx
@@ -610,12 +610,21 @@ const ContentState = (props) => {
const reconstructVideo = async (withBlob) => {
// Sniff MIME type from magic bytes (WebCodecs chunks are MP4, not WebM).
+ // `base64ToUint8Array` returns Blob for data-URL inputs and Uint8Array for
+ // raw base64 — handle both. A Blob has .size; a Uint8Array has .length.
let inferredType = "video/webm; codecs=vp8,opus";
if (!withBlob && videoChunks.current.length > 0) {
try {
const head = videoChunks.current[0];
- if (head && head.length >= 8) {
- const magic = new TextDecoder().decode(head.slice(4, 8));
+ const headLen = head?.length ?? head?.size ?? 0;
+ if (head && headLen >= 8) {
+ let magic = "";
+ const slice = head.slice(4, 8);
+ if (slice instanceof Blob) {
+ magic = await slice.text();
+ } else if (slice instanceof Uint8Array) {
+ magic = new TextDecoder().decode(slice);
+ }
if (magic === "ftyp") {
inferredType = "video/mp4";
}
@@ -662,7 +671,6 @@ const ContentState = (props) => {
elapsedMs: Date.now() - reconstructStartedAt,
type: blob?.type || null,
});
-
if (blob.type === "video/mp4") {
if (DEBUG_RECORDER)
console.log("[Screenity][Sandbox] reconstructVideo: fast MP4 path taken", {
@@ -706,6 +714,10 @@ const ContentState = (props) => {
rawBlob: blob,
isFfmpegRunning: false,
noffmpeg: false,
+ // Native MP4 from WebCodecs: trim/crop go through mediabunny streaming
+ // ops, and mute/add-audio have their own 15-min cap. 7 min is a
+ // leftover from the ffmpeg.wasm era — bump to 15 min to match.
+ editLimit: Math.max(prev.editLimit || 0, 900),
}));
// Extract duration, width, height
@@ -995,24 +1007,32 @@ const ContentState = (props) => {
try {
await Promise.all(
chunks.map(async (chunk) => {
- // contentStateRef is sync — chunkCount.current lags a render cycle.
- if (contentStateRef.current.chunkIndex >= contentStateRef.current.chunkCount) {
- return; // Skip processing
- }
-
const chunkData = base64ToUint8Array(chunk.chunk);
+ // Place at declared index instead of pushing in arrival order.
+ // Makes reassembly correct even when:
+ // - Messages arrive out of order (concurrent BG sendChunks)
+ // - The same chunk is delivered twice (idempotent: same slot,
+ // same content)
+ // - Batches interleave across multiple BG senders
+ const idx =
+ typeof chunk.index === "number" && chunk.index >= 0
+ ? chunk.index
+ : videoChunks.current.length;
+ const alreadyFilled = videoChunks.current[idx] != null;
if (DEBUG_POSTSTOP)
- console.debug("[Screenity][Sandbox] handleBatch pushing chunk", {
- index: chunk.index,
- size: chunkData?.size || null,
+ console.debug("[Screenity][Sandbox] handleBatch slot", {
+ index: idx,
+ size: chunkData?.size || chunkData?.length || null,
+ duplicate: alreadyFilled,
});
- videoChunks.current.push(chunkData);
-
- // Assuming setContentState doesn't need to be awaited
- setContentState((prevState) => ({
- ...prevState,
- chunkIndex: prevState.chunkIndex + 1,
- }));
+ videoChunks.current[idx] = chunkData;
+ if (!alreadyFilled) {
+ // Only count new slots toward progress; duplicates don't advance.
+ setContentState((prevState) => ({
+ ...prevState,
+ chunkIndex: prevState.chunkIndex + 1,
+ }));
+ }
}),
);
diff --git a/src/pages/Sandbox/layout/player/Content.js b/src/pages/Sandbox/layout/player/Content.js
index 22849b1..ad07ef8 100644
--- a/src/pages/Sandbox/layout/player/Content.js
+++ b/src/pages/Sandbox/layout/player/Content.js
@@ -19,7 +19,7 @@ const Content = () => {
{contentState.mode === "player" && <VideoPlayer />}
{contentState.mode === "crop" && <CropperWrap />}
</div>
- <HelpButton />
+ {contentState.mode === "crop" && <HelpButton />}
{contentState.bannerSupport && <ProBanner />}
</div>
);
diff --git a/src/pages/Sandbox/layout/player/RightPanel.js b/src/pages/Sandbox/layout/player/RightPanel.js
index 6462505..813ac24 100644
--- a/src/pages/Sandbox/layout/player/RightPanel.js
+++ b/src/pages/Sandbox/layout/player/RightPanel.js
@@ -259,26 +259,99 @@ const RightPanel = () => {
chrome.i18n.getMessage("rawRecordingModalDescription"),
chrome.i18n.getMessage("rawRecordingModalButton"),
chrome.i18n.getMessage("sandboxEditorCancelButton"),
- () => {
+ async () => {
const s = contentStateRef.current;
- const blob = s.rawBlob;
+ const blob = s.rawBlob || s.blob;
if (!blob) {
- console.error("[Screenity][WebM] raw download: no rawBlob available");
+ console.error("[Screenity] raw download: no rawBlob available");
+ chrome.runtime.sendMessage({
+ type: "show-toast",
+ message: chrome.i18n.getMessage("rawRecordingModalTitle") + ": no data",
+ });
return;
}
- const url = window.URL.createObjectURL(blob);
const ext = blob.type.includes("mp4") ? "mp4" : "webm";
+ const filename = `raw-recording.${ext}`;
+
+ // Base64-via-BG is the most reliable path from a sandboxed page —
+ // works in Brave, works when blob-URL downloads are restricted, and
+ // doesn't depend on chrome.downloads being accessible from here.
+ // This is the escape hatch, so prioritize reliability over speed.
+ const fallbackViaBackground = async () => {
+ const base64 = await new Promise((resolve, reject) => {
+ const reader = new FileReader();
+ reader.onloadend = () => resolve(reader.result);
+ reader.onerror = () => reject(reader.error);
+ reader.readAsDataURL(blob);
+ });
+ chrome.runtime.sendMessage({
+ type: "request-download",
+ base64,
+ title: filename,
+ });
+ };
- chrome.downloads.download(
- {
- url: url,
- filename: `raw-recording.${ext}`,
- },
- () => {
- window.URL.revokeObjectURL(url);
+ try {
+ const url = window.URL.createObjectURL(blob);
+ const downloadId = await new Promise((resolve, reject) => {
+ try {
+ chrome.downloads.download({ url, filename }, (id) => {
+ if (chrome.runtime.lastError || !id) {
+ reject(
+ chrome.runtime.lastError ||
+ new Error("download returned no id"),
+ );
+ } else {
+ resolve(id);
+ }
+ });
+ } catch (err) {
+ reject(err);
+ }
+ });
+ // chrome.downloads.onChanged can tell us if the download was
+ // interrupted (not user-cancel). Same pattern as the main download
+ // flow in ContentState.jsx.
+ const interruptHandler = async (delta) => {
+ if (delta.id !== downloadId || !delta.state) return;
+ if (
+ delta.state.current === "interrupted" &&
+ delta.error?.current !== "USER_CANCELED"
+ ) {
+ chrome.downloads.onChanged.removeListener(interruptHandler);
+ try {
+ await fallbackViaBackground();
+ } catch (err) {
+ console.error("[Screenity] raw download fallback failed:", err);
+ }
+ } else if (
+ delta.state.current === "complete" ||
+ delta.state.current === "interrupted"
+ ) {
+ chrome.downloads.onChanged.removeListener(interruptHandler);
+ window.URL.revokeObjectURL(url);
+ }
+ };
+ chrome.downloads.onChanged.addListener(interruptHandler);
+ } catch (err) {
+ console.warn(
+ "[Screenity] raw download direct path failed, using fallback:",
+ err,
+ );
+ try {
+ await fallbackViaBackground();
+ } catch (fallbackErr) {
+ console.error(
+ "[Screenity] raw download fallback failed:",
+ fallbackErr,
+ );
+ chrome.runtime.sendMessage({
+ type: "show-toast",
+ message: chrome.i18n.getMessage("rawRecordingModalTitle") + ": failed",
+ });
}
- );
+ }
},
() => {}
);
@@ -435,7 +508,11 @@ const RightPanel = () => {
{chrome.i18n.getMessage("overLimitLabelTitle")}
</div>
<div className={styles.buttonDescription}>
- {chrome.i18n.getMessage("overLimitLabelDescription")}
+ {contentState.blob?.type === "video/mp4"
+ ? chrome.i18n.getMessage(
+ "overLimitLabelDescriptionFastPath"
+ )
+ : chrome.i18n.getMessage("overLimitLabelDescription")}
</div>
</div>
<div
@@ -445,7 +522,11 @@ const RightPanel = () => {
if (typeof contentState.openModal === "function") {
contentState.openModal(
chrome.i18n.getMessage("overLimitModalTitle"),
- chrome.i18n.getMessage("overLimitModalDescription"),
+ chrome.i18n.getMessage(
+ contentState.blob?.type === "video/mp4"
+ ? "overLimitModalDescriptionFastPath"
+ : "overLimitModalDescription"
+ ),
chrome.i18n.getMessage("overLimitModalButton"),
chrome.i18n.getMessage("sandboxEditorCancelButton"),
() => {
@@ -506,7 +587,12 @@ const RightPanel = () => {
</div>
)}
- {!contentState.fallback && contentState.editErrorType === "too-long" && (
+ {!contentState.fallback &&
+ contentState.editErrorType === "too-long" &&
+ !(
+ contentState.duration > contentState.editLimit &&
+ !contentState.override
+ ) && (
<div className={styles.alert}>
<div className={styles.buttonLeft}>
<ReactSVG src={URL + "editor/icons/alert.svg"} />
@@ -763,6 +849,25 @@ const RightPanel = () => {
</div>
</div>
)}
+ {(() => {
+ // WebCodecs / fast-recorder path produces a native MP4 blob.
+ // Downloading it is just a blob-URL anchor click — no ffmpeg,
+ // no re-encoding — so the editLimit and noffmpeg gates don't
+ // apply. Detect via blob MIME and unblock accordingly.
+ const isNativeMp4 =
+ contentState.blob?.type === "video/mp4";
+ const mp4Disabled = isNativeMp4
+ ? contentState.isFfmpegRunning || !contentState.mp4ready
+ : contentState.isFfmpegRunning ||
+ contentState.noffmpeg ||
+ !contentState.mp4ready;
+ const mp4ShowNotAvailable = isNativeMp4
+ ? false
+ : contentState.updateChrome ||
+ contentState.noffmpeg ||
+ (contentState.duration > contentState.editLimit &&
+ !contentState.override);
+ return (
<div
role="button"
className={styles.button}
@@ -770,12 +875,7 @@ const RightPanel = () => {
if (!contentState.mp4ready) return;
contentState.download();
}}
- disabled={
- contentState.isFfmpegRunning ||
- contentState.noffmpeg ||
- !contentState.mp4ready ||
- contentState.noffmpeg
- }
+ disabled={mp4Disabled}
>
<div className={styles.buttonLeft}>
<ReactSVG src={URL + "editor/icons/download.svg"} />
@@ -787,12 +887,11 @@ const RightPanel = () => {
: chrome.i18n.getMessage("downloadMP4ButtonTitle")}
</div>
<div className={styles.buttonDescription}>
- {contentState.offline && !contentState.ffmpegLoaded
+ {contentState.offline &&
+ !contentState.ffmpegLoaded &&
+ !isNativeMp4
? chrome.i18n.getMessage("noConnectionLabel")
- : contentState.updateChrome ||
- contentState.noffmpeg ||
- (contentState.duration > contentState.editLimit &&
- !contentState.override)
+ : mp4ShowNotAvailable
? getNotAvailableLabel()
: contentState.mp4ready && !contentState.isFfmpegRunning
? chrome.i18n.getMessage("downloadMP4ButtonDescription")
@@ -803,6 +902,8 @@ const RightPanel = () => {
<ReactSVG src={URL + "editor/icons/right-arrow.svg"} />
</div>
</div>
+ );
+ })()}
{!contentState.fallback && (
<div
role="button"
diff --git a/src/pages/utils/buildDiagnosticZip.js b/src/pages/utils/buildDiagnosticZip.js
index 7de7323..f139b26 100644
--- a/src/pages/utils/buildDiagnosticZip.js
+++ b/src/pages/utils/buildDiagnosticZip.js
@@ -16,6 +16,11 @@ const FAST_RECORDER_KEYS = [
"fastRecorderValidation",
"fastRecorderValidationFailed",
"fastRecorderInUse",
+ "fastRecorderSelectedEncoder",
+ "useWebCodecsRecorder",
+ "lastWebCodecsFailureAt",
+ "lastWebCodecsFailureCode",
+ "lastFailedValidation",
];
export const buildDiagnosticZip = async ({