Benches iPhone

4

Unable to play youtube videos - using pro…

apple Verified

Imported from the Apple Support Forums via the Wayback Machine 🔗

Youtube videos do not play in my configuration. Most youtube content appears, but attempting to play a video results in a popup message "This movie could not be played". Sorry for the length of the post, but I'm trying to get enough documentation down here to save some time for the next person who runs into this.

My basic network configuration is:

ipod->wireless-router->squid-proxy
->pix->internet

*I am analyzing logfiles from the proxy and the pix, and I have network traces from the proxy.

There are 2 issues so far with proxy access from the youtube application on the fw v2.2 ipod touch. After hitting the first issue, I made a call to tech support who pointed me to an older apple discussion thread about a similar issue which indicated the problem could be fixed by "reconfiguring the proxy server", but no details were given in that discussion thread about exactly what needed to be 'reconfigured'. I believe have figured out what was going wrong, and I document it as issue 1 below in case anyone else runs into it.

Issue 1 (which I managed to get solved) is that the youtube application sends a 'Host:' header pointing to gdata.youtube.com, but the requested url is actually iphone-wu.apple.com. Squid rewrites the 'host' header to iphone-wu.apple.com, and the target server fails the request with a 404. A solution (for squid) is to use a redirector to rewrite these url's to actually go to gdata.youtube.com and to set the 'url
rewrite_hostheader off' value.

Unfortunately, resolving issue #1 was not sufficient to get youtube off the launch pad:

Issue 2 (which seems unsolveable at the moment) is that the youtube application is ignoring proxy settings for some of its content requests. In addition to the proxy requirement, I have egress firewalling and logging set up. I observe the youtube application asking for many url's via the proxy and then I observe the egress firewall deny an attempt at a direct access to port 80 on an external server BYPASSING the proxy settings. Without opening up the egress firewall rules (and thereby disable requirement for a proxy), this makes the youtube application inoperative.

If anyone has some insight on how I can get this working, I'd appreciate it. I will attempt another support call tomorrow with my logfiles in hand...

4 replies

Sign in or join Beachball Help to reply.

  1. 0

    rold5

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    I have verified that the same proxy bypass attempt is also occurring from the iTunes applet preview function. fw version 2.2 (5G77a).

  2. 0

    tpesce

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    THANK YOU!

    I too read the original "reconfigured the proxy server" thread, but never found the necessary details to fix the problem. Since I don't firewall my egress your proposed solution for Issue 1 solves my long-standing youtube problem.

  3. 0

    tpesce

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Here are a few more specifics on my redirector. From the logfile analysis I've done there seem to be two URL prefixes that need to be rewritten.

    http://iphone-wu.apple.com/feeds/api/ =>
    http://gdata.youtube.com/feeds/api/

    http://iphone-wu.apple.com/feeds/videos/ =>
    http://gdata.youtube.com/feeds/videos/

    Another unexpected benefit: this fix also solved the problem I was having with youtube videos not showing up when using mobile Safari.

  4. 0

    rold5

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Thanks for posting! -- I'm glad the info is helpful to you. There is more that I have been deliberately keeping quiet about while trying to work through a support call that was logged 27-dec-08. Without going into a lot of detail, the support call is still open, and I'm still working on getting a resolution from apple engineering. I hope that by providing this information, my support call doesn't get terminated as having been "solved" - which it most definitely has not been. It is my belief that only a firmware update will fix this.

    (And as an aside ... I've spoken with three or four support reps at apple, and all have been very nice and have tried to help out! I've been quite pleased with the front end to their support org. I just really want to hear that someone has LOOKED at the code and found the error and it will be fixed in a future update!)

    A work-around for the youtube and itunes applet failures is to set your squid up as a transparent proxy. That way, the network accesses that these applets make that attempt to bypass the proxy are hidden and the applets "work".

    I would most certainly appreciate any further corroboration of this misbehavior -- more than one site being able to demonstrate these applets bypassing the proxy would be quite helpful.

    (Note also that the lastest firmware 2.2.1 also exhibits this issue)

    Thanks.