How aleixrodriala/newtube works
NewTube is an Android phone and tablet YouTube client built on SmartTube’s media-service engine. Users browse or search for videos, open one in the app’s player, and can sign in to load account-based content; the app also supports offline downloads and casting. Playback includes background controls and configurable tracks, while SponsorBlock, DeArrow, and dislike estimates are documented capabilities. The graph combines README-documented behavior with the supplied source excerpts and index; unsampled subsystem links are omitted where their callers were not shown.
Main entry points: PlaybackPresenter.java Playback presenter · MobileDownloadService.java Offline downloads · BrowsePresenter.java Browse and search · DetailsPresenter.java Video details
Components 21
App experience
- Browse and search
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 - Video details
common/src/main/java/com/liskovsoft/smartyoutubetv2/common/app/presenters/DetailsPresenter.java - View navigation
common/src/main/java/com/liskovsoft/smartyoutubetv2/common/app/views/ViewManager.java
Playback and media
- Playback presenter
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/TrackSelectorManager.java - Video model
common/src/main/java/com/liskovsoft/smartyoutubetv2/common/app/models/data/Video.java - Playback history
common/src/main/java/com/liskovsoft/smartyoutubetv2/common/app/models/playback/service/VideoStateService.java - YouTube media engine
common/src/main/java/com/liskovsoft/smartyoutubetv2/common/misc/MediaServiceManager.java
Account and preferences
- Sign-in
common/src/main/java/com/liskovsoft/smartyoutubetv2/common/app/presenters/YTSignInPresenter.java - App preferences
common/src/main/java/com/liskovsoft/smartyoutubetv2/common/prefs/AppPrefs.java
Mobile capabilities
- Offline downloads
smarttubetv/src/stmobile/java/com/newtube/mobile/downloads/MobileDownloadService.java - Download storage
smarttubetv/src/stmobile/java/com/newtube/mobile/downloads/DownloadStorage.java - Background playback
smarttubetv/src/stmobile/java/com/newtube/mobile/ui/playback/MobilePlaybackService.java - TV casting
smarttubetv/src/stmobile/java/com/newtube/mobile/casting/CastSessionService.java
Playback enhancements
- SponsorBlock
common/src/main/java/com/liskovsoft/smartyoutubetv2/common/app/models/playback/controllers/SponsorBlockController.java - DeArrow
common/src/main/java/com/liskovsoft/smartyoutubetv2/common/misc/DeArrowProcessor.java - Dislike estimates
common/src/main/java/com/liskovsoft/smartyoutubetv2/common/app/models/playback/controllers/RatingWriter.java
Other components
- Phone user
Connections 26
- Phone user → Browse and search: browses
README.md - Phone user → Search: searches
README.md - Browse and search → Video details: opens video
- Search → Video details: selects video
- Video details → View navigation: opens player
- View navigation → Playback view: routes to
common/src/main/java/com/liskovsoft/smartyoutubetv2/common/app/views/ViewManager.java - Playback presenter → Playback view: sets view
common/src/main/java/com/liskovsoft/smartyoutubetv2/common/app/presenters/PlaybackPresenter.java - Playback presenter → Player engine: controls
- Player engine → Track selection: selects tracks
common/src/main/java/com/liskovsoft/smartyoutubetv2/common/app/models/playback/manager/PlayerEngine.java - Playback presenter → YouTube media engine: fetches media
common/src/main/java/com/liskovsoft/smartyoutubetv2/common/app/presenters/PlaybackPresenter.java - Playback presenter → Playback history: saves progress
- Playback presenter → Video model: plays video
common/src/main/java/com/liskovsoft/smartyoutubetv2/common/app/presenters/PlaybackPresenter.java - Phone user → Sign-in: signs in
README.md - Sign-in → YouTube media engine: authenticates
README.md - YouTube media engine → Browse and search: loads account content
README.md - Phone user → Offline downloads: saves offline
README.md - Offline downloads → Download storage: stores downloads
smarttubetv/src/stmobile/java/com/newtube/mobile/downloads/MobileDownloadService.java - Offline downloads → Video model: downloads video
- Phone user → Background playback: keeps playing
README.md - Background playback → Playback presenter: controls playback
smarttubetv/src/stmobile/java/com/newtube/mobile/ui/playback/MobilePlaybackService.java - Phone user → TV casting: casts video
README.md - TV casting → Playback view: surfaces player
smarttubetv/src/stmobile/java/com/newtube/mobile/casting/CastSessionService.java - Playback presenter → SponsorBlock: uses segments
README.md - Playback presenter → DeArrow: enhances titles
README.md - Playback presenter → Dislike estimates: shows estimates
README.md - Phone user → App preferences: configures app