Deversus Software Inc.

Tip: How to enable AirPlay video in HTML5 video player

by Mike Walsh on March 14, 2011

It appears as though Apple is requiring content providers to expressly allow AirPlay video in order for video to be playable from Safari onto an Apple TV.

To enable AirPlay video in an HTML 5 video player, simply add the following attribute to the video tag:

x-webkit-airplay="allow"

So, your HTML5 video tag might look like (remove spaces from tag open/close):


< video src="/path/to/video.mp4" x-webkit-airplay="allow" preload controls>< /video>

{ 3 comments… read them below or add one }

Alex Karpowitsch March 19, 2011 at 6:23 pm

Nice find!

Reply

Software Development May 4, 2011 at 9:23 am

This is a handy little piece of information that I was going to be needing soon. Thanks for the post, I would have been looking for this in the very near future.

Reply

Jethro123 May 5, 2011 at 1:53 pm

Thanks!

Reply

Leave a Comment

 

Previous post:

Next post: