---
title: Implementing simple enhanced buffering for your content
framework: avfoundation
role: article
role_heading: Article
path: avfoundation/implementing-simple-enhanced-buffering-for-your-content
---

# Implementing simple enhanced buffering for your content

Configure your app for simple enhanced buffering to stream content faster to AirPlay-enabled devices and supported CarPlay vehicles.

## Overview

Overview The AVPlayer and AVQueuePlayer classes provide the simplest way to enhance buffering for your content with AirPlay 2. To implement simple enhanced buffering, complete the following steps. Create a player. let player = AVQueuePlayer() Identify a URL that points to local or cloud content that you want to play. Create an AVAsset instance with a URL, and then create an AVPlayerItem instance with that asset. let url = URL(string: "http://www.examplecontenturl.com")! let asset = AVAsset(url: url) let item = AVPlayerItem(asset: asset) Give the player item to the player. player.insert(item, after: nil) Start playback. player.play()

## See Also

### Buffered playback

- [Implementing flexible enhanced buffering for your content](avfoundation/implementing-flexible-enhanced-buffering-for-your-content.md)
- [Integrating AirPlay for long-form video apps](avfoundation/integrating-airplay-for-long-form-video-apps.md)
