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 01-09-2012, 06:39 AM   #1 (permalink)
Registered Member
 
Join Date: Sep 2011
Location: texas
Posts: 49
raptor85 is on a distinguished road
Default video problem in iOS 5

Code:
- (void)setupCombinedVideo {
    NSURL *combinedRSandFBUrl = [NSURL fileURLWithPath:[[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@"Page2Movie.m4v"]];
    
    combinedRSandFBPlayer = [[MPMoviePlayerController alloc] initWithContentURL:combinedRSandFBUrl];
    //combinedRSandFBPlayer.shouldAutoplay = NO;
    combinedRSandFBPlayer.repeatMode = MPMovieRepeatModeOne;
    combinedRSandFBPlayer.controlStyle = MPMovieControlModeDefault;
    combinedRSandFBPlayer.view.frame = CGRectMake(0.0, 139.0, 1024.0,560.0); 
//    combinedRSandFBPlayer.view.frame = CGRectMake(17.0, 35.0, 990.0,698.0); 
    [scrollButtonView addSubview:combinedRSandFBPlayer.view];
    combinedRSandFBPlayer.view.backgroundColor = [UIColor clearColor];
    scrollButtonView.backgroundColor = [UIColor clearColor];
    [mainScrollView bringSubviewToFront:mainpagePagingIndicator];
The video was used to work perfectly fine in iOS version 4.2/4.3 but when i run the app in iOS 5 simulator the video starts to stuck and completely stops and i am getting this error in "SIGBRT" "An AVPlayerItem can occupy only one position in a player’s queue at a time" .

Can anyone explain me and help me in finding the solution .
raptor85 is offline   Reply With Quote
Old 01-09-2012, 11:00 AM   #2 (permalink)
Registered Member
 
Join Date: Sep 2011
Location: texas
Posts: 49
raptor85 is on a distinguished road
Default

i tried adding
[combinedRSandFBPlayer setControlStyle:MPMovieControlStyleDefault];
but still i experienced same problem
raptor85 is offline   Reply With Quote
Old 01-09-2012, 11:45 AM   #3 (permalink)
Reading the Documentation
 
baja_yu's Avatar
 
Join Date: Sep 2010
Location: 45.255019,19.844908
Posts: 5,414
baja_yu has a spectacular aura about
Default

Put breakpoints in your code and execute step by step to find out on which line it crashes.
baja_yu is offline   Reply With Quote
Old 01-09-2012, 11:28 PM   #4 (permalink)
Registered Member
 
Join Date: Sep 2011
Location: texas
Posts: 49
raptor85 is on a distinguished road
Default

Quote:
Originally Posted by baja_yu View Post
Put breakpoints in your code and execute step by step to find out on which line it crashes.
i have put the video on scroll bar ,first time it works after sometime the video stops playing
raptor85 is offline   Reply With Quote
Old 01-16-2012, 10:26 AM   #5 (permalink)
Registered Member
 
Join Date: Sep 2011
Location: texas
Posts: 49
raptor85 is on a distinguished road
Default

.

Last edited by raptor85; 03-22-2012 at 12:35 AM.
raptor85 is offline   Reply With Quote
Reply

Bookmarks

Tags
ios 5, objective c, xcode

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: 389
9 members and 380 guests
Atatator, buggen, guusleijsten, j.b.rajesh@gmail.com, morterbaher, sacha1996, Sami Gh, tim0504, VinceYuan
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,674
Threads: 94,122
Posts: 402,907
Top Poster: BrianSlick (7,990)
Welcome to our newest member, Atatator
Powered by vBadvanced CMPS v3.1.0

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