views:

399

answers:

0

Hi guys

I'm am developing an app that enables the user to stream youtube mp4 videos on the iphone. What I did was very simple - I just took a url of the form http://youtube.com/get_video?the token&fmt=18 (for example http://youtube.com/get_video?video_id=KUXGVfmrEN4&&t=vjVQa1PpcFNrxzfbeI6WrJfK6s0BdQ9ypMgV_6yqwjo=&fmt=18) and used mpmovieplayercontroller or UIWebView to stream the video.

It works great over WIFI but doesn't work at all on 3g network . On 3g I get a blank page in the UIWebView or file format not supported on mpmovieplayercontroller.

Does youtube block access from 3g networks to its mp4 videos? How to bypass this?

You can check this easily yourself on your own iphone by preforming the following steps:

  1. Obtain the download link. You can do this easily by downloading the following plugin for firefox: https://addons.mozilla.org/en-US/firefox/addon/13990.

  2. Email the link to your email.

  3. Open your mail on the iphone and click on the link. Try this on WIFI and 3g.