• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1452
  • Last Modified:

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++.
0
numberkruncher
Asked:
numberkruncher
  • 2
  • 2
1 Solution
 
numberkruncherAuthor Commented:
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.
0
 
t-maxCommented:
Great, I'm glad to help. All the best!
0
 
numberkruncherAuthor Commented:
Thanks for your help, I managed to work out the rest by myself.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now