Link to home
Start Free TrialLog in
Avatar of numberkruncher
numberkruncherFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Question with Objective-C and iPhone

I am experimenting with Objective-C for iPhone with XCode. I have a single-view application and need to add two videos. The first video must loop until the phone is shaken and then it must play the second video as soon as the first video finishes.

I cannot figure out how to add a video. I have included the movie player framework and am trying to figure out how to achieve this. I am experimenting with the MPMoviePlayerViewController class.

I am completely new to Objective-C and am having a hard time understanding the syntax. I am fairly adept at both C and C++.
ASKER CERTIFIED SOLUTION
Avatar of t-max
t-max
Flag of Israel image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of numberkruncher

ASKER

Thanks,

Okay, I have got the video playing now.

I have managed to get the video to repeat continuously. I would like to add an event handler which changes the video when the phone is shaken.

I am starting to get a grasp over the syntax now.
Great, I'm glad to help. All the best!
Thanks for your help, I managed to work out the rest by myself.