# Media3 Drm Widevine Setup

> Compact skill for Media3 Widevine DRM, license headers, offline licenses, L1/L3, HDCP, and failure recovery.

- **Type:** Skill
- **Install:** `agentstack add skill-sunnat629-android-media-pack-media3-drm-widevine-setup`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [sunnat629](https://agentstack.voostack.com/s/sunnat629)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** Apache-2.0
- **Upstream author:** [sunnat629](https://github.com/sunnat629)
- **Source:** https://github.com/sunnat629/android-media-pack/tree/main/.skills/media/protection/media3-drm-widevine-setup

## Install

```sh
agentstack add skill-sunnat629-android-media-pack-media3-drm-widevine-setup
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

## Trigger

Use for protected playback, license URL/headers, offline keys, security-level gating, and DRM errors.

## Rules

- Start with `streaming-media-architecture` for ownership, KMP split, preload window, and telemetry.
- Pin Media3 to `1.10.1` through the version catalog.
- Keep Media3 APIs in Android source sets; expose KMP-safe state/events upward.
- Put DRM config on `MediaItem` or media source factory path consistently.
- Do not log license tokens or PII.
- Gate HD/L1 content by actual device capability.
- Classify provisioning, license, key-expired, and output-protection failures separately.

## Example

```kotlin
MediaItem.DrmConfiguration.Builder(C.WIDEVINE_UUID)
    .setLicenseUri(licenseUrl)
    .build()
```

## Related

- `media3-datasources-networking`
- `media3-analytics-telemetry`
- [references/license-server.md](references/license-server.md) for license server setup and request headers
- [references/offline-licenses.md](references/offline-licenses.md) for offline key download, restore, and release
- [references/provisioning.md](references/provisioning.md) for device provisioning and security-level failures

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [sunnat629](https://github.com/sunnat629)
- **Source:** [sunnat629/android-media-pack](https://github.com/sunnat629/android-media-pack)
- **License:** Apache-2.0

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-sunnat629-android-media-pack-media3-drm-widevine-setup
- Seller: https://agentstack.voostack.com/s/sunnat629
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
