shareplay-activities

Coordinate synchronized media playback and app state across Apple devices using GroupActivities and AVFoundation frameworks.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

SharePlay-activities allows developers to create shared real-time experiences for collaborative app features like media playback, game states, and FaceTime/Messages group activities across multiple Apple devices.

Core Features & Use Cases

  • GroupActivities Framework Integration: Utilizes GroupActivities to build shared real-time experiences.
  • SharePlay Support: Connects people over FaceTime, Messages, AirDrop, and nearby visionOS sharing for synchronized media playback.
  • Session Management: Handles session lifecycle, including starting, joining, leaving, and ending sessions.
  • Data Synchronization: Syncs small-time-sensitive app state and messages between participants using GroupSessionMessenger.
  • Media Sync: Synchronizes play/pause, seeking, and rate of AVPlaybackCoordinator for coordinated media playback.
  • Use Case: Ideal for shared media playback in iOS/macOS/tvOS or visionOS applications.

Quick Start

Create a new activity by defining a conforming GroupActivity struct with metadata and activity type, then call activity.prepareForActivation() and handle the user's selection for sharing options or starting an activity directly.

Frequently Asked Questions about shareplay-activities

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

FAQPage Schema
How do I synchronize media playback over FaceTime using GroupActivities?

You can synchronize media playback over FaceTime by utilizing the GroupActivities framework with AVPlaybackCoordinator to manage play, pause, seeking, and playback rates across connected Apple devices.

Can I use SharePlay to sync app state over Messages and AirDrop?

Yes, SharePlay supports syncing time-sensitive app state and messages over Messages and AirDrop by leveraging the GroupSessionMessenger to handle real-time data transmission between session participants.

What is the best way to start a GroupActivity session for collaborative iOS apps?

The best way to start a collaborative session is to define a GroupActivity struct with appropriate metadata, call prepareForActivation(), and handle the user's sharing selection to initiate the activity across iOS devices.

Do I need AVFoundation for coordinated media playback in real-time collaborative apps?

Yes, AVFoundation is required alongside GroupActivities to achieve coordinated media playback, as it provides the AVPlaybackCoordinator necessary to synchronize media timing across multiple participants.

Does GroupActivities support session lifecycle management for shared real-time experiences?

GroupActivities fully supports session lifecycle management for shared experiences, explicitly handling the processes of starting, joining, leaving, and ending collaborative group sessions across Apple platforms.

What are the limitations of using GroupSessionMessenger for data synchronization?

GroupSessionMessenger is designed specifically for syncing small, time-sensitive app state and messages between participants, making it unsuitable for transferring large media files or continuous data streams.