Conversation
Drop adb reverse. Accessory bulk carries length-prefixed H.264 access units into MediaCodec, and every tablet's HTTP tunnel uses the daemon port.
LAN login terminates on 127.0.0.1 just like the AOA proxy. Annex-B over USB runs only when that port is the accessory proxy, so Wi-Fi keeps ExoPlayer.
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.
Summary
USB video no longer depends on
adb reverse. The host sends length-prefixed H.264 access units on the Android Open Accessory bulk pipe, and the tablet decodes them with MediaCodec. HTTP session and input still ride the accessory TCP proxy. MPEG-TS/ExoPlayer stays the Wi-Fi path through the LAN TLS proxy.The second commit keeps that proxy from being mistaken for USB. LAN login also uses
127.0.0.1, so Annex-B over USB runs only when the port is the accessory proxy.Test plan
R52M70X9DNM,R52N40APCBZ) stream over USB withkind=Aoa, toolbarvaapi · USB, and a live picture.adb reverse --listis empty. Health reportsusb_devices: 2.https://127.0.0.1:8790/client/opens a session, draws a 2560×1600 canvas, and showsVAAPI delay 3ms.192.168.39.191) pair and play with ExoPlayer, not the USB player.UsbLoopbackTestand AOA frame unit tests pass.