Solved

Question with Objective-C and iPhone

Posted on 2011-02-19
4
1,427 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 6

Accepted Solution

by:
t-max earned 500 total points
ID: 34934352
0
 
LVL 13

Author Comment

by:numberkruncher
ID: 34934560
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
ID: 34934667
Great, I'm glad to help. All the best!
0
 
LVL 13

Author Closing Comment

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

Featured Post

Easy, flexible multimedia distribution & control

Coming soon!  Ideal for large-scale A/V applications, ATEN's VM3200 Modular Matrix Switch is an all-in-one solution that simplifies video wall integration. Easily customize display layouts to see what you want, how you want it in 4k.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Migrate Application To New Mac 5 66
call history on iphone 10 28
Exchange 2010 Creating an alias & testing it 2 41
iCloud for Desktop 3 35
Set up iPhone and iPad email signatures to always send in high-quality HTML with this step-by step guide.
Is your phone running out of space to hold pictures?  This article will show you quick tips on how to solve this problem.
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to: http://www.codetwo.com/excha…
CodeTwo Sync for iCloud (http://www.codetwo.com/sync-for-icloud?sts=6554) automatically synchronizes your Outlook 2016, 2013, 2010 or 2007 folders with iCloud folders available via iCloud Control Panel. This lets you automatically sync them with…

730 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