11-23-2011, 02:16 PM
#1 (permalink )
Registered Member
Join Date: Oct 2011
Posts: 10
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];
** *}
**}
}
11-23-2011, 02:19 PM
#2 (permalink )
Just helping out.
Join Date: Feb 2011
Posts: 2,565
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.
11-23-2011, 02:37 PM
#3 (permalink )
Registered Member
Join Date: Oct 2011
Posts: 10
Quote:
Originally Posted by
Domele
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.
11-23-2011, 02:45 PM
#4 (permalink )
Just helping out.
Join Date: Feb 2011
Posts: 2,565
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.
11-23-2011, 02:50 PM
#5 (permalink )
Registered Member
Join Date: Oct 2011
Posts: 10
Quote:
Originally Posted by
Domele
P.S. @Duncan, totally called it.
God damn
11-23-2011, 02:55 PM
#6 (permalink )
Just helping out.
Join Date: Feb 2011
Posts: 2,565
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.
11-23-2011, 03:39 PM
#7 (permalink )
Registered Member
Join Date: Oct 2011
Posts: 10
Quote:
Originally Posted by
Domele
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.
11-23-2011, 05:08 PM
#8 (permalink )
Just helping out.
Join Date: Feb 2011
Posts: 2,565
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.
11-23-2011, 05:17 PM
#9 (permalink )
Registered Member
Join Date: Oct 2011
Posts: 10
Quote:
Originally Posted by
Domele
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
11-24-2011, 07:22 AM
#10 (permalink )
almostfunnydev
iPhone Dev SDK Supporter
Join Date: Oct 2009
Age: 34
Posts: 3,015
Quote:
Originally Posted by
Travrew
God damn
I thought of helping you until i see this msg. don't expect to get help anywhere with this kind of words........
11-24-2011, 01:50 PM
#11 (permalink )
Registered Member
Join Date: Oct 2011
Posts: 10
Quote:
Originally Posted by
rocotilos
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!
Thread Tools
Display Modes
Linear Mode
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
» 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