Multitasking and YouTube

Discussion in 'iOS Programming' started by nehalvpatel, Jan 19, 2012.

  1. nehalvpatel, Jan 19, 2012
    Last edited: Jan 19, 2012

    nehalvpatel macrumors newbie

    Joined:
    Aug 15, 2010
    #1
    Howdy doo.

    I'm facing two problems here and need some help:
    1) I am trying to get an MPMoviePlayerController to Multitask, and have it be able to be controlled from the Multitasking bar. I applied the changes in the info.plist, but that didn't do anything. I proceeded to search for solutions, and all I saw was how to multitask with the AVAudioPlayer.

    2) Is there a way to launch a YouTube video using just a button? The only thing I see that comes close to that is handing the video directly to the YouTube app, but I want the users to stay in my app. Also, would it be possible for that to multitask, too?

    Please help. :confused:
     
  2. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
  3. nehalvpatel thread starter macrumors newbie

    Joined:
    Aug 15, 2010
    #3
    At the time I posted it, I wasn't looking at my code. I got media and movie mixed up. I meant to say MPMoviePlayerController. :eek:
     
  4. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #4
  5. nehalvpatel thread starter macrumors newbie

    Joined:
    Aug 15, 2010
    #5
    Yeah, I needed the audio from the MediaPlayer to play in the background, because I'm streaming the audio from my server.

    Thanks for the documentation, I'll look into it! :D
     

Share This Page