How to Access Video Podcasts With the iPhone SDK

The iPhone SDK provides you with a programming platform you use to create Apple iPhone apps for users. You can use the SDK to access the video podcasts on the phone and play the content for users. Podcasts are set up in video format, so the SDK only needs you to point to the video to play it on the iPhone.

Instructions

    • 1

      Open the iPhone SDK software on your desktop and open the iPhone app project you want to use to access the video podcasts.

    • 2

      Add the podcast function to your project. You use this function to play a specified podcast when a user taps a button or video. Add the following code to the source code:

      - (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info
      {

      }

      Your code that runs the video is placed within the brackets.

    • 3

      Add the code that plays the podcast. Place the following code in the brackets to play the specified podcast:

      NSURL* videoUrl = [info objectForKey:UIImagePickerControllerMediaURL];

      This code lets you play a podcast dynamically. Replace the value with a podcast URL, if you want to play a static podcast.

    • 4

      Save the changes and click "Run" to review the changes in the SDK debugger.

Related Searches:

References

Comments

Related Ads

Featured