tags:

views:

21

answers:

1

hi all,

can we play an video file in splash screen?

i mean like we use Defualt.png and sleep interval method to use static splash screen, instead of image, i want to play a video of about 10 sec.

How can i do that?

regards

+1  A: 

No, the default image is shown by the system while your app is loading, so your code isn't running yet (kinda the whole point). Once it is loaded, you can create a media player and play your video.

gavinb
so, that means, maximum things in splash screen is done through animation only. like NFS.
shishir.bobby
Sorry, I don't understand the question. The loading splash screen is a static png. You can only play a video once your app starts.
gavinb
if i want to give animation at splash screen, than how to do it? dat wat i was asking.?
shishir.bobby
See above - you cannot animate the splash screen shown by the system while your app is loading. When the user selects your app from the home screen, the system reads your app's Info.plist, reads the Default.png image and displays that while it loads the app binary. This is a static image. Once loading the binary is finished, your app runs and after init, application:DidFinishLaunchingWithOptions: gets called. At this point you can do whatever you like, including play a video or animation.
gavinb
ok gavinb...thanks for the comment.
shishir.bobby