avkit

Implement AVKit media playback with AVPlayerViewController, Picture-in-Picture, and AirPlay for iOS apps.

Updated Jul 12, 2026
One-click install
npx skills add https://github.com/yashpalsince2004/National_academy_app --skill avkit-yashpalsince2004
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: avkit
Source: https://github.com/yashpalsince2004/National_academy_app/tree/main/Mobile/.agents/skills/avkit
Command: npx skills add https://github.com/yashpalsince2004/National_academy_app --skill avkit-yashpalsince2004

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires AVFoundation, AVKit, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill simplifies the process of adding media playback functionality to iOS apps, providing system-standard video players, Picture-in-Picture, AirPlay, and more.

Core Features & Use Cases

  • System-Standard Video Players: Utilize AVPlayerViewController for a consistent and integrated video playback experience.
  • Picture-in-Picture: Enable Picture-in-Picture mode for a seamless user experience.
  • AirPlay: Support AirPlay for external media playback.
  • Subtitles and Closed Captions: Display subtitles and closed captions for accessibility.
  • Use Case: If you're developing an iOS app that requires media playback capabilities, this Skill can help you implement them efficiently.

Quick Start

Use the avkit skill to present a video player in your app with the following command: 'present player from: [ViewController] url: [Video URL]'.

Frequently Asked Questions about avkit

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

FAQPage Schema
How do I add a video player to my iOS app using AVKit?

To add an AVKit video player, present an AVPlayerViewController from your Swift ViewController with a specified video URL. This provides a system-standard, integrated media playback experience for iOS apps.

How do I enable Picture-in-Picture and AirPlay for video playback in Swift?

You can enable Picture-in-Picture and AirPlay for video playback in Swift by utilizing the AVKit framework. It provides built-in support for these features, allowing external media playback and seamless multi-tasking on iOS.

Can I display subtitles and closed captions using AVPlayerViewController?

Yes, AVPlayerViewController supports the display of subtitles and closed captions. AVKit includes built-in accessibility features to present synchronized text tracks during media playback in your iOS app.

What iOS and Swift versions are required to use AVKit media playback features?

Using AVKit media playback features requires Swift 6.3 and iOS 26 or later. Your project must also include the AVFoundation and AVKit frameworks to support the video player and related components.

What is the best way to implement system-standard media playback in iOS?

The best way to implement system-standard media playback in iOS is using AVKit's AVPlayerViewController. It offers native controls, Picture-in-Picture, AirPlay, and subtitle support without building custom UI from scratch.