streaming-media-architecture

streaming-media-architecture is a skill for Claude Code, Codex from sunnat629/android-media-pack. It costs 40 tokens per session (1,136 once invoked), scanned A, original, Apache-2.0.

A guide for structuring production Android and Kotlin Multiplatform video apps with Media3, Android's media playback library. It covers player ownership, shared playback state, preloading, offline data, short-video feeds, and measurement.

In plain words
What is it for?
Use it as the starting point for Media3 architecture, reels and short-video feeds, Kotlin Multiplatform boundaries, playback ownership, preloading, and production readiness.
Why use it?
It prevents common architecture problems such as creating a player for every feed item, letting the interface call the network directly, or loading too much video for the device's battery, memory, or connection.

Skill for Claude CodeCodex

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

Good fit Use it as the starting point for Media3 architecture, reels and short-video feeds, Kotlin Multiplatform boundaries, playback ownership, preloading, and production readiness.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sunnat629/android-media-pack/streaming-media-architecture
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 streaming-media-architecture
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 streaming-media-architecture

README.md
[![agentmods](https://agentmods.dev/badge/skills/sunnat629/android-media-pack/streaming-media-architecture/github.svg)](https://agentmods.dev/skills/sunnat629/android-media-pack/streaming-media-architecture)
Your own site
<a href="https://agentmods.dev/skills/sunnat629/android-media-pack/streaming-media-architecture"><img src="https://agentmods.dev/badge/skills/sunnat629/android-media-pack/streaming-media-architecture/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 streaming-media-architecture

Your own site · 80×15
<a href="https://agentmods.dev/skills/sunnat629/android-media-pack/streaming-media-architecture"><img src="https://agentmods.dev/badge/skills/sunnat629/android-media-pack/streaming-media-architecture.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,136 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.00040 $0.01136
Opus 5.5 $0.00016 $0.00454
Sonnet 5.5 $0.00008 $0.00227
Haiku 4.5 $0.00004 $0.00114

Measured 2mo ago against content hash 5b40d7ba6799, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

streaming-media-architecture 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 2mo 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/streaming-media-architecture/SKILL.md · 106 lines

How it starts

The opening of the file, as written. The whole thing — 106 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Trigger

Use first for Media3 architecture, reels/short-video feeds, KMP split decisions, player ownership, preloading, and production streaming readiness.

Rules

  • Baseline: Media3 1.10.1; use version catalog, no hardcoded Gradle versions.
  • KMP/common: domain models, repositories, playback policy, feed ranking, state, events, analytics contracts.
  • Android source set: ExoPlayer, MediaSessionService, MediaController, Media3 UI, DataSource, cache, DRM.
  • UI is UDF: immutable state down, events up. Repositories own truth; UI never calls network directly.
  • One playback owner per screen/session. Do not create/release a player per feed row.
  • Short feed uses bounded sliding window. Preload next/prev only; respect data saver, battery, thermal, memory.
  • Telemetry comes from AnalyticsListener, PlaybackStatsListener, player callbacks, and measured UI handoff points.

Short-Video Feed Pattern

  • A playback service or screen-scoped owner manages one Android ExoPlayer and optional MediaSession.
  • Common/KMP-safe controller APIs build a video-only media queue from feed items.
  • Active page is guarded by stable media identity; database id is best, URI is acceptable fallback.
  • State contract includes mediaUri and renderedMediaUri.
  • Compose attaches the player surface as soon as the active item owns the player.
  • Keep thumbnail above the player until onRenderedFirstFrame reports the same media identity.
  • Remove thumbnail only when activeItem == mediaUri == renderedMediaUri.
  • Keep ContentFrame/player surface in the composition. If it is hidden until ready, first-frame callback may never arrive.
  • Inline scrollers can use TextureView for overlay/thumbnail handoff. Prefer SurfaceView for stable fullscreen/HDR surfaces.
  • Use setPauseAtEndOfMediaItems(true) so pager navigation controls item advance.
  • Use small ExoPlayer.PreloadConfiguration, then graduate to DefaultPreloadManager when queue/window telemetry proves it is needed.

Short-Feed Policy

Read the full file on GitHub · 106 lines

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. 2mo ago First seen · 106 lines · 40 tokens per session scan A 5b40d7ba6799

Subscribe to this mod's changes

streaming-media-architecture is a skill published in the GitHub repository sunnat629/android-media-pack (15 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 40 tokens to every session and 1,136 once invoked, about $0.0002 per session on Opus 5.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

streaming-media-architecture compared with skills from other repositories

streaming-media-architecture next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
streaming-media-architecturesunnat629/android-media-packSkill153mo agoApache-2.0A40Claude Code, Codex
solopi-aialipay/SoloPiSkill6.4k2d agoApache-2.0A82Codex
argent-tv-interactsoftware-mansion/argentSkill3.2kyesterdayApache-2.0A107Claude Code, Codex
analyzing-android-malware-with-apktoolmukul975/Anthropic-Cybersecurity-SkillsSkill36k2mo agoApache-2.0A84Claude Code
compose-multiplatformericrisco/rsc-harnessSkill5032d agoMITA80Claude Code, Codex
simvynpranshuchittora/simvynSkill4429d agoMITA63Codex
ios-slim-bindingsdotnet/maui-labsSkill235yesterdayMITA97Claude Code, Codex