Document KAMAZ NDI Android fullscreen update
This commit is contained in:
parent
36c1af722d
commit
3734db5419
6 changed files with 86 additions and 3 deletions
|
|
@ -0,0 +1,39 @@
|
|||
# 2026-05-26 KAMAZ NDI Android Display Fullscreen Update
|
||||
|
||||
## Project
|
||||
|
||||
`kamaz-ndi-android-display`
|
||||
|
||||
## Summary
|
||||
|
||||
The Android NDI receiver was updated so the app runs fullscreen, renders the NDI stream centered without changing aspect ratio, and auto-hides both the top controls and bottom debug diagnostics after 5 seconds. Tapping the screen shows the controls and diagnostics again for another 5 seconds.
|
||||
|
||||
## Repository Work
|
||||
|
||||
- Local repo: `C:\git\kamaz-ndi-android-display`
|
||||
- Commit created locally:
|
||||
- `e0fd779 Add fullscreen NDI display mode`
|
||||
- Files changed:
|
||||
- `app/src/main/java/com/example/ndireceiver/MainActivity.java`
|
||||
- `app/src/main/cpp/native-lib.cpp`
|
||||
- `app/src/main/cpp/CMakeLists.txt`
|
||||
- `app/build.gradle`
|
||||
- Debug APK output filename:
|
||||
- `ndiReciver.apk`
|
||||
|
||||
## Verification
|
||||
|
||||
- Build succeeded with `assembleDebug`.
|
||||
- APK path:
|
||||
- `C:\git\kamaz-ndi-android-display\app\build\outputs\apk\debug\ndiReciver.apk`
|
||||
- Installed with `adb install -r`.
|
||||
- Launched `com.example.ndireceiver/.MainActivity` on Pixel 9 Pro.
|
||||
- Runtime logs showed source `QORE (KamDash)`, `1280x720`, around `30 fps`.
|
||||
|
||||
## Blocker
|
||||
|
||||
Push to the Android remote failed because SSH to `192.168.1.66:22` timed out:
|
||||
|
||||
`wuu@192.168.1.66:kamaz-ndi-android-display.git`
|
||||
|
||||
Retry `git push origin master` from `C:\git\kamaz-ndi-android-display` when the local Git server is reachable.
|
||||
|
|
@ -12,3 +12,21 @@ Next handoff:
|
|||
|
||||
- Test high-bandwidth NDI receiver over wired Ethernet on the target phone/tablet.
|
||||
- Add role/source persistence for left mirror, right mirror, and dashboard.
|
||||
|
||||
## 2026-05-26
|
||||
|
||||
- Updated local repo `C:\git\kamaz-ndi-android-display`.
|
||||
- Added fullscreen/immersive Android behavior.
|
||||
- Changed OpenGL ES rendering to preserve NDI frame aspect ratio, center the image, and clear unused areas to black.
|
||||
- Top source controls and bottom debug diagnostics now hide after 5 seconds and reappear for 5 seconds when the user taps the screen.
|
||||
- Made the debug APK output filename `ndiReciver.apk`.
|
||||
- Build verified with `assembleDebug`.
|
||||
- Installed and launched `ndiReciver.apk` on a Pixel 9 Pro through `adb`.
|
||||
- Runtime log showed `QORE (KamDash)` at `1280x720` and about `30 fps`.
|
||||
- Local Android commit: `e0fd779 Add fullscreen NDI display mode`.
|
||||
- Push to `wuu@192.168.1.66:kamaz-ndi-android-display.git` failed because SSH to `192.168.1.66:22` timed out.
|
||||
|
||||
Next handoff:
|
||||
|
||||
- Retry `git push origin master` from `C:\git\kamaz-ndi-android-display` when the local Git server is reachable.
|
||||
- Leave `.vscode/` untracked unless the user explicitly wants editor settings committed.
|
||||
|
|
|
|||
|
|
@ -6,4 +6,11 @@ The Android app began from the NDI 6 Android SDK example folder:
|
|||
|
||||
The original SDK example files remain in the repository for reference. The Android Studio project lives alongside them.
|
||||
|
||||
The current implementation is still a development/debug build. It contains a visible source selector and diagnostics overlay. Production mirror mode should hide these controls and auto-connect to the assigned source.
|
||||
The current implementation is still a development/debug build. It contains a source selector and diagnostics overlay. As of 2026-05-26 these controls auto-hide after 5 seconds and reappear for 5 seconds on screen tap.
|
||||
|
||||
Build/deploy details observed on 2026-05-26:
|
||||
|
||||
- Android SDK used: `C:\Users\post\vscode\ndiAndroidReciver\.android-sdk`
|
||||
- NDI SDK used: `C:\Program Files\NDI\NDI 6 SDK (Android)`
|
||||
- Debug APK: `C:\git\kamaz-ndi-android-display\app\build\outputs\apk\debug\ndiReciver.apk`
|
||||
- Test device: Pixel 9 Pro, visible to ADB as model `Pixel_9_Pro`
|
||||
|
|
|
|||
|
|
@ -13,6 +13,12 @@
|
|||
- `c576996 Initial KAMAZ NDI Android display project`
|
||||
- Local path on `wuu` Windows:
|
||||
- `C:\Program Files\NDI\NDI 6 SDK (Android)\Examples\C++\NDIlib_Recv_FrameSync_timing`
|
||||
- Active local path used on 2026-05-26:
|
||||
- `C:\git\kamaz-ndi-android-display`
|
||||
- Current local-only commit as of 2026-05-26:
|
||||
- `e0fd779 Add fullscreen NDI display mode`
|
||||
- Push status:
|
||||
- `git push origin master` failed on 2026-05-26 because `192.168.1.66:22` timed out.
|
||||
|
||||
## Access
|
||||
|
||||
|
|
|
|||
|
|
@ -3,13 +3,19 @@
|
|||
## Current State
|
||||
|
||||
- Initial Android/NDK NDI receiver project exists.
|
||||
- Current active local working path used on 2026-05-26:
|
||||
- `C:\git\kamaz-ndi-android-display`
|
||||
- Local working path on `wuu` Windows machine:
|
||||
- `C:\Program Files\NDI\NDI 6 SDK (Android)\Examples\C++\NDIlib_Recv_FrameSync_timing`
|
||||
- Remote bare repository created on `192.168.1.66`:
|
||||
- `wuu@192.168.1.66:kamaz-ndi-android-display.git`
|
||||
- physical path: `/home/wuu/kamaz-ndi-android-display.git`
|
||||
- Initial commit pushed:
|
||||
- Initial commit pushed earlier:
|
||||
- `c576996 Initial KAMAZ NDI Android display project`
|
||||
- Local commit not pushed as of 2026-05-26 because `192.168.1.66:22` timed out:
|
||||
- `e0fd779 Add fullscreen NDI display mode`
|
||||
- Debug APK output is named:
|
||||
- `C:\git\kamaz-ndi-android-display\app\build\outputs\apk\debug\ndiReciver.apk`
|
||||
|
||||
## Verified
|
||||
|
||||
|
|
@ -17,12 +23,15 @@
|
|||
- LXC `101` is `git-stereowallnd`.
|
||||
- SSH as `wuu@192.168.1.66` works from the current Windows machine using public-key auth.
|
||||
- The repository was initialized as a bare Git repository and pushed from the local project.
|
||||
- On 2026-05-26, `assembleDebug` succeeded using local SDK `C:\Users\post\vscode\ndiAndroidReciver\.android-sdk` and NDI SDK `C:\Program Files\NDI\NDI 6 SDK (Android)`.
|
||||
- `ndiReciver.apk` was installed with `adb install -r` and launched on a Pixel 9 Pro.
|
||||
- Runtime logs showed NDI source `QORE (KamDash)` at `1280x720`, about `30 fps`.
|
||||
|
||||
## Next Actions
|
||||
|
||||
- Test high-bandwidth NDI over wired Ethernet on phone and tablet.
|
||||
- Add persistent role/source binding for left mirror, right mirror, and dashboard.
|
||||
- Add production mode that hides controls and diagnostics overlay.
|
||||
- Retry `git push origin master` when `192.168.1.66:22` is reachable; local branch is one commit ahead at `e0fd779`.
|
||||
- Start dashboard UI prototype and define vehicle telemetry input.
|
||||
|
||||
## Safety
|
||||
|
|
|
|||
|
|
@ -18,10 +18,12 @@ The current implemented slice is a native Android NDI receiver for mirror/video
|
|||
|
||||
- Receive one NDI source.
|
||||
- Render full-screen with minimal latency.
|
||||
- Preserve video aspect ratio; center the NDI image and use black bars rather than stretching.
|
||||
- Prefer wired Ethernet for production.
|
||||
- Use maximum image quality over Ethernet.
|
||||
- Keep stale queued frames from accumulating visible latency.
|
||||
- Show diagnostics during development: source FPS, app FPS, render time, NDI dropped frames, queue depth.
|
||||
- Hide the top controls and bottom diagnostics after 5 seconds; tapping the screen shows them again for 5 seconds.
|
||||
|
||||
## Current Implementation Notes
|
||||
|
||||
|
|
@ -29,6 +31,8 @@ The current implemented slice is a native Android NDI receiver for mirror/video
|
|||
- Native C++ initializes NDI, discovers sources, receives frames, and renders.
|
||||
- NDI receiver uses high-bandwidth mode for production quality.
|
||||
- Video color path uses UYVY and OpenGL ES shader conversion to RGB.
|
||||
- OpenGL rendering uses the Android surface size separately from the frame size and computes a centered viewport to avoid distortion.
|
||||
- Debug APK output is configured as `ndiReciver.apk`.
|
||||
- Audio is not captured.
|
||||
|
||||
## Dashboard Future Scope
|
||||
|
|
|
|||
Reference in a new issue