Video to play on launch

Discussion in 'iOS Development' started by veeloc, Mar 7, 2009.

  1. veeloc

    veeloc New Member

    Joined:
    Sep 6, 2008
    Messages:
    815
    Likes Received:
    0
    Device:
    iPhone 3GS (Black)
    if youve used asphalt 4 before, than you know the fancy little video that launches when it starts, the one that can be annoying too...

    anyway just wondering how to get a video to start on launch (and also an image (not at the same time))

    and then how to only have it be the first time it is launched (.plist?)
  2. Chicken

    Chicken Retired Moderator

    Joined:
    Feb 17, 2008
    Messages:
    2,494
    Likes Received:
    7
    Device:
    iPhone 5S
    all I can think of it -(void)loadView {
    [super loadView];
    // You're video player code here
    }

    This may be right this may not be
  3. gojohnnyboi

    gojohnnyboi Well-Known Member

    Joined:
    Jan 25, 2008
    Messages:
    3,339
    Likes Received:
    55
    if you want something to happened as soon as the application loads, then use applicationDidFinishLaunching, that's the best place to do it.
  4. SkylarEC

    SkylarEC Super Moderator Emeritus Staff Member

    Joined:
    Sep 19, 2007
    Messages:
    6,642
    Likes Received:
    129
    Have the Default.png be he first frame of the video. In applicationDidFinishLoading, start the video. Continue doing the rest of hour app loading in a separate thread. When the video completes, run your app like normal.
  5. Steaps

    Steaps New Member

    Joined:
    Oct 24, 2007
    Messages:
    5,074
    Likes Received:
    41
    Device:
    iPod touch
    Didn't even think about setting the Default.png to the first frame. Nice.

Share This Page