1

Possible Duplicate:
Using MPMoviePlayerViewController in SDK 3.2 for iPad

I am writing an application for iPad. till now I have a splash screen then a home screen. Home screen has 6 buttons. Pressing a button on the second or home screen takes you to the third screen which has two options a)Play Video b)read document. Now if play video is pressed it plays the video corresponding to the button pressed on second or home screen. similarly for the Read document, it opens a pdf file respective to the button pressed on home screen. Now I want to add video and pdf to those screens. how can i do it? Any help will be highly appreciated.

Best Regards Prateek

Community
  • 1
  • 1
Prateek Chaubey
  • 653
  • 2
  • 10
  • 24
  • You want to play video separately and read pdf separately then I can suggest you something useful, let me know. – UPT Sep 29 '11 at 17:06

2 Answers2

2

Just load the files into UIWebView, it can handle both videos and PDFs.

Jim
  • 72,985
  • 14
  • 101
  • 108
1

To play the video use the movieplayer framework form apple. Have a look into the sample code from apple here http://developer.apple.com/library/ios/#samplecode/MoviePlayer_iPhone/index.html To read the PDF document and having some gestures for page turn use the following sample code form github: https://github.com/brow/leaves

UPT
  • 1,490
  • 9
  • 25