Tooluck logoTooluck
SKILL.md

media3-cast-integration

Agent skill fromandroid/skills

Implements Google Cast support in Android apps using Jetpack Media3.

How to install media3-cast-integration

install media3-cast-integration
# install the skills pack with the skills CLI
npx skills add android/skills

# or add only this skill to Claude Code: copy the folder

media/media3-cast-integration/

# into

~/.claude/skills/media3-cast-integration/ (all projects)

.claude/skills/media3-cast-integration/ (one project)

media/media3-cast-integration/SKILL.md

Apache-2.0Full file
1## Prerequisites
2
3- Jetpack Media3 version must be `>= 1.9.0`. Cast isn't available in lower versions.
4
5## Glossary
6
7- **`CastPlayer`** : Media3 `Player` that controls playback on both local and remote Cast devices.
8- **`RemoteCastPlayer`** : Media3 `Player` that communicates with a Cast receiver, only used for remote playback.
9- **Google Cast SDK**: Legacy casting SDK in maintenance mode, superseded by Jetpack Media3.
10- **`OptionsProvider`** : Interface providing configuration options to initialize GMS `CastContext`.
11
12## Common guidelines
13
14- Legacy [Google Cast SDK](https://developers.google.com/cast) is in maintenance mode.
15- For new Cast setups:
16 - You must use [Jetpack Media3 Cast](references/android/media/media3/cast/index.md).
17 - You mustn't use legacy Cast SDK unless explicitly requested.
18
19## Step 1: Set up dependencies
20
21To complete this step, you **MUST** ensure the following:
22
23- In the app-level build file, declare the `media3-cast` dependency version
24 1.9.0 or higher.
25
26 implementation("androidx.media3:media3-cast:1.11.1")
27
28- Ensure required Media3 dependencies are present:
29
30 - `androidx.media3:media3-exoplayer`
31 - `androidx.media3:media3-session`
32 - `androidx.media3:media3-ui-compose`
33- If the application uses legacy Views, add `media3-ui`.
34
35- Enforce the same versions across all Media3 dependencies.
36
37- Use configurations in "Add build dependencies" section of [Getting started
38…

Excerpt shown under the repository's Apache-2.0 license.

More skills in skills

Keep exploring

Similar skill repositories

pbakaus /

impeccable
108k

The design vocabulary for your coding agent. Steer with polish and bolder, review with critique and audit, catch AI slop before it ships.

2 skills

nexu-io /

open-design
107k

The 1st Collaborative AI Design Agent Workspace. Local-first and open source. Create motion, prototypes, websites, apps, dashboards, presentations, images, and videos with your team and AI agents. Share work, exchange feedback, and iterate together in one workspace.

40 skills

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates