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 > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 11-23-2011, 02:16 PM   #1 (permalink)
Registered Member
 
Join Date: Oct 2011
Posts: 10
Travrew is on a distinguished road
Question Can someone help me apply this code?

I want to make an app that plays a video fullscreen on startup with no video controls and no response to touch. Can someone help me do this? I have the coding that supposedly does this:
Code:
- (IBAction) videoAction:(id)sender
{
**if (myMovie)
** *return ;
**
**NSString* a_path = [[NSBundle mainBundle] pathForResource:@"kevin-kell-introduction" ofType: @"mp4"];
**
**if (a_path==nil)
** *return ;
**
**NSURL* a_url = [NSURL fileURLWithPath:a_path];
**
**if (a_url==nil)
** *return ;
**
**Class moviePlayerViewControllerClass = (NSClassFromString(@"MPMoviePlayerViewController"));
**newStyleVideoPlayer = moviePlayerViewControllerClass && [MPMoviePlayerViewController instancesRespondToSelector: @selector(presentMoviePlayerViewControllerAnimated:)];
**if (newStyleVideoPlayer)
**{
** *//We're running in iOS 3.2 or later, so use the new MPMoviePlayerViewController class.
** *
** *MPMoviePlayerViewController* movie_controller = [[[MPMoviePlayerViewController alloc] initWithContentURL:a_url] autorelease];
** *
** *if (movie_controller) {
** * *self.myMovie = movie_controller;
** * *
** * *[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(playBackFinished:) name:@"MPMoviePlayerPlaybackDidFinishNotification" object:nil];
** * *
** * *MPMoviePlayerController* theMoviewPlayer = movie_controller.moviePlayer;
** * *theMoviewPlayer.controlStyle = MPMovieControlStyleNone;
** * *//theMoviewPlayer.fullscreen = TRUE;
** * *
** * *[[UIApplication sharedApplication] setStatusBarHidden: TRUE withAnimation: UIStatusBarAnimationNone];
** * *[self presentMoviePlayerViewControllerAnimated: (MPMoviePlayerViewController*)self.myMovie];
** *}
**}
}
Travrew is offline   Reply With Quote
Old 11-23-2011, 02:19 PM   #2 (permalink)
Just helping out.
 
Domele's Avatar
 
Join Date: Feb 2011
Posts: 2,565
Domele is on a distinguished road
Default

Okay, so what's not working? What happens?
__________________
If you are looking for a quality developer, I'm your man. Give me a PM if you are interested.

New app - See screenshots and details at www.globaclock.com.

If you want to thank me, click the link. Every click counts. If you want to do more, buy my app. A link is available on my website. Thanks.
Domele is offline   Reply With Quote
Old 11-23-2011, 02:37 PM   #3 (permalink)
Registered Member
 
Join Date: Oct 2011
Posts: 10
Travrew is on a distinguished road
Default

Quote:
Originally Posted by Domele View Post
Okay, so what's not working? What happens?
I'm not very experienced at coding. I'm not sure what to do with the code to make it work.
Travrew is offline   Reply With Quote
Old 11-23-2011, 02:45 PM   #4 (permalink)
Just helping out.
 
Domele's Avatar
 
Join Date: Feb 2011
Posts: 2,565
Domele is on a distinguished road
Default

Call the method?

P.S. @Duncan, totally called it.
__________________
If you are looking for a quality developer, I'm your man. Give me a PM if you are interested.

New app - See screenshots and details at www.globaclock.com.

If you want to thank me, click the link. Every click counts. If you want to do more, buy my app. A link is available on my website. Thanks.
Domele is offline   Reply With Quote
Old 11-23-2011, 02:50 PM   #5 (permalink)
Registered Member
 
Join Date: Oct 2011
Posts: 10
Travrew is on a distinguished road
Default

Quote:
Originally Posted by Domele View Post
P.S. @Duncan, totally called it.
God damn
Travrew is offline   Reply With Quote
Old 11-23-2011, 02:55 PM   #6 (permalink)
Just helping out.
 
Domele's Avatar
 
Join Date: Feb 2011
Posts: 2,565
Domele is on a distinguished road
Default

What's with the "God damn"?
__________________
If you are looking for a quality developer, I'm your man. Give me a PM if you are interested.

New app - See screenshots and details at www.globaclock.com.

If you want to thank me, click the link. Every click counts. If you want to do more, buy my app. A link is available on my website. Thanks.
Domele is offline   Reply With Quote
Old 11-23-2011, 03:39 PM   #7 (permalink)
Registered Member
 
Join Date: Oct 2011
Posts: 10
Travrew is on a distinguished road
Default

Quote:
Originally Posted by Domele View Post
What's with the "God damn"?
I had a feeling you would find this thread.

Anyway, I just want this one app built, then I'll delete xcode, delete my account here, delete anything to do with coding iPhone apps. This is the one thing I want on my iPhone that isn't already available.
Travrew is offline   Reply With Quote
Old 11-23-2011, 05:08 PM   #8 (permalink)
Just helping out.
 
Domele's Avatar
 
Join Date: Feb 2011
Posts: 2,565
Domele is on a distinguished road
Default

Well the thing is, this forum isn't for free code or to get small apps built for free. It's to help people learn how to code, to troubleshoot problems, and to discuss things. Just like everyone else, if you want something built without learning or doing anything yourself, hire a developer. Plus, to even put this app on your iPhone or iOS device, you know that you have to pay the $100 membership fee right?
__________________
If you are looking for a quality developer, I'm your man. Give me a PM if you are interested.

New app - See screenshots and details at www.globaclock.com.

If you want to thank me, click the link. Every click counts. If you want to do more, buy my app. A link is available on my website. Thanks.
Domele is offline   Reply With Quote
Old 11-23-2011, 05:17 PM   #9 (permalink)
Registered Member
 
Join Date: Oct 2011
Posts: 10
Travrew is on a distinguished road
Default

Quote:
Originally Posted by Domele View Post
Well the thing is, this forum isn't for free code or to get small apps built for free. It's to help people learn how to code, to troubleshoot problems, and to discuss things. Just like everyone else, if you want something built without learning or doing anything yourself, hire a developer. Plus, to even put this app on your iPhone or iOS device, you know that you have to pay the $100 membership fee right?
Yes, I know, but there are other ways. Screw this, I'm going to Xsellize
Travrew is offline   Reply With Quote
Old 11-24-2011, 07:22 AM   #10 (permalink)
almostfunnydev
iPhone Dev SDK Supporter
 
rocotilos's Avatar
 
Join Date: Oct 2009
Age: 34
Posts: 3,015
rocotilos is on a distinguished road
Default

Quote:
Originally Posted by Travrew View Post
God damn
I thought of helping you until i see this msg. don't expect to get help anywhere with this kind of words........
rocotilos is offline   Reply With Quote
Old 11-24-2011, 01:50 PM   #11 (permalink)
Registered Member
 
Join Date: Oct 2011
Posts: 10
Travrew is on a distinguished road
Default

Quote:
Originally Posted by rocotilos View Post
I thought of helping you until i see this msg. don't expect to get help anywhere with this kind of words........
I already found a much easier solution. Goodbye, coding stuff!
Travrew is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 403
14 members and 389 guests
7twenty7, chiataytuday, Clouds, dedeys78, Duncan C, e2applets, EvilElf, iekei, ipodphone, leostc, Murphy, QuantumDoja, sacha1996, Sami Gh
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,676
Threads: 94,125
Posts: 402,910
Top Poster: BrianSlick (7,990)
Welcome to our newest member, jleannex55
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 06:36 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0