Tvos media playback workflow
Skill gaelic-ghost/socket/plugins/apple-dev-skills/skills/tvos-media-playback-workflow
Guide tvOS media playback: AVKit-first player choice, custom escalation, remote commands, Now Playing, and validation. Use for AVPlayerViewController, MPRemoteCommandCenter, playback focus, or media-control boundaries.From its SKILL.md
npx -y skills add gaelic-ghost/socket --skill tvos-media-playback-workflowAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 6 stars6 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
6.4 KB, ~1.4k tokens by cl100k_base, as published. Nobody here has run it
tvOS Media Playback Workflow
Purpose
Guide the tvOS media-control contract. This skill starts with AVKit's system player, makes custom-player escalation evidence-based, and keeps remote command routing, player state, and Now Playing information under one explicit owner. It does not replace general AVFoundation pipelines, Core Media timing, audio session policy, or Xcode execution workflows.
When To Use
- Use this skill for
AVPlayerViewController, system-player adoption, AVKit playback UI, custom info tabs, overlays, content proposals, HLS interstitials, Picture in Picture, and playback-focused tvOS design. - Use this skill for
MPRemoteCommandCenter, remote transport commands,MPNowPlayingInfoCenter, custom player controls, command enablement, and Apple TV media-state ownership. - Use this skill when a product believes it needs a custom player; first decide whether AVKit's system player satisfies the actual requirement.
- Use this skill for remote/controller command validation, post-playback focus restoration, and device-only playback capability gates.
- Recommend
tvos-app-experience-workflowfor browsing UI, focus layout, remote-first app navigation, Large Text, TVMLKit migration, or general tvOS platform constraints. - Recommend
avfoundation-media-pipeline-workflowfor general asset loading, capture, readers, writers, export, transcode, and playback-pipeline repair.
Single-Path Workflow
- Classify the playback request:
- system player adoption
- AVKit extension or supporting content
- custom-player justification
- remote command or Now Playing state
- HLS/interstitial/continuity feature
- runtime validation or repair
- Apply the Apple docs gate:
- read current AVKit, AVFoundation, MediaPlayer, and release-note evidence
- state the documented behavior relied on before recommending a control path
- version-qualify beta APIs and device-specific behavior
- Prefer the system player:
- choose
AVPlayerViewControllerwhen its controls and supported extension points satisfy the requirement - name the concrete unavailable product behavior before choosing custom UI
- keep the custom path responsible for every relevant remote command and media-state transition
- choose
- Establish one media-control owner:
- player lifecycle and current item
- command enablement and
MPRemoteCommandCenterhandlers MPNowPlayingInfoCenterstate- interruption/end-of-item behavior and focus restoration
- Return one recommendation with:
- player choice and documented rationale
- command/state ownership
- feature and device gates
- remote validation matrix and handoff
Inputs
request: optional free-text playback task.playback_goal: optionalsystem-player,custom-player,remote-command,now-playing,hls,interstitial,overlay,proposal,continuity, orvalidation.player_context: optional current player, UI customization, media type, and command requirement.target_context: optional Apple TV model, tvOS/Xcode version, controller, and physical-device availability.- Defaults:
- docs-first guidance always applies
- prefer
AVPlayerViewControllerover a custom player - one explicit owner manages player state, commands, and Now Playing state
Outputs
statussuccess: a playback ownership recommendation is readyhandoff: another workflow owns the actual next stepblocked: the required device, entitlement, stream, or framework evidence is missing
path_typeprimary: AVKit system-player or documented extension pathfallback: custom-player or device-only feature path
output- resolved player path
- documented Apple behavior relied on
- command and state ownership
- capability/beta gate
- validation matrix and handoff
Guards and Stop Conditions
- Do not start with custom playback controls when
AVPlayerViewControllersatisfies the product requirement. - Do not treat a custom player as cosmetic: it must support applicable remote commands, media-control state, interruption/end behavior, and focus return.
- Do not scatter
MPRemoteCommandCenterhandlers, player state, orMPNowPlayingInfoCenterupdates across unrelated views. - Do not claim HLS, interstitial, Picture in Picture, Continuity Camera, controller, remote, or system-media-control behavior is verified without relevant runtime evidence.
- Do not run general media type, timing, capture, reader/writer, export, or audio-session work through this skill when an existing specialist owns it.
- Stop with
blockedwhen the requested behavior depends on unavailable stream, account, hardware, signed entitlement, or physical-device evidence.
Fallbacks and Handoffs
- Recommend
tvos-app-experience-workflowfor app navigation, focus layout, Large Text, remote-first browsing UI, and TVMLKit migration. - Recommend
avfoundation-media-pipeline-workflowfor assets, capture, player pipeline, reader/writer, export, or transcode ownership. - Recommend
coremedia-timing-samplebuffer-workflowfor timestamps, timebases, format descriptions, and sample-buffer synchronization. - Recommend
avfaudio-session-workflowfor audio intent, routes, interruptions, microphone permission, and audio-session behavior. - Recommend
xcode-build-run-workflowfor project/device deployment andxcode-testing-workflowfor repeatable playback/runtime verification. - Recommend
explore-apple-swift-docswhen current AVKit or tvOS docs lookup is the real task.
Customization
Use references/customization-flow.md.
scripts/customization_config.py preserves the shared customization-file
contract. This first version has no runtime-enforced knobs.
References
Workflow References
references/system-player-and-remote-commands.mdreferences/playback-validation-and-handoffs.mdreferences/customization-flow.md
Support References
- Recommend
avfoundation-media-pipeline-workflowfor general media-pipeline shape andcoremedia-timing-samplebuffer-workflowfor typed timing behavior. - Recommend
explore-apple-swift-docsfor current framework availability and release-note evidence.
Script Inventory
scripts/customization_config.py
What ships with it: 6 files
7.7 KB alongside SKILL.md, 1 of them executable
agents/
- openai.yaml412 B
references/
scripts/
- customization_config.pyruns3.4 KB