Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9074319
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T18:36:27+00:00 2026-06-16T18:36:27+00:00

I am playing video using this code. player= [[ MPMoviePlayerViewController alloc] initWithContentURL:movieURL]; player.navigationController.navigationBar.hidden =

  • 0

I am playing video using this code.

player= [[ MPMoviePlayerViewController alloc] initWithContentURL:movieURL];
player.navigationController.navigationBar.hidden = YES;
player.moviePlayer.scalingMode = MPMovieScalingModeAspectFit;
player.moviePlayer.controlStyle = MPMovieControlStyleNone;
player.moviePlayer.movieSourceType = MPMovieSourceTypeFile;
player.moviePlayer.fullscreen = NO;
[self presentModalViewController:player animated:NO];

Video playing works perfectly But the problem is that after finishing play i am getting this result in console.

[MPAVController] Autoplay: Likely to keep up or full buffer: 0
[MPAVController] Autoplay: Skipping autoplay, not enough buffered to keep up.

and then after i am trying to record the voice but unable to record.

can anybody help me to solve this issue.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T18:36:28+00:00Added an answer on June 16, 2026 at 6:36 pm

    same kind of task is done by me… you can take refernce of my code… i hope it helps…

    - (IBAction) startRecording:(id)sender
    {
    
        NSLog(@"**************Recording start**************");    
    
        NSMutableDictionary *recordSetting = [[NSMutableDictionary alloc] init];
    
        // We can use kAudioFormatAppleIMA4 (4:1 compression) or kAudioFormatLinearPCM for nocompression
        [recordSetting setValue :[NSNumber numberWithInt:kAudioFormatLinearPCM] forKey:AVFormatIDKey];
    
        // We can use 44100, 32000, 24000, 16000 or 12000 depending on sound quality
        [recordSetting setValue:[NSNumber numberWithFloat:41000.0] forKey:AVSampleRateKey];
    
        [recordSetting setValue:[NSNumber numberWithInt: kAudioFormatAppleLossless] forKey:AVFormatIDKey];
    
        // We can use 2(if using additional h/w) or 1 (iPhone only has one microphone)
        [recordSetting setValue:[NSNumber numberWithInt: 1] forKey:AVNumberOfChannelsKey];
    
        [recordSetting setValue:[NSNumber numberWithInt:16] forKey:AVEncoderBitRateKey];
    
        NSError *error;
    
        if (![[NSFileManager defaultManager] fileExistsAtPath:mediaPath])
        {
            [[NSFileManager defaultManager] createDirectoryAtPath:mediaPath withIntermediateDirectories:NO attributes:nil error:&error];
        }
    
    
        mediaPath = [[NSString stringWithFormat:@"%@/sound.caf", DOCUMENTS_FOLDER] retain];
        NSURL *url = [NSURL fileURLWithPath:mediaPath];
        NSLog(@"AUDIOPATH%@",mediaPath);
        err = nil;
        NSData *audioData = [NSData dataWithContentsOfFile:[url path] options: 0 error:&err];
    
        if(audioData) {
    
            NSFileManager *fm = [NSFileManager defaultManager];
            [fm removeItemAtPath:[url path] error:&err];
    
        }
    
        err = nil;
        audioRecorder = [[ AVAudioRecorder alloc] initWithURL:url settings:recordSetting error:&err];
    
        if(!audioRecorder){
    
            NSLog(@"audioRecorder : %@ %d %@", [err domain], [err code], [[err userInfo] description]);
            UIAlertView *alert =
            [[UIAlertView alloc] initWithTitle: @"Warning"
                                       message: [err localizedDescription]
                                      delegate: nil cancelButtonTitle:@"OK"
                             otherButtonTitles:nil];
            [alert show];
            return;
        }
    
        //prepare to record
        [audioRecorder setDelegate:self];
        [audioRecorder prepareToRecord];
    
        audioRecorder.meteringEnabled = YES;
    
        BOOL audioHWAvailable = audioSession.inputIsAvailable;
    
        if (! audioHWAvailable) {
    
            UIAlertView *cantRecordAlert = [[UIAlertView alloc] initWithTitle: @"Warning"
                                                                      message: @"Audio input hardware not available"
                                                                     delegate: nil cancelButtonTitle:@"OK"
                                                            otherButtonTitles:nil];
            [cantRecordAlert show];
            [cantRecordAlert release];
            return;
        }
    
        // start recording
        [audioRecorder record];
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am playing youtube video on iPad via webView using this code. NSString *htmlString
I am using flvplayer.swf player, it is playing the videos,but before playing the video
I'm using the code from this question to autoplay an iframe embedded Youtube video
right now i m using this code for playing youtube videos <?php // Replace
I am using the following code to play the video. Actually it is playing
I am using MPMoviePlayerController class for playing the video in built-in media player on
I'm using this code to play a video streaming from the apple site -
I'm using the below code (references from, http://www.java-tips.org/java-me-tips/midp/playing-video-on-j2me-devices.html ). It fails at 'realize()', with
In my android app, I am playing a youtube video using WebView with IFrame
I am using a Phonegap plugin for playing a video in my iOS app.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.