To stream to Apple TV using AirPlay and Wowza Streaming Engine™ media server software, you need:
- Wowza Streaming Engine
- An iOS device running iOS 4.3 or greater
- Apple TV running version 4.2 or greater
- Follow any of our tutorials to set up a live or video-on-demand) stream. For example, see Set up video-on-demand streaming in Wowza Streaming Engine or Set up live streaming using an RTMP-based encoder in Wowza Streaming Engine.
- Set up an HTML 5 page that points to your content and copy it to a web server:
<!DOCTYPE html> <html> <head> <title>Wowza Streaming Engine</title> </head> <body> <video x-webkit-airplay="allow" controls alt="Big Buck Bunny" width="320" height="180" src="http://188.8.131.52/vod/smil:BigBuckBunny.smil/playlist.m3u8"/><br/> </body> </html>
The sample above points to our demo stream. To stream your own content, substitute your playlist.m3u8 URL for the src value. The x-webkit-airplay="allow" property is important. It enables AirPlay to send video from the iOS device to the Apple TV. Without it, only audio will be sent.
- Open the above webpage in Safari on your iOS device. After the video starts playing, you should see small box icon with an up arrow. Tap 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 Streaming Engine from the AirPlay target.