Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 504
Domness Avatar asked Nov 16 '25 13:11

Domness


1 Answers

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).
like image 94
mfazekas Avatar answered Nov 19 '25 09:11

mfazekas



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!