简体   繁体   中英

iPhone SDK: Welcome video

Right, I have a video ready for it to be played on start up of my iphone App. How can I get this implemented into my Xcode project?

I would like it to load as soon as the app is loaded, and the after it is played, to follow onto the correct view controller where the main bulk of my programming is.

It's not clear which part you have trouble with:

  1. Playing video and getting notified when it's finished: See " How do i initiate video playback in my code? " from Audio/Video coding howtos .
  2. Starting it as soon the application is loaded: applicationDidFinishLaunching is a good place to call.

The issue is that you'll see your window's content until the video is loaded, one possible workaround:

  • add an image of the first frame to the window, and hide that image when the video finished
  • you should also add this first frame as Default.png to show it until your application is loaded
  • you might need to hide the status bar on startup ( UIStatusBarHidden ) and show it when the movie finished ( setStatusBarHidden ).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM