feat: Add WinCaster remote control features for Winhanced companion app#1550
Open
theLastGuppy wants to merge 1 commit intomoonlight-stream:masterfrom
Open
Conversation
WinCaster enables seamless game streaming to Android TVs by providing:
- TCP Command Service (WinCasterCommandService.java):
- Listens on port 47990 for JSON commands from Winhanced
- Handles stream, stop, status, and ping commands
- Runs as foreground service with specialUse type
- mDNS Advertiser (WinCasterAdvertiser.java):
- Advertises _wincaster._tcp service on network
- Uses NsdManager on Android 14+, jmDNS on older versions
- Includes TXT records: name (device model), version, platform
- Deep Link Handler (WinCasterDeepLinkActivity.java):
- Handles wincaster://stream?host=X&uuid=Y&name=Z&app=A URLs
- Looks up host in paired computers and starts streaming
- Boot Receiver (WinCasterBootReceiver.java):
- Starts WinCasterCommandService on device boot
- Handles BOOT_COMPLETED, LOCKED_BOOT_COMPLETED, QUICKBOOT_POWERON
- Package/branding updates:
- Changed namespace/applicationId to com.winhanced.wincaster
- Changed app name to "WinCaster"
- Removed root flavor (not needed for TV use case)
- Set version to 1.0.0
- AndroidManifest updates:
- Added RECEIVE_BOOT_COMPLETED, FOREGROUND_SERVICE,
FOREGROUND_SERVICE_SPECIAL_USE permissions
- Registered all new components
- PcView.java updates:
- Starts WinCasterCommandService and WinCasterAdvertiser on launch
- ComputerManagerService updates:
- Added getComputers() method for listing paired hosts
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.
WinCaster enables seamless game streaming to Android TVs by providing:
TCP Command Service (WinCasterCommandService.java):
mDNS Advertiser (WinCasterAdvertiser.java):
Deep Link Handler (WinCasterDeepLinkActivity.java):
Boot Receiver (WinCasterBootReceiver.java):
Package/branding updates:
AndroidManifest updates:
PcView.java updates:
ComputerManagerService updates: