How fahriadison/nanaplay works
NanaPlay is an Android GeForce NOW client with a console-style interface, customizable controls, queue and network features, and music/browser/media extras. The main user journey is to open the app, browse and launch a cloud game, then play through the streaming experience; the README documents these capabilities, but the excerpts do not show the complete launch path. The repository also contains substantial OpenNOW desktop/native-streamer and controller-library code, represented separately. Relationships below are limited to explicit README statements and source-index references.
Main entry points: gstreamer_pipeline.rs WebRTC pipeline · gstreamer_liveness.rs Stream liveness · MainActivity.kt App entry · sdp.rs SDP handling
Components 32
Android client
- App entry
android/app/src/main/java/com/opencloudgaming/opennow/MainActivity.kt - App state
android/app/src/main/java/com/opencloudgaming/opennow/OpenNowViewModel.kt - Console UI
android/app/src/main/java/com/opencloudgaming/opennow/OpenNowScreens.kt - Settings UI
android/app/src/main/java/com/opencloudgaming/opennow/OpenNowSettingsScreens.kt - Input mapping
android/keymap/src/main/java/com/papahchan/nanaplay/keymap/KeymapMapper.kt
Streaming experience
- GeForce NOW API
android/app/src/main/java/com/opencloudgaming/opennow/GfnApi.kt - Queue handling
android/app/src/main/java/com/opencloudgaming/opennow/QueueLaunchStatus.kt - Network tuning
android/app/src/main/java/com/opencloudgaming/opennow/NetworkConditionAdaptor.kt - Stream session
android/app/src/main/java/com/opencloudgaming/opennow/Streaming.kt - Video decoder
android/app/src/main/java/com/opencloudgaming/opennow/LowLatencyVideoDecoder.kt - Touch controls
android/app/src/main/java/com/opencloudgaming/opennow/NativeTouchGames.kt
Media and extras
- Music player
android/app/src/main/java/com/opencloudgaming/opennow/NanaMusicPlayer.kt - Music service
android/app/src/main/java/com/opencloudgaming/opennow/NanaMusicPlaybackService.kt - Floating browser
android/app/src/main/java/com/opencloudgaming/opennow/NanaBrowserPanel.kt - Stream recording
android/app/src/main/java/com/opencloudgaming/opennow/AndroidStreamRecorder.kt
Desktop client
- Controller library
opennow-stable/src/renderer/src/components/controllerMode/ControllerLibraryPage.tsx - Library events
opennow-stable/src/renderer/src/components/controllerMode/controllerLibrary/useControllerLibraryEvents.ts - Game derivations
opennow-stable/src/renderer/src/components/controllerMode/controllerLibrary/useControllerLibraryGameDerivations.ts - Playtime tracking
opennow-stable/src/renderer/src/utils/usePlaytime.ts
Native streamer
- Streamer process
native/opennow-streamer/src/main.rs - Streamer backend
native/opennow-streamer/src/backend.rs - GStreamer backend
native/opennow-streamer/src/gstreamer_backend.rs - WebRTC pipeline
native/opennow-streamer/src/gstreamer_pipeline.rs - Pipeline config
native/opennow-streamer/src/gstreamer_config.rs - Stream input
native/opennow-streamer/src/gstreamer_input.rs - Stream liveness
native/opennow-streamer/src/gstreamer_liveness.rs - Platform support
native/opennow-streamer/src/gstreamer_platform.rs - Video transitions
native/opennow-streamer/src/gstreamer_transitions.rs - Streamer protocol
native/opennow-streamer/src/protocol.rs - SDP handling
native/opennow-streamer/src/sdp.rs - Input encoding
native/opennow-streamer/src/input.rs
Other components
- Player
Connections 31
- Player → App entry: opens
README.md - App entry → App state: observes state
android/app/src/main/java/com/opencloudgaming/opennow/MainActivity.kt - App entry → Input mapping: maps keys
android/app/src/main/java/com/opencloudgaming/opennow/MainActivity.kt - Player → Console UI: browses and launches
README.md - Player → Queue handling: waits in queue
README.md - Player → Network tuning: plays on variable networks
README.md - Player → Stream session: plays cloud games
README.md - Player → Touch controls: customizes controls
README.md - Player → Music player: plays music
README.md - Music service → Music player: uses player
android/app/src/main/java/com/opencloudgaming/opennow/NanaMusicPlaybackService.kt - Player → Floating browser: opens browser
README.md - Player → Stream recording: records stream
README.md - Controller library → Library events: handles navigation
opennow-stable/src/renderer/src/components/controllerMode/ControllerLibraryPage.tsx - Controller library → Game derivations: derives game lists
opennow-stable/src/renderer/src/components/controllerMode/ControllerLibraryPage.tsx - Game derivations → Playtime tracking: reads playtime
opennow-stable/src/renderer/src/components/controllerMode/controllerLibrary/useControllerLibraryGameDerivations.ts - Streamer process → Streamer backend: creates backend
native/opennow-streamer/src/main.rs - Streamer process → GStreamer backend: dispatches commands
native/opennow-streamer/src/main.rs - GStreamer backend → WebRTC pipeline: manages pipeline
native/opennow-streamer/src/gstreamer_backend.rs - WebRTC pipeline → Pipeline config: reads configuration
native/opennow-streamer/src/gstreamer_pipeline.rs - WebRTC pipeline → Stream input: configures input
native/opennow-streamer/src/gstreamer_pipeline.rs - WebRTC pipeline → Stream liveness: uses liveness
native/opennow-streamer/src/gstreamer_pipeline.rs - WebRTC pipeline → Platform support: uses platform support
native/opennow-streamer/src/gstreamer_pipeline.rs - WebRTC pipeline → Video transitions: uses transitions
native/opennow-streamer/src/gstreamer_pipeline.rs - WebRTC pipeline → Streamer protocol: emits protocol events
native/opennow-streamer/src/gstreamer_pipeline.rs - WebRTC pipeline → SDP handling: uses SDP
native/opennow-streamer/src/gstreamer_pipeline.rs - Stream liveness → WebRTC pipeline: configures queues
native/opennow-streamer/src/gstreamer_liveness.rs - Stream liveness → Video transitions: resolves transitions
native/opennow-streamer/src/gstreamer_liveness.rs - Stream liveness → Streamer protocol: emits events
native/opennow-streamer/src/gstreamer_liveness.rs - Stream input → Input encoding: encodes input
native/opennow-streamer/src/gstreamer_input.rs - SDP handling → Input encoding: uses input types
native/opennow-streamer/src/sdp.rs - SDP handling → Streamer protocol: uses protocol types
native/opennow-streamer/src/sdp.rs