Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Jan 23, 2012, 07:29 AM   #1
bankC
macrumors newbie
 
Join Date: Jan 2012
Help re animation at start of iPhone app

Hi Everyone,

I am getting an iPhone app developed and at the start of the app there is an animation. My developer has told me I have to give him the animation as a quicktime movie and also the first frame of the quicktime movie as a png. I have done this but when he sends me the test version of the app, you see the png and then it flicks to a black screen for maybe half a second and then the animation begins. He has told me it is not possible to start an app with the quicktime movie playing from the very beginning and that there has to be a static image (the png) before the movie can play.

I just want the app to load up and play the animation straight away without any pause and black screen, is this possible?

I was thinking that if I gave him an entire png sequence of each frame of the animation (instead of a quicktime movie) that this would overcome the problem of the pause (black screen) before the quicktime movie starts after the intial png frame. I hope this makes sense!

There is also audio with the animation that need to be exactly in sync with what you see when the animation is played.

Any advice would be appreciated as what he is telling me just doesn't seem right.

Thanks,

BankC!
bankC is offline   0 Reply With Quote
Old Jan 23, 2012, 08:45 AM   #2
jnoxx
macrumors 65816
 
jnoxx's Avatar
 
Join Date: Dec 2010
Location: Aartselaar // Antwerp // Belgium
Hm, the thing is like this.
When an iPhone application starts up, it will use a default Image (static), while the application is loading up on the OS. So that's the image he is talking about. Then probably in his code, he will start the movie, but since he doesn't preloaded the movie, that's why you have the black screen for a sec..
So, there's either the choice of coding that bit better OR, give him the sequence of images, since iPhone has a method for that, to display alot of images after each other.. (and you can perfectly play a sound in sync with it with some basic code..).
He isn't lying to you, just need to fine tune a bit

Gz, Noxx
__________________

iPad Mini, iPad 4, iPad 2, iPhone 3G,4,5, iMac 24", Mac Mini Last gen, Macbook Pro Retina with Dell U2711
jnoxx is offline   0 Reply With Quote
Old Jan 23, 2012, 02:23 PM   #3
seepel
macrumors 6502
 
Join Date: Dec 2009
Depending on the length, loading all those images would eat up memory pretty quickly. Especially if you are making retina versions. Is the animation functional, or is it just like a splash screen? Ultimately I would rethink the design decision that leads to needing an animation to be shown right away. You may think the animation is great, and it probably looks cool and flashy, but ultimately users probably don't care. They just want to launch the app. So I would just drop the animation unless it is actually functional and needed.

As mentioned when the app launches iOS displays a default image (which you define). Then when the app has finished launching you gain control. If it were me when I got control I would display the same static image right away. Then start loading up the video. This might get rid of the flicker.
__________________
Free iOS App that turns your music library into an info graphic.
Phonographic
seepel is offline   0 Reply With Quote
Old Jan 23, 2012, 05:14 PM   #4
dejo
Moderator
 
dejo's Avatar
 
Join Date: Sep 2004
Location: The Centennial State
Quote:
Originally Posted by jnoxx View Post
(and you can perfectly play a sound in sync with it with some basic code..)
Really? Do you have some of this basic code handy and are willing to share?
__________________
dejo is offline   0 Reply With Quote
Old Jan 23, 2012, 05:59 PM   #5
PhoneyDeveloper
macrumors 68030
 
PhoneyDeveloper's Avatar
 
Join Date: Sep 2008
I have an app that plays a launch video like you describe and it usually runs without seeing the black screen. There's a launch image in an image view that fills the screen. The video player is created and placed behind the launch image. The video starts to play and then after a delay of 1 second the launch image is removed.

The video player does start out black and then the video appears after a short delay.

I did have to mess around with it to get it to play smoothly without the black flash.
PhoneyDeveloper is offline   0 Reply With Quote
Old Jan 25, 2012, 04:34 AM   #6
jnoxx
macrumors 65816
 
jnoxx's Avatar
 
Join Date: Dec 2010
Location: Aartselaar // Antwerp // Belgium
Quote:
Originally Posted by dejo View Post
Really? Do you have some of this basic code handy and are willing to share?
The trick is, or use Cocos2D or Objective-C whatever you want.
You need to preload your sounds, since iOS sucks at sound management, when both are ready. you can just start playing both
You can also check the index of the sound vs the seconds of an Video to sync it to your likings. (so nothing like .sync = YES )
Hope that sets you on the way Dejo.
__________________

iPad Mini, iPad 4, iPad 2, iPhone 3G,4,5, iMac 24", Mac Mini Last gen, Macbook Pro Retina with Dell U2711
jnoxx is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
very choppy start up animation rmbp "15 late 2013 mr.bee MacBook Pro 3 Apr 11, 2014 09:36 AM
iPhone 5s App update bug??!? (no animation when manually updating) Colonel Badger iOS 7 2 Sep 24, 2013 01:03 PM
How to start an application automatically without login. App should start with OS danje OS X 10.8 Mountain Lion 13 Mar 26, 2013 01:44 AM
Keynote: Start animation on object click dgrog Mac Applications and Mac App Store 0 Nov 10, 2012 09:19 AM

Forum Jump

All times are GMT -5. The time now is 11:28 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC