Skip to content

Fixed camera Capture and added dock performance update

Choose a tag to compare

@jackhallloween21 jackhallloween21 released this 01 Sep 10:45
· 16 commits to main since this release
f9a53ac
Docked Control Bar Below Camera Window

Fixed Camera Live Feed Lag & High Resolution Choking
Resolution Tuning: Set default camera pipeline streaming resolution to 1080p Full HD (1920x1080) or 720p HD (1280x720) instead of picking the massive raw sensor sizes (like 12.5 MP / 4080x3072), which choked Wi-Fi bandwidth.
Configurable Pipeline Parameters: Added options for Framerate (60 fps / 30 fps) and Bitrate (8 Mbps Balanced / 12 Mbps High Quality / 4 Mbps Low Latency)
Docked Control Bar Below Camera Window
Docking Integration: Enabled docked control bar under the camera scrcpy preview window (type=camera), styled and sized to the camera aspect ratio via computeDockLayout in 

main.js
.
Dedicated Camera Actions:
🔄 Switch Cam: Seamlessly flips between front and back camera (or cycles through available sensor IDs).
🔄 Rotate: Rotates camera stream orientation in 90° increments.
🎙️ Mic: Toggles audio forwarding from the phone's microphone with active state indicators.
📸 Capture: Takes high-resolution photo from the live camera stream.
🔴 Record / Stop rec: Records hardware-encoded camera video directly to .mp4 on the PC.
Stop: Stops the camera session and closes the docked bar.
Fixed Photo Capture & Video Recording
Photo Capture: Fixed camera:capturePhoto in 

main.js
 to capture the actual camera stream from the scrcpy window via desktopCapturer at full resolution (instead of taking screenshots of the phone's Android OS desktop).
Video Recording: Fixed camera:recordStart and camera:recordStop to stream and record hardware-encoded video directly to your chosen .mp4 destination via scrcpy's native --record flag with zero latency.