Solved

Question with Objective-C and iPhone

Posted on 2011-02-19
4
1,412 Views
Last Modified: 2012-05-11
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
Comment
Question by:numberkruncher
  • 2
  • 2
4 Comments
 
LVL 6

Accepted Solution

by:
t-max earned 500 total points
Comment Utility
0
 
LVL 13

Author Comment

by:numberkruncher
Comment Utility
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
 
LVL 6

Expert Comment

by:t-max
Comment Utility
Great, I'm glad to help. All the best!
0
 
LVL 13

Author Closing Comment

by:numberkruncher
Comment Utility
Thanks for your help, I managed to work out the rest by myself.
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

In this article we will discuss some EI Capitan Mail app issues and provide some manual process to resolve them.
Set up iPhone and iPad email signatures to always send in high-quality HTML with this step-by step guide.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now