Skip to content

Conversation

@vangie
Copy link
Contributor

@vangie vangie commented Sep 10, 2025

@mingshun

cd packages/cli
make binary && ./gbox server restart -f

@vangie vangie requested a review from mingshun September 10, 2025 10:29
@vangie vangie force-pushed the vangie/implement-scrcpy-web branch from 8f2e1f6 to 158e85b Compare September 10, 2025 10:36
- Add new implementations of scrcpy to support web usage.
…adb_expose commands to utilize new client-server architecture
@vangie vangie force-pushed the vangie/implement-scrcpy-web branch from 88fcc99 to 47dd505 Compare September 12, 2025 08:38
- Introduced a global verbose flag to enable detailed logging.
- Refactored logging in control stream handling to utilize the new logger.
- Updated WebRTC client to include ping measurement for latency tracking.
- Improved UI components in live view for better user interaction and visibility.
- Adjusted CSS styles for a more responsive layout and enhanced user experience.
- Updated device connection handling to utilize a new bridge manager for WebRTC.
- Introduced new transport layers for H.264 and MSE streaming.
- Refactored existing code to improve modularity and maintainability.
- Added new utility functions for random string generation and verbose logging.
- Enhanced the live view interface with improved layout and functionality.
- Updated various components to support new streaming modes and improved user experience.
- Added support for new audio codec options in H.264 streaming mode.
- Improved logging for audio stream processing and connection handling.
- Refactored device connection logic to provide better error handling and debugging information.
- Updated live view components to reflect changes in streaming modes and improve user experience.
- Removed unused MSE client code to streamline the codebase.
- Implemented touch, key, and scroll event handling in the ControlService using scrcpy for device source management.
- Added video reset event handling to improve device control capabilities.
- Refactored event handling methods to include error logging and device source validation.
- Updated AndroidLiveView component to support new mouse and touch event bindings for H264 mode.
- Enhanced H264Client to manage control WebSocket connections and send control actions for improved interactivity.
- Updated logging in ClipboardHandler, ControlService, KeyHandler, ScrollHandler, and TouchHandler to include debug-level messages for better traceability.
- Improved error handling in audio streaming by implementing connection health monitoring and reconnection logic.
- Refactored WebMMuxer to streamline error handling and improve logging during audio frame writing.
- Enhanced MSEAudioProcessor with detailed error logging and reconnection strategies for improved streaming reliability.
@vangie vangie force-pushed the vangie/implement-scrcpy-web branch from c977e81 to 3f755ef Compare September 22, 2025 01:10
vangie and others added 8 commits September 22, 2025 14:34
…H264Client

- Updated AndroidLiveView to dynamically adjust video dimensions based on H264 client's canvas size and orientation.
- Improved resizing strategy to prioritize screen space utilization in both landscape and portrait modes.
- Enhanced H264Client with a resize observer and orientation change handling for better responsiveness to device resolution changes.
- Added logging for resolution changes and canvas updates to improve debugging and user experience.
…ming

- Replaced standard log calls with a structured logger in ControlService and TouchHandler for improved log management.
- Enhanced logging in HandleTouchEvent and HandleVideoResetEvent to include detailed context for better traceability.
- Updated API handlers to streamline device action handling and improve error responses.
- Refactored streaming handlers to utilize the new logger for better debugging and error reporting.
- Improved device connection handling in DeviceHandlers for better clarity and maintainability.
- Bumped Go version to 1.24.0 and updated various dependencies for better performance and security.
- Enhanced logging in ControlService to provide clearer context during touch event handling.
- Refactored audio streaming logic to support new codec options and improve error handling.
- Removed unused MSE transport code to streamline the codebase and improve maintainability.
- Updated API handlers to include new device streaming functionality.
…ionality

- Replaced ADBRouter with ADBExposeRouter for better organization of ADB expose routes.
- Updated APIHandlers to streamline device management by directly delegating to DeviceHandlers.
- Removed deprecated streaming router and integrated streaming logic directly into device handlers.
- Enhanced device control and streaming implementations for improved performance and clarity.
- Improved logging and error handling across device management endpoints.
- Added functions to set HTTP headers for WebM and raw Opus audio streaming.
- Introduced a new method to start streaming responses with appropriate headers.
- Refactored audio handling in DeviceHandlers to streamline AAC streaming implementation.
- Removed deprecated streaming test file and related streaming logic for improved clarity and maintainability.
… transport implementation

- Deleted ControlHandler and ControlHandlerWrapper for H.264 and WebRTC as they are no longer needed.
- Updated WebRTC transport to directly use the shared control handler for improved clarity and maintainability.
- Refactored device handlers to utilize a new method for retrieving ADB devices, enhancing code organization.
- Removed unused streaming utility functions to clean up the codebase.
…port implementation

- Deleted fMP4StreamWriter and its associated test file to simplify the codebase.
- Removed fMP4 streaming handler and related logic from device handlers for improved clarity and maintainability.
- Updated device handlers to utilize new streaming methods, enhancing overall organization and performance.
@mingshun mingshun force-pushed the vangie/implement-scrcpy-web branch from 6503d4c to f0fc583 Compare October 22, 2025 05:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants