avkit

Build iOS video playback with AVKit, PiP, AirPlay, and subtitles.

Updated Apr 30, 2026
One-click install
npx skills add https://github.com/onymchat/onym-ios --skill avkit-onymchat
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: avkit
Source: https://github.com/onymchat/onym-ios/tree/main/.claude/skills/avkit
Command: npx skills add https://github.com/onymchat/onym-ios --skill avkit-onymchat

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Build robust video playback experiences on iOS by providing ready-made, system-native UI components built on AVFoundation, including PiP, AirPlay, and subtitle support.

Core Features & Use Cases

  • AVPlayerViewController and SwiftUI VideoPlayer provide UIKit and SwiftUI playback UIs
  • Picture-in-Picture, AirPlay routing, and transport control customization
  • Use Case: quickly embed a video player in an onboarding flow or streaming app with consistent Apple-native UI.

Quick Start

Integrate AVKit into your iOS app to deliver polished video playback with PiP and AirPlay.

Frequently Asked Questions about avkit

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

FAQPage Schema
How do I embed a video player in SwiftUI using AVKit?

Embed a video player in SwiftUI using AVKit by leveraging the SwiftUI VideoPlayer component, which provides a native interface for media playback. It integrates seamlessly with AVPlayer to deliver consistent streaming and onboarding video experiences.

Can I use AVPlayerViewController to customize transport controls in UIKit?

Yes, you can use AVPlayerViewController to customize transport controls in UIKit. It provides standard playback UIs and allows configuration of playback controls, ensuring a consistent Apple-native media experience across your app.

Does AVKit support Picture-in-Picture and AirPlay for iOS video playback?

Yes, AVKit supports Picture-in-Picture and AirPlay for iOS video playback. These built-in system-native features allow users to continue watching video while multitasking and route audio or video to external devices seamlessly.

What is the best way to add subtitles to an AVPlayer video stream?

The best way to add subtitles to an AVPlayer video stream is through AVKit's built-in support for media playback configuration. It handles subtitle rendering natively alongside PiP and AirPlay routing without requiring custom UI logic.

How do I handle playback errors when using AVKit for media streaming?

Handle playback errors in AVKit by implementing configuration patterns and best practices provided for media playback. The framework offers standard error handling mechanisms to manage streaming interruptions and ensure robust video playback UX.