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 02-26-2010, 07:36 PM   #1 (permalink)
red
Registered Member
 
red's Avatar
 
Join Date: Jul 2009
Posts: 49
red is on a distinguished road
Default When to play MPMoviePlayerController object?

Anybody familiar with MPMoviePlayerController class? The Apple sample code begins playing the movie after allocating and initializing it like this:
Code:
MPMoviePlayerController *mp = [[MPMoviePlayerController alloc] initWithContentURL:movieURL];
...
[mp play]
This does not let the moviePreloadDidFinish notification to be called. If an error occurs in pre-loading then the movie will try to play anyways. I think it would be better to play the movie object when the notification is called:
Code:
- (void) moviePreloadDidFinish:(NSNotification*)notification {
	NSDictionary *info = [notification userInfo];
	// Check if info contains error
	
	// Play object IF error did not occur
	MPMoviePlayerController* moviePlayerObj=[notification object];
	[moviePlayerObj play];
}
Thoughts?
red is offline   Reply With Quote
Old 02-27-2010, 06:39 PM   #2 (permalink)
red
Registered Member
 
red's Avatar
 
Join Date: Jul 2009
Posts: 49
red is on a distinguished road
Default

bump.
red is offline   Reply With Quote
Reply

Bookmarks

Tags
moviepreloaddidfinish, mpmovieplayercontroller

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: 343
9 members and 334 guests
2Apps1Day, akacaj, c2matrix, esoteric, givensur, mjnafjke, Pudding, SLIC, Techgirl-52
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,650
Threads: 94,115
Posts: 402,887
Top Poster: BrianSlick (7,990)
Welcome to our newest member, soohyun
Powered by vBadvanced CMPS v3.1.0

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