Search Results

Search found 4 results on 1 pages for 'alex1987'.

Page 1/1 | 1 

  • iphone: problem playing youtube mp4's over 3g network

    - by Alex1987
    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?*&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.

    Read the article

  • iphone sdk: finding the direction of scrolling in UIScrollView

    - by Alex1987
    I have a UIScrollView with only horizontal scrolling allowed, and I would like to know which direction (left, right) the user scrolls. What I did was to subclass the UIScrollView and override the touchesMoved method: - (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event { [super touchesMoved:touches withEvent:event]; UITouch *touch = [touches anyObject]; float now = [touch locationInView:self].x; float before = [touch previousLocationInView:self].x; NSLog(@"%f %f", before, now); if (now > before){ right = NO; NSLog(@"LEFT"); } else{ right = YES; NSLog(@"RIGHT"); } } But this method sometimes doesn't get called at all when I move. What do you think?

    Read the article

1