Message from discussion
iFrame HTML5 Youtube Embed Player iOS fails when attempting to use Video Airplay/AppleTV
Received: by 10.236.136.137 with SMTP id w9mr1398452yhi.207.1312825244024;
Mon, 08 Aug 2011 10:40:44 -0700 (PDT)
X-BeenThere: youtube-api-gdata@googlegroups.com
Received: by 10.90.18.23 with SMTP id 23ls13401868agr.4.gmail; Mon, 08 Aug
2011 10:40:32 -0700 (PDT)
Received: by 10.236.76.197 with SMTP id b45mr2488003yhe.130.1312825232229;
Mon, 08 Aug 2011 10:40:32 -0700 (PDT)
Received: by 10.150.25.1 with SMTP id 1msyby;
Sun, 7 Aug 2011 21:43:12 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.91.66.13 with SMTP id t13mr1032147agk.42.1312778592033; Sun,
07 Aug 2011 21:43:12 -0700 (PDT)
Received: by y39g2000prd.googlegroups.com with HTTP; Sun, 7 Aug 2011 21:43:11
-0700 (PDT)
Date: Sun, 7 Aug 2011 21:43:11 -0700 (PDT)
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7)
AppleWebKit/534.48.3 (KHTML, like Gecko) Version/5.1 Safari/534.48.3,gzip(gfe)
Message-ID: <8d62b1a1-a033-4764-be7a-5d793f3c464a@y39g2000prd.googlegroups.com>
Subject: iFrame HTML5 Youtube Embed Player iOS fails when attempting to use
Video Airplay/AppleTV
From: Steven Gemmen <ste...@squrl.com>
To: YouTube APIs Developer Forum <youtube-api-gdata@googlegroups.com>
Content-Type: text/plain; charset=ISO-8859-1
Playback using video airplay/apple tv fails using the HTML5 embed
player. I reported this same issue in April and it was resolved around
May 16, but has now returned.
Recreating the airplay issue with the Youtube iframe universal embed
player and airplay:
1. Go to http://apiblog.youtube.com/2010/07/new-way-to-embed-youtube-videos.html
in mobile safari on an ipad (Latest firmware required, see tested
below)
2. Click on the video to begin playback.
3. Select the airplay button on the player and choose the appletv.
Result: Apple TV displays error message "An error occurred loading
this content. Try again later."
If you visit youtube.com directly for this video on the device in
mobile safari, you are able to stream over airplay (http://
www.youtube.com/watch?v=JW5meKfy3fY).
Tested with:
1. iPad 2 - 4.3.3 (8J2)
2. iPhone - 4.3.1 (8G4)
3. AppleTV 4.3 (2557)
Embedded video (taken from the page source):
<iframe class="youtube-player" type="text/html" width="640"
height="385" src="http://www.youtube.com/embed/JW5meKfy3fY"
frameborder="0"><br /></iframe>
When examining the source created in the iframe, the HTML5 video tag
does appear to enabled for airplay.
<video class="video-stream" controls="true" x-webkit-airplay="allow"
data-youtube-id="JW5meKfy3fY" src="http://v9.lscache6.c.youtube.com/
videoplayback?sparams=id%2Cexpire%2Cip%2Cipbits%2Citag%2Cratebypass
%2Coc
%3AU0hQR1hLT19FSkNOMF9QRVND&itag=18&ip=0.0.0.0&signature=9AEF7119E33B72004BE3E14A254D6CD324655EEE.
2538495714154E95FBC6F3DD2CFE802D1C5C741A&sver=3&ratebypass=yes&expire=1312801200&key=yt1&ipbits=0&id=256e6678a7f2ddf6"></