media3-view-ui-player

media3-view-ui-player is a skill for Claude Code, Codex from sunnat629/android-media-pack. It costs 31 tokens per session (434 once invoked), scanned A, original, Apache-2.0.

Guidance for building Android video-player screens with Media3, the Android library for handling media playback, using traditional Views, XML layouts, or Compose, Android’s modern UI toolkit.

In plain words
What is it for?
Use it when adding or migrating video-player screens, connecting a player to a View, or embedding an existing Android View in Compose.
Why use it?
It helps avoid mixing old and new playback APIs and prevents player lifetime and fullscreen-handling mistakes.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when adding or migrating video-player screens, connecting a player to a View, or embedding an existing Android View in Compose.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sunnat629/android-media-pack/media3-view-ui-player
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add sunnat629/android-media-pack --skill media3-view-ui-player
Clone the repo
git clone --depth 1 https://github.com/sunnat629/android-media-pack

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for media3-view-ui-player

README.md
[![agentmods](https://agentmods.dev/badge/skills/sunnat629/android-media-pack/media3-view-ui-player/github.svg)](https://agentmods.dev/skills/sunnat629/android-media-pack/media3-view-ui-player)
Your own site
<a href="https://agentmods.dev/skills/sunnat629/android-media-pack/media3-view-ui-player"><img src="https://agentmods.dev/badge/skills/sunnat629/android-media-pack/media3-view-ui-player/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for media3-view-ui-player

Your own site · 80×15
<a href="https://agentmods.dev/skills/sunnat629/android-media-pack/media3-view-ui-player"><img src="https://agentmods.dev/badge/skills/sunnat629/android-media-pack/media3-view-ui-player.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 434 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00031 $0.00434
Opus 5 $0.00015 $0.00217
Sonnet 5 $0.00006 $0.00087
Haiku 4.5 $0.00003 $0.00043

Measured 10d ago against content hash a14f4451dd23, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

media3-view-ui-player scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.skills/media/ui/media3-view-ui-player/SKILL.md · 57 lines

What it actually says

Trigger

Use for Android Views playback UI, XML PlayerView, ViewBinding screens, or Compose screens that must host existing Views.

Rules

  • Prefer media3-compose-ui-material3 for new Compose-first screens.
  • Pin Media3 to 1.10.1 through the version catalog.
  • Use androidx.media3.ui.PlayerView; do not use legacy ExoPlayer UI packages.
  • Attach the player when the screen is active and clear it when the View is destroyed.
  • Keep player ownership outside fragments/views unless the screen truly owns playback lifetime.
  • Keep system inset and fullscreen handling explicit; do not let controls overlap bars.
  • Use AndroidView interop only when migration cost or platform UI needs justify it.

Example

media3-ui = { module = "androidx.media3:media3-ui", version.ref = "media3" }
<androidx.media3.ui.PlayerView
    android:id="@+id/playerView"
    android:layout_width="match_parent"
    android:layout_height="match_parent" />

Do Not

  • Do not mix com.google.android.exoplayer2.ui.PlayerView with Media3.
  • Do not create or release the service-owned player from a View.
  • Do not use View interop as the default for a new Compose-only screen.
  • migrate-xml-ui-to-compose
  • media3-compose-ui-material3
  • media3-video-playback
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 57 lines · 31 tokens per session scan A a14f4451dd23

Subscribe to this mod's changes

media3-view-ui-player is a skill published in the GitHub repository sunnat629/android-media-pack (13 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 31 tokens to every session and 434 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

truesheet-usage

Consumer-side guide for integrating @lodev09/react-native-true-sheet into a React Native app. Use this skill whenever the user wants to add, configure, control, or debug a bottom sheet using TrueSheet — including ref-based sheets, named global sheets, web support with TrueSheetProvider/useTrueSheet, React Navigation…

lodev09/react-native-true-sheet · 169 tokens

uniwind

Uniwind — Tailwind CSS v4 styling for React Native. Use when adding, building, or debugging components in a React Native project that uses Uniwind classNames. Covers setup, Metro config, global.css, theming, className props, accent- color props, platform/data/state/responsive variants, CSS variables, custom utilities…

uni-stack/uniwind · 130 tokens

e2e-testing

AI-powered E2E testing for any app — Flutter, React Native, iOS, Android, Electron, Tauri, KMP, .NET MAUI. Connects via MCP to running apps so the agent can take screenshots, tap elements, enter text, scroll, inspect UI trees, and verify state with natural language. Use when the user wants to test an app's UI…

ai-dashboad/flutter-skill · 107 tokens

maui-blazor-hybrid

Build/debug MAUI Blazor Hybrid. USE FOR: BlazorWebView vs HybridWebView, Razor UI, embedded HTML/JS, AddMauiBlazorWebView, root components, JS/.NET messaging, trim-safe JSON, wwwroot assets, auth/data handoff, DevFlow CDP route/DOM debugging. DO NOT USE FOR: pure XAML UI or browser-only apps.

dotnet/maui-labs · 88 tokens

react-native-expert

Expert in React Native, cross-platform mobile development, native modules, and performance optimization. Use when the user mentions mobile, JavaScript, TypeScript, cross platform, iOS, or Android, or when the task involves React Native Architecture, Component Types, Hooks Essentials, or Navigation.

personamanagmentlayer/pcl · 62 tokens

migrate-nativewind-to-uniwind

Migrate a React Native project from NativeWind to Uniwind. Use when the user wants to replace NativeWind with Uniwind, upgrade from NativeWind, switch to Uniwind, or mentions NativeWind-to-Uniwind migration. Handles package removal, config migration, Tailwind 4 upgrade, cssInterop removal, theme conversion, and all…

uni-stack/uniwind · 82 tokens