How himadrijunior/panitube works
PaniTube is an Android YouTube and YouTube Music client. Its main path runs from a user selecting or searching for media, through browse/search and playback presenters, to the player and ongoing playback state. Downloads, music features, account access, casting, and settings are other documented capabilities. The supplied excerpts establish only some links; dashed links mark important workflows whose implementation was not sampled.
Main entry points: PlaybackPresenter.java Playback coordinator · Video.java Media model · BrowsePresenter.java Browse feeds · SearchPresenter.java Search
Components 25
Browse and search
- Browse feeds
common/src/main/java/com/liskovsoft/smartyoutubetv2/common/app/presenters/BrowsePresenter.java - Search
common/src/main/java/com/liskovsoft/smartyoutubetv2/common/app/presenters/SearchPresenter.java - Channels
common/src/main/java/com/liskovsoft/smartyoutubetv2/common/app/presenters/ChannelPresenter.java - Media model
common/src/main/java/com/liskovsoft/smartyoutubetv2/common/app/models/data/Video.java - Playlist model
common/src/main/java/com/liskovsoft/smartyoutubetv2/common/app/models/data/Playlist.java
Playback
- Playback coordinator
common/src/main/java/com/liskovsoft/smartyoutubetv2/common/app/presenters/PlaybackPresenter.java - Playback view
common/src/main/java/com/liskovsoft/smartyoutubetv2/common/app/views/PlaybackView.java - Player engine
common/src/main/java/com/liskovsoft/smartyoutubetv2/common/app/models/playback/manager/PlayerEngine.java - Track selection
common/src/main/java/com/liskovsoft/smartyoutubetv2/common/exoplayer/selector/FormatItem.java - Up next
common/src/main/java/com/liskovsoft/smartyoutubetv2/common/app/models/playback/controllers/SuggestionsController.java - Playback history
common/src/main/java/com/liskovsoft/smartyoutubetv2/common/app/models/playback/service/VideoStateService.java - Background playback
mobile/src/stmobile/java/com/newtube/mobile/ui/playback/MobilePlaybackService.java
Music experience
- Music mode
mobile/src/stmobile/java/com/newtube/mobile/ui/meetune/MeeTune.java - Karaoke
mobile/src/stmobile/java/com/newtube/mobile/ui/meetune/KaraokeEngine.java - Android Auto
mobile/src/stmobile/java/com/newtube/mobile/car/CarMediaService.java
Offline and integrations
- Download manager
mobile/src/stmobile/java/com/newtube/mobile/downloads/MobileDownloadService.java - Download registry
mobile/src/stmobile/java/com/newtube/mobile/downloads/DownloadRegistry.java - Casting
mobile/src/stmobile/java/com/newtube/mobile/casting/CastSessionService.java
App and preferences
- Navigation sections
common/src/main/java/com/liskovsoft/smartyoutubetv2/common/app/presenters/service/SidebarService.java - View routing
common/src/main/java/com/liskovsoft/smartyoutubetv2/common/app/views/ViewManager.java - App preferences
common/src/main/java/com/liskovsoft/smartyoutubetv2/common/prefs/AppPrefs.java - General settings
common/src/main/java/com/liskovsoft/smartyoutubetv2/common/prefs/GeneralData.java
Other components
- Viewer
- YouTube services
- Android device
Connections 27
- Viewer → Browse feeds: opens feeds
- Viewer → Search: searches
- Viewer → Channels: opens channel
- Browse feeds → Media model: presents media
- Search → Media model: returns media
- Channels → Media model: presents media
- Viewer → Playback coordinator: selects media
- Playback coordinator → Media model: opens video
common/src/main/java/com/liskovsoft/smartyoutubetv2/common/misc/StreamReminderService.java - Playback coordinator → Playback view: routes playback
common/src/main/java/com/liskovsoft/smartyoutubetv2/common/app/presenters/PlaybackPresenter.java - Playback coordinator → Up next: registers controller
common/src/main/java/com/liskovsoft/smartyoutubetv2/common/app/presenters/PlaybackPresenter.java - Playback view → Player engine: runs player
- Player engine → Track selection: uses formats
common/src/main/java/com/liskovsoft/smartyoutubetv2/common/app/models/playback/manager/PlayerEngine.java - Playback coordinator → Playback history: saves progress
- Android device → Background playback: controls playback
mobile/src/stmobile/java/com/newtube/mobile/ui/playback/MobilePlaybackService.java - Background playback → Playback coordinator: notifies controls
mobile/src/stmobile/java/com/newtube/mobile/ui/playback/MobilePlaybackService.java - Viewer → Music mode: switches music
- Music mode → Karaoke: offers karaoke
- Android Auto → Music mode: uses music catalog
mobile/src/stmobile/java/com/newtube/mobile/car/CarMediaService.java - Viewer → Download manager: requests download
- Download manager → Download registry: uses registry
mobile/src/stmobile/java/com/newtube/mobile/downloads/MobileDownloadService.java - Viewer → Casting: casts media
- YouTube services → Browse feeds: supplies feeds
- YouTube services → Search: answers queries
- Viewer → Navigation sections: customizes sections
- Navigation sections → General settings: persists section state
common/src/main/java/com/liskovsoft/smartyoutubetv2/common/app/presenters/service/SidebarService.java - General settings → App preferences: stores profile data
common/src/main/java/com/liskovsoft/smartyoutubetv2/common/prefs/GeneralData.java - Playback coordinator → View routing: routes views
common/src/main/java/com/liskovsoft/smartyoutubetv2/common/app/views/ViewManager.java