westdorp

swift-avfoundation-playback

Fundamentals-first Swift AVFoundation playback guidance for AVAsset/AVPlayerItem/AVPlayer, seeking timelines, observation, queueing, AirPlay, audio session, PiP, HLS, DRM, ads, and diagnostics across Apple platforms. Use when implementing or reviewing playback behavior.

westdorp 0 Updated 3mo ago

Resources

3
GitHub

Install

npx skillscat add westdorp/swift-avfoundation-playback

Install via the SkillsCat registry.

SKILL.md

Swift AVFoundation Playback Skill

Use this skill to build playback behavior from a stable fundamentals core, then load only the topic files you need.

Read Order

  1. references/player-item-lifecycle.md
  2. references/seeking-and-timelines.md
  3. references/observable-setup.md
  4. references/time-observation.md
  5. references/intent-tracking.md

Topic Map

  • Queue and transitions: references/queue-playback.md, references/gapless-playback.md, references/coordinated-playback.md
  • System integrations: references/airplay-routing.md, references/audio-session.md, references/now-playing.md, references/picture-in-picture.md, references/platform-patterns.md
  • Streaming and reliability: references/hls-streaming.md, references/stall-recovery.md, references/error-handling.md
  • Protected and monetized playback: references/fairplay-drm.md, references/ad-insertion.md

Policy Rules

  • Treat AVFoundation transport properties as signals into your app state machine.
  • Keep UI mutation on the main actor.
  • If Apple documentation does not guarantee a behavior, express it as app policy.

Sources:

Categories