Refactor recording with robust codec detection and pause/resume support#37
Merged
katahiromz merged 7 commits intomainfrom Dec 17, 2025
Merged
Conversation
Co-authored-by: katahiromz <2107452+katahiromz@users.noreply.github.com>
Co-authored-by: katahiromz <2107452+katahiromz@users.noreply.github.com>
Co-authored-by: katahiromz <2107452+katahiromz@users.noreply.github.com>
Co-authored-by: katahiromz <2107452+katahiromz@users.noreply.github.com>
Co-authored-by: katahiromz <2107452+katahiromz@users.noreply.github.com>
Co-authored-by: katahiromz <2107452+katahiromz@users.noreply.github.com>
Owner
|
@copilot これでreact-record-webcamが録画できるときはsimple-cameraでも録画できるんだよな? |
Copilot
AI
changed the title
[WIP] Refactor and enhance recording functionality in simple-camera
Refactor recording with robust codec detection and pause/resume support
Dec 17, 2025
Contributor
Author
はい、その通りです。simple-cameraはreact-record-webcamと同じコーデック検出ロジック( さらに、simple-cameraはより堅牢です:
つまり、react-record-webcamが録画できる環境ではsimple-cameraも録画でき、さらに一部の環境ではsimple-cameraの方がより良いコーデックを選択できます。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Improves recording functionality by integrating best practices from
samuelweckstrom/react-record-webcam: robust codec detection, granular state management, and pause/resume capability.Changes
New codec detection system (
src/components/codec.ts)nullfor browser default when no candidate is supportedEnhanced recording state management
RecordingStatustype:idle | recording | paused | stopping | errorPause/resume functionality
pauseRecording()andresumeRecording()using MediaRecorder APIImproved audio/video stream handling
onerrorhandlerFiles Changed
src/components/codec.ts(new): 156 lines - codec detection utilitiessrc/components/AdvancedCamera.tsx: Enhanced recording functions, state managementREADME.md: Recording features documentationBackward compatible - no breaking changes.
Original prompt
This pull request was created from Copilot chat.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.