avkit

Provide AVKit video playback components with PiP, AirPlay, and subtitles.

Updated Apr 19, 2026
One-click install
npx skills add https://github.com/femitz/flyby --skill avkit-femitz
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: avkit
Source: https://github.com/femitz/flyby/tree/main/.agents/skills/avkit
Command: npx skills add https://github.com/femitz/flyby --skill avkit-femitz

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

AVKit-based video playback often requires boilerplate setup and UI glue. This skill provides ready-to-use patterns for AVPlayerViewController, SwiftUI VideoPlayer, Picture-in-Picture, AirPlay routing, and subtitle handling, helping teams deliver consistent playback experiences.

Core Features & Use Cases

  • AVPlayerViewController and SwiftUI VideoPlayer wrappers
  • Picture-in-Picture and AirPlay integration
  • Subtitles, captions, and playback controls
  • SwiftUI-facing SystemPlayerView for advanced control

Quick Start

Create an AVPlayer with a URL and present an AVPlayerViewController to start playback.

Frequently Asked Questions about avkit

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add Picture-in-Picture support to a SwiftUI video player?

Adding Picture-in-Picture support to a SwiftUI video player requires wrapping AVPlayerViewController and configuring PiP delegation. This skill provides a SwiftUI wrapper with proper PiP integration and safe fallback patterns for consistent playback.

What's the best way to set up AirPlay routing with AVPlayerViewController?

Setting up AirPlay routing with AVPlayerViewController requires proper audio session configuration and route picker integration. This skill provides ready-to-use patterns for AirPlay routing alongside AVKit playback components to ensure consistent audio output.

Can I use AVKit for background video playback in iOS apps?

Using AVKit for background video playback requires proper audio session setup and background mode configuration. This skill satisfies requirements for background playback by providing safe fallback patterns and standard audio session handling within its AVPlayer wrappers.

How do I display subtitles and captions using AVPlayer in SwiftUI?

Displaying subtitles and captions using AVPlayer in SwiftUI involves configuring AVPlayerViewController caption settings. This skill includes subtitle and caption handling within its standard UI components and SwiftUI-facing SystemPlayerView wrapper.

Why does my AVPlayer video player lose its controls when embedded in SwiftUI?

An AVPlayer video player losing controls when embedded in SwiftUI often results from improper view controller wrapping. This skill provides a SwiftUI wrapper for AVPlayerViewController that maintains standard playback controls and advanced playback management.