How can I create an app that plays video from a remote source
Asked on 2024-07-30
1 search
To create an app that plays video from a remote source, you can leverage several frameworks and APIs provided by Apple. Here are some key points and sessions from WWDC that can help you get started:
-
AVKit and AVPlayerViewController:
- AVKit provides a high-level interface for video playback, and AVPlayerViewController is a view controller that manages the playback of video content.
- It supports both 2D and 3D video, and is a great option for consistent presentation across different types of content.
- For more details, you can refer to the session Build compelling spatial photo and video experiences.
-
HTTP Live Streaming (HLS):
- AVPlayerViewController supports HTTP Live Streaming (HLS), which is a protocol for streaming video over the internet.
- This is particularly useful for playing video from remote sources.
-
Multiview Video Playback:
- If you are developing for visionOS and want to provide a more immersive experience, you can use the Multiview feature in AVKit.
- This allows you to present multiple video screens for simultaneous viewing.
- For more information, check out the session Explore multiview video playback in visionOS.
-
SwiftUI Integration:
- If you are building a macOS app, you can use SwiftUI to create and manage your app's windows and integrate video playback.
- You can organize and play videos using scenes like
WindowandWindowGroup. - For more details, refer to the session Tailor macOS windows with SwiftUI.
Relevant Sessions
- Build compelling spatial photo and video experiences
- Explore multiview video playback in visionOS
- Tailor macOS windows with SwiftUI
By leveraging these frameworks and sessions, you can create a robust app that plays video from remote sources, tailored to the specific platform you are targeting.

Introducing enterprise APIs for visionOS
Find out how you can use new enterprise APIs for visionOS to create spatial experiences that enhance employee and customer productivity on Apple Vision Pro.

Enhance the immersion of media viewing in custom environments
Extend your media viewing experience using Reality Composer Pro components like Docking Region, Reverb, and Virtual Environment Probe. Find out how to further enhance immersion using Reflections, Tint Surroundings Effect, SharePlay, and the Immersive Environment Picker.

Explore multiview video playback in visionOS
Learn how AVExperienceController can enable playback of multiple videos on Apple Vision Pro. Review best practices for adoption and explore great use cases, like viewing a sports broadcast from different angles or watching multiple games simultaneously. And discover how to design a compelling and intuitive multiview experience in your app.
