Domness
Domness

Reputation: 7605

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.

Upvotes: 3

Views: 1164

Answers (1)

mfazekas
mfazekas

Reputation: 5699

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).

Upvotes: 8

Related Questions