Link to home
Start Free TrialLog in
Avatar of carvalhaes
carvalhaes

asked on

Sample from Apple.com have an error (There is no SDK with the name or path 'iphoneos3.0)

Hi!
I try to run this code of a sample program name "MoviePlayer", from
http://developer.apple.com/iphone/library/samplecode/MoviePlayer_iPhone/Introduction/Intro.html
My iPhone SDK is the newest and when i try to run i received this message of error:
"There is no SDK with the name or path 'iphoneos3.0'".

How can i fix the program to make it run at my mac?

Thanks and sorry for my bad english!

(if someone knows a code of a movieplayer like the 'Videos' from an iPhone, please tell me)
Avatar of pgnatyuk
pgnatyuk
Flag of Israel image

That example should work. Maybe, you need to check and modify the project settings. Firstly check that your build to iPhone SDK. Check different configuration: release, debug. device, simulator, etc. If you will select the top most item in the left panel in Xcode and click on the right mouse, in the popup menu you can choose "Get Info" - that's the project settings. You can see and modify them. Also you need to check the Targets in the project - right click and modify.
>>How can i fix the program to make it run at my mac?
Oh. I didn't pay attention on it. Do you want an iPhone program run under Mac OS X?
If yes, my previous comment is wrong. Sorry.
You need to look for an example for Mac OS X. For example something for "Core Video sample". I've not tested myself. But I see, for example:
http://developer.apple.com/mac/library/samplecode/QTCoreVideo103/Introduction/Intro.html
Or something for Quicktime.
Here is a list of samples on the developer site:
http://developer.apple.com/mac/library/navigation/index.html?section=Resource+Types&topic=Sample+Code
 
Avatar of carvalhaes
carvalhaes

ASKER

thanks but this "Core Video Sample" isnt for iPhone.
i need a sample code for a video player for iPhone.
?
>>How can i fix the program to make it run at my mac?

Here you wanted a video sample to run on the mac. Please decide what you need. :) And let me know.
sorry for my bad english!

im programming at xcode, to make an iPhone program.
i use my mac to make this program, and i want to play
a video at iPhone Simulator
Now I understand. I'm afraid to promise to download and test this sample, but if it will happen I will let you know.
I found this article:
Play Video with MPMoviePlayerController in iOS 3.0 and 3.2/4.0
http://iphoneincubator.com/blog/audio-video/play-video-with-mpmovieplayercontroller-in-ios-3-0-and-3-24-0
and wanted to begging from it.

ASKER CERTIFIED SOLUTION
Avatar of pgnatyuk
pgnatyuk
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
I attached the screenshot - simulator with the MoviewPlayer loaded.

iPhone-Simulator.jpg
I downloaded the sample you told.
This article:
Play Video with MPMoviePlayerController in iOS 3.0 and 3.2/4.0
http://iphoneincubator.com/blog/audio-video/play-video-with-mpmovieplayercontroller-in-ios-3-0-and-3-24-0?

does not contain a code to download. You can cut and paste if you wish. But you need to create the project.

ok... the video plays at my iphone simulator, but im having three problems:
1 - if i rotate the iPhone Simulator, the video dont rotate.
2 - if i touch the video, i cant see the buttons (play, pause, etc.)
3 - when the video finish, the program close.

i just use the first of the three codes of http://iphoneincubator.com/blog/audio-video/play-video-with-mpmovieplayercontroller-in-ios-3-0-and-3-24-0?

thanks
You are welcome to ask related questions. Really.
i dont understand what you say...
do you want that i put accept as solution and after that i create more threads with these three questions?
im new here at experts-exchange and i dont understand how this site works...
but thanks!
If you already got the answer for your question, you accept a comment as a solution, and, then, you can ask a related question.
EE Help about the related questions:
https://www.experts-exchange.com/help.jsp#hs=29&hi=414
I'd recommend you to ask these three questions separately - these are three different questions. I think so.

You marked a comment with the screenshot as the accepted solution. Why?
The solution is http://#a33590477.

oh yes, i made a mistake... is it possible to change the answer to the ...477?
In case you need to change the accepted solution, you just press "Request Attention" in the right-down corner of the question area. Then, say what is the problem.
I think, it's better if you will do it. I can press "Request Attention" too, but my explanation will be much longer. :)
Thanks.