How to use Apple TV with Wowza Media Server (AirPlay)

Basic instructions to stream to Apple TV using AirPlay from an iOS device using Wowza Media Server 2 or higher.

Hardware and Software:
Wowza Media Server 2.2.3 or greater
iOS device running iOS 4.3 or greater
Apple TV running version 4.2 or greater

Follow one of the tutorials here to set up iOS streaming (live or video on demand).

Set up an HTML 5 page that points to your content and copy it to a web server:

<!DOCTYPE html>
<title>Wowza Media Server</title>
<video x-webkit-airplay="allow" controls alt="Big Buck Bunny" width="320" height="180" src=""/><br/>
The code above is pointing to our demo stream. To stream your own content, substitute your playlist.m3u8 URL for the src value above. The x-webkit-airplay="allow" property is important. It will enable AirPlay to send video from the iOS device to the Apple TV. Without it, only audio will be sent.

Open the above webpage in the Safari browser on your iOS device. After the video starts playing you should see small box icon with an up arrow. Click on this icon and select Apple TV from the list. This will instruct the iOS device to send the video to the Apple TV.

It seems that the video isn't actually sent from the iOS device to Apple TV (AirPlay target) but rather a command is sent to the AirPlay device to tell it to connect directly to the content. You will see a new connection made to the Wowza media server from the AirPlay target.

If you're having problems or want to discuss this article, post in our forum.