Greetings! I've recently agreed to work for a friend to try to get his iPhone app updated to be compatible with iPhone OSv4.0. I'm well-versed in C, C# and Java, so I'm making my way alright through the Objective-C code, but am starting to run out of ideas, so I figured I'd turn to the forums and see if other people were experiencing similar issues.
The app is an audiobook-style app, that showcases the services his business provides. eReader is used for the navigation, and it displays videos whose URL is resolved through a sqlite3 database. The Video Player they use extends the MPMoviePlayerController if I'm reading this correctly:
The app worked fine in OS version 3.2, however it won't work on any device running OS version 4.0. Instead of playing the videos correctly, it simply crashes the program. With a little fiddling I was able to get it to play audio form the video, with a black screen, but when I attempt to play a subsequent video, the app still crashes (SIGABRT). At first I thought it was an issue with the sqlite database, but since it is able to retrieve the audio correctly, I'm beginning to think the issue may lie in the MPMoviePlayerController. Are there any known compatibility issues in OS 4.0 that could cause this sort of behavior?
I've tried tracing it to a specific line of code, but using breakpoints only allows me to access the event handlers, which all execute and return correctly. But upon, say, clicking the "Next Video" button, the method executes correctly and returns, but once I continue execution, the program crashes.
Any suggestions? It's quite a lot of code which I'm not familiar with, and any nudges in the right direction would be greatly appreciated.