PierfrancescoSoffritti/android-youtube-player
64.5
Adequate · 14 November 2026
5.4k
lines of production code
Kotlin
with Java, JavaScript
5
measurements over time
What this system is
Features
Initial release of Chromecast YouTube Player Receiver
This change introduces the complete Chromecast receiver application for playing YouTube videos, including the HTML entry point, CSS styling, and the JavaScript logic for managing the YouTube IFrame Player and Cast communication. Users can now cast YouTube videos to their devices, with support for playback controls (play, pause, seek, volume), playback speed adjustment, and playlist management (next/previous video, shuffle, loop). The receiver handles the Cast framework lifecycle, custom message dispatching between sender and receiver, and state synchronization.
chromecast-receiver · high confidence
Initial repository setup with CI, funding, license, and documentation
The repository is initialized with essential project files: a Travis CI configuration for Android builds, a GitHub FUNDING.yml file linking to the maintainer, an MIT LICENSE, and a comprehensive README.md detailing the android-youtube-player library, its usage, and sample apps. Additionally, a .gitignore file is added to exclude build artifacts and IDE settings, and the Gradle wrapper scripts (gradlew and gradlew.bat) are updated to a newer POSIX-compliant version.
(repo-wide) · high confidence
Introduce custom UI module with default player controls and menu
This change introduces the \custom-ui\ module, providing a complete default UI implementation for the YouTube player. It includes a \DefaultPlayerUiController\ that manages the player's visual state, a \YouTubePlayerSeekBar\ for time navigation, and a popup menu system (\YouTubePlayerMenu\) for custom actions. The UI features a fullscreen toggle, play/pause controls, and a YouTube button that opens the video in the YouTube app using a secure HTTPS link. The module also includes necessary resource definitions, ProGuard rules, and an AndroidManifest, establishing the foundation for customizable player interfaces.
custom-ui · high confidence
Introduce new Chromecast sender module
Adds a new chromecast-sender module that enables casting YouTube videos from an Android app to a Chromecast device. This includes the core player implementation (ChromecastYouTubePlayer), session management (ChromecastYouTubePlayerContext, ChromecastManager), and a custom communication channel for sending commands (play, pause, seek, volume, mute, playback rate, playlist controls) and receiving state updates from the receiver. It also adds basic instrumentation and unit tests for the new module.
chromecast-sender · high confidence
Removals
Removal of legacy MainActivity sample entry point
The original MainActivity.java file, which served as the primary sample entry point for initializing and managing the YouTubePlayer, has been removed from the codebase. This change eliminates the legacy implementation that handled player initialization, lifecycle management, and orientation-based layout adjustments directly within this single activity, reflecting a broader refactoring of the sample application's structure.
sample/src/main/java · high confidence
Removal of legacy WebView-based YouTube player implementation
The legacy YouTube player implementation, which relied on a WebView, a custom HTML5 player template, and a Java-to-JavaScript bridge, has been completely removed from the library. This change eliminates the \YouTubePlayer\ WebView class, the \InnerYouTubePlayerListener\ helper, the \YouTubePlayerBridge\ for communication, the \YouTubePlayerParams\ configuration object, and the embedded \player.html\ resource. Users relying on this specific WebView-based playback method will no longer have access to it and must migrate to the library's current player architecture.
YouTubePlayer/src/main/java · high confidence
Behavioural changes
1 commit (0 fixes) modifying chromecast-sender-sample-app
A change to existing behaviour in chromecast-sender-sample-app — 1 commit, 2 files: “Update sample app apks”.
chromecast-sender-sample-app/apk, core-sample-app/apk · medium confidence · unverified
12 commits (0 fixes) modifying core/src/main/java/com/pierfrancescosoffritti/androidyoutubeplayer/core/player
A change to existing behaviour in core/src/main/java/com/pierfrancescosoffritti/androidyoutubeplayer/core/player — 12 commits, 6 files: “Add extra playback rates (breaking change) (\#1073)”; “Add mute/unMute functionality”; “Clean up code”; and 9 more (refs \#1073, \#936, \#1209, \#304, \#1238).
core/src/main/java/com/pierfrancescosoffritti/androidyoutubeplayer/core/player · medium confidence · unverified
2 commits (0 fixes) modifying core/src/main/resources
A change to existing behaviour in core/src/main/resources — 2 commits, 1 file: “Add Google Play SDK Console verification file”; “Update verification properties”.
core/src/main/resources · medium confidence · unverified
Chromecast sample app restructured with new example activities and UI components
The chromecast-sender-sample-app has been reorganized to provide a cleaner entry point and distinct examples for different casting scenarios. A new MainActivity now serves as the launcher, directing users to a template-based menu that lists four specific examples: Basic Example, Player Controls Example, Notification Example, and Local Player Init Example. The app now includes dedicated activities for each scenario, such as BasicExampleActivity for simple casting, PlayerControlsExample for custom UI integration, NotificationExampleActivity for media notification support, and LocalPlayerInitExampleActivity for handling both local and cast playback. Supporting these examples are new utility classes like MediaRouteButtonUtils for managing the Cast button, SimpleChromeCastUiController for custom UI state management, and NotificationManager for handling media notifications. The app also introduces a CastOptionsProvider for configuring the Cast framework and uses a VideoIdsProvider to cycle through sample videos.
chromecast-sender-sample-app/src · high confidence
Core library restructured with new player interfaces and playlist support
The core library has been refactored to introduce a new \YouTubePlayer\ interface and \PlayerConstants\ enums, replacing the previous implementation. This change adds support for playlist controls (next, previous, shuffle, loop) and allows querying the mute state asynchronously. The player now uses a \LegacyYouTubePlayerView\ internally and includes a \NetworkObserver\ to automatically resume playback when connectivity is restored after an HTML5 player error. Additionally, \IFramePlayerOptions\ now supports playlist configuration via \list\ and \listType\ parameters, and the default origin is set to the app's package name. Also in this area: 1 commit (0 fixes) modifying core; Add privacy-enhanced mode to YouTube player; Clarified documentation for IFramePlayerOptions.origin.
(repo-wide) · medium confidence · unverified
Sample app restructured with new template and expanded examples
The core sample application has been reorganized to use a new \SampleAppTemplateActivity\ for the main menu, which now lists a broader set of demonstration activities including Chromecast, Compose, and Picture-in-Picture. The codebase has been modernized by migrating the Complete and Compose examples to Kotlin, and the Chromecast integration has been expanded with a dedicated example activity, a \CastOptionsProvider\, and a \YouTubePlayersManager\ to handle synchronization between local and cast playback.
core-sample-app/src · high confidence
Updated ProGuard rules and added .gitignore for core-sample-app
The core-sample-app now includes a .gitignore file to exclude build artifacts and has moved its ProGuard configuration to a dedicated proguard-rules.pro file. This configuration has been expanded to suppress warnings and preserve classes related to Google API clients, HTTP clients, and Play Services, ensuring smoother builds and runtime behavior for these dependencies.
core-sample-app · high confidence
Fixes
1 commit (1 fix) fixing core
A fix in core — 1 commit (1 fix), 1 file: “Add consumer R8 rules for the JavaScript bridge, fixes \#598 \#712” (refs \#598, \#712). Also in this area: Core library restructured with new player interfaces and playlist support.
core · medium confidence · unverified
Test coverage
3 commits adding/updating tests in core/src/test
Test coverage in core/src/test — 3 commits (1 fix), 2 files: “Fix import in core UtilsTest (\#951)”; “Clean up code”; “closes issue \#304” (refs \#951, \#304).
core/src/test · high confidence · unverified
Dependencies
137 commits updating dependencies (30 manifests)
A dependency / build maintenance change in (dependencies) — 137 commits (14 fixs), 30 files.
(dependencies) · medium confidence · unverified
Gradle wrapper upgraded to version 8.14.2
The Gradle wrapper has been updated from version 2.14.1 to 8.14.2, which will cause builds to use the newer Gradle distribution. The configuration also includes a network timeout setting of 10000ms and enables distribution URL validation to ensure the integrity of the downloaded Gradle binary.
gradle · high confidence
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
How this codebase got here
Score
- CAI 61 → 65 (+3.5)
- Rubric changed (rubric-2026.10.5 → rubric-2026.11.4) — scores are not directly comparable.
Lenses
- Code Health 72 → 71 (-0.9)
- Architecture 98 → 97 (-0.5)
- Maturity 59 → 59 (+0.2)
- Readiness 51 → 58 (+6.8)
- Security 73 → 79 (+5.7)
- Performance 100 → 100 (+0.0)
Resolved (9)
- Duplicated block (10 lines × 2) (chromecast-sender-sample-app/src/main/java/com/pierfrancescosoffritti/androidyoutubeplayer/chromecast/sampleapp/examples/basicExample/BasicExampleActivity.kt)
- Duplicated block (5 lines × 2) (chromecast-sender-sample-app/src/main/java/com/pierfrancescosoffritti/androidyoutubeplayer/chromecast/sampleapp/ui/SimpleChromeCastUIController.kt)
- No ADRs found
- Orphaned file (core-sample-app/src/main/java/com/pierfrancescosoffritti/androidyoutubeplayer/core/sampleapp/examples/composeExample/ComposeExampleActivity.kt)
- Orphaned files with no living knowledge
- Secret: gcp-api-key (chromecast-sample-app/src/main/java/com/pierfrancescosoffritti/cyplayersample/utils/YouTubeDataEndpoint.kt)
- Secret: gcp-api-key (core-sample-app/src/main/java/com/pierfrancescosoffritti/androidyoutubeplayer/core/sampleapp/utils/YouTubeDataEndpoint.java)
- Secret: gcp-api-key (sample/src/main/java/com/pierfrancescosoffritti/youtubeplayersample/MainActivity.java)
- Secret: gcp-api-key (sample/src/main/java/com/pierfrancescosoffritti/youtubeplayersample/YouTubeDataEndpoint.java)
New (11)
- Duplicated block (10 lines × 2) (chromecast-sender-sample-app/src/main/java/com/pierfrancescosoffritti/androidyoutubeplayer/chromecast/sampleapp/examples/basicExample/BasicExampleActivity.kt)
- Duplicated block (10 lines × 2) (chromecast-sender-sample-app/src/main/java/com/pierfrancescosoffritti/androidyoutubeplayer/chromecast/sampleapp/examples/notificationExample/NotificationExampleActivity.kt)
- Duplicated block (5 lines × 2) (chromecast-sender-sample-app/src/main/java/com/pierfrancescosoffritti/androidyoutubeplayer/chromecast/sampleapp/ui/SimpleChromeCastUIController.kt)
- Edited copies of one member (3 members, 13+ corresponding lines) (core-sample-app/src/main/java/com/pierfrancescosoffritti/androidyoutubeplayer/core/sampleapp/examples/fragmentExample/FragmentExampleFragment.java)
- Edited copies of one member (3 members, 9+ corresponding lines) (chromecast-sender-sample-app/src/main/java/com/pierfrancescosoffritti/androidyoutubeplayer/chromecast/sampleapp/ui/SimpleChromeCastUIController.kt)
- Edited copy of a member (12 corresponding lines) (chromecast-sender-sample-app/src/main/java/com/pierfrancescosoffritti/androidyoutubeplayer/chromecast/sampleapp/ui/SimpleChromeCastUIController.kt)
- Edited copy of a member (14 corresponding lines) (chromecast-sender-sample-app/src/main/java/com/pierfrancescosoffritti/androidyoutubeplayer/chromecast/sampleapp/examples/basicExample/BasicExampleActivity.kt)
- Edited copy of a member (7 corresponding lines) (core/src/main/java/com/pierfrancescosoffritti/androidyoutubeplayer/core/player/utils/PlaybackResumer.kt)
- Edited copy of a member (8 corresponding lines) (chromecast-sender-sample-app/src/main/java/com/pierfrancescosoffritti/androidyoutubeplayer/chromecast/sampleapp/examples/basicExample/BasicExampleActivity.kt)
- High interface indirection
- No ADRs found (core-sample-app/build.gradle)
Changes since last survey
- 9 commits — 7 feature/other, 2 fixes
By area
- (root) — 5 commits
- (repo) — 1 commit
- chromecast-sender-sample-app/apk — 1 commit
- core/build.gradle — 1 commit
- core/src — 1 commit
Notable commits
- fix: Add consumer R8 rules for the JavaScript bridge, fixes #598 #712
- fix: Fix NetworkObserver leaking network callbacks, fixes #1024 #1239
- change: Add interfaceLanguage option to IFramePlayerOptions (#1315)
- change: Merge branch dev for release 13.1.0
- change: Release version 13.1.0
- change: Update sample app apks
- change: docs: add Compose pointer to README and fix observer leak in Compose sample, fixes #935
- change: docs: correct privacy-enhanced mode wording in README
- change: docs: remove README workarounds section, see #1316
Architecture
- Unchanged — 0 containers · 2 contexts · 0 edges
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
Survey your own repository
PierfrancescoSoffritti/android-youtube-player was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.
About this page
- The score is its most recent published measurement, taken on 14 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
- Measured at commit bfd08c0802b312a43502874603db4093b45e24b1 — the exact code this score is about.
- Scored under rubric-2026.11.4 — the same rubric and the same method as every other entry in this index.
- Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.65+preprod-e1a3b69fc8ee.