Page 1 of 1

ios4 - movie files on new card

Posted: Wed Nov 30, 2011 11:35 pm
by sx-74
Hey all,
I have made my first IOS app, pretty excited, however, I have a question.
LiveCode 4.6.4 Xcode 3.2.6 IOS SDK 4.3

I made a very simple app that has 5 cards.
Button one goes to card 1,
2 to card 2..
3 to card 3
...
5 to card 5

On each card there is a movie. I used the MobGui controls to put the player field on the card.

Saved as should.
all files are contained in the standalone settings.

However, if I test the file on the simulator OR the iphone directly (after saving as stand alone and moving it to the phone with Xcode)
I can play each movie on each card once.
Ex. Go to button 1, (goes to card 1) and plays. hit "back" and back to main menu with all buttons.
Go to button 3.. (goes to card 3) and plays. Hit "back" and back to main menu.
etc..

Then, after I have played the movie on one card..when I go back to that card... the card is blank (as if there isn't a resident movie there) and nothing show up.


Ideas?
Each movie is about 20 megs.. (yes.. huge.. this was a quick and dirty project)

Thanks!~

Re: ios4 - movie files on new card

Posted: Thu Dec 01, 2011 3:10 pm
by Mark
Hi .... (who are you?),

You will need to do some debugging. Can you check that the player object still has a filename associated to it, when you open the card the second time? Are you sure you have set the startTime of the player object to 0 again (I'm not entirely sure that this is called startTime on iOS; please check the documentation). Are you sure that the player object is actually there? It is possible that the player object is deleted when you close the card and not recreated when you open the card again. It is also possible that your script is referencing the wrong player object etc. If these suggestions don't help, you might want to post your script here.

If you think this problem is caused by MobGUI then perhaps you should ask in the section for that tool.

Kind regards,

Mark

Re: ios4 - movie files on new card

Posted: Thu Dec 01, 2011 8:04 pm
by sx-74
Mark,
Thanks for the comments, it provides me several starting points.
I am thinking that the object is getting deleted after I play it, hence why it does not play a second time.

Is there a way to check in the simulator if an object is being called a second time?

Thank you

- Jay

Re: ios4 - movie files on new card

Posted: Mon Dec 19, 2011 3:54 pm
by sx-74
Stripped down the movie files to 3 megs and now they play as expected.
I have a feeling the file size was part of the issue.