Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 09-05-2009, 12:48 PM   #5 (permalink)
KennyChong
iPhone SDK fanatics!
 
Join Date: Aug 2009
Location: Malaysia
Posts: 405
KennyChong is on a distinguished road
Default

Quote:
Originally Posted by japaternoster View Post
Using the tutorials that you have seen, simply change the code that retrieves the remote video to the following. This will retrieve a local file.

Code:
NSString *rootPath = [[NSBundle mainBundle] resourcePath];
NSString *filePath = [rootPath stringByAppendingPathComponent:@"example.mov"];
NSURL *fileURL = [NSURL fileURLWithPath:filePath isDirectory:NO];
yourMoviePlayer = [[MPMoviePlayerController alloc] initWithContentURL: fileURL];

Need help on this one as well.
Where should the example.mov file be located in the XCODE?
Thanks.
__________________
KennyChong
iPhone SDK Fanatic!
KennyChong is offline   Reply With Quote
 

» Advertisements
» Online Users: 687
23 members and 664 guests
ADY, Ammad, ayesha25, baja_yu, bignoggins, coreyb, cryophile, dacapo, djbrooks111, GHuebner, givensur, IOOIOIO, jeewan, jochimo, kldmurshed, Kryckter, MarkC, Newbie123, nobre84, pipposanta, sacha1996, seecoolguy, shadowfax
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,181
Threads: 93,920
Posts: 402,153
Top Poster: BrianSlick (7,967)
Welcome to our newest member, ayesha25
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 01:15 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.