youtube

Discussion in 'iPhone/iPad Programming' started by jagatnibas, Dec 1, 2008.

  1. macrumors regular

    Joined:
    Jul 28, 2008
    #1
    I need to play a youtube link video in my application. When I am able to play other streaming videos, I am unable to play youtube video. I was wondering why

    regards
     
  2. macrumors regular

    Joined:
    Mar 13, 2008
    #2
    how do you actually try to play the movie? what kind of object do you try to use?
     
  3. macrumors regular

    Joined:
    Mar 17, 2008
    #3
    Youtube videos are alone in nature, just a flash movie (SWF) and I'm pretty sure that you don't have a way of playing SWFs on the iPhone. That's what Adobe's trying to get Apple to let them do for a while now =]
     
  4. Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #4
    Some YouTube content is encoded in H.264 and thus can be played on the iPhone. That's the whole basis behind the YouTube app that is native to the iPhone / iPod touch.

    As to the OP's question, I thought there was a way to link to other apps but I can't seem to find that right now.
     
  5. macrumors 6502a

    Joined:
    Mar 13, 2008
    #5
    I've seen quite a few apps that play actual youtube videos... at least while they're loading it says youtube video in the background. I don't know how you do it, but there is a way. Your problem may just be that you're trying to load flash videos, not the mp4 ones.
     
  6. macrumors regular

    Joined:
    Mar 17, 2008
    #6
    Though if you really wanted to try, there are ways to extract the video urls and you could play those since they are encoded in a compatible format.
     
  7. macrumors regular

    Joined:
    Mar 13, 2008
    #7
    yeah, that's why i asked the OP what is he trying to use. he could use one of these online extractor services that take the youtube URL and let you download an mp4, then the media player control; he could use a webview control embedded in an application, that takes the movie url directly; or he can launch safari with the youtube url from inside his app. those web utilities that give you an mp4 download are very fast, and apparently they take a constant time, about a couple of seconds, regardless of the movie size. which kinda means that the youtube movies (or most of them) are actually stored in mp4 format. maybe somebody that knows more about video than i do can explain this better.
     

Share This Page