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

  • SEARCH
  • Home
  • 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 7909231
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T12:19:26+00:00 2026-06-03T12:19:26+00:00

I am working on a program which has a rigid set of ‘stages’ for

  • 0

I am working on a program which has a rigid set of ‘stages’ for video recording… Think of it like a Video-Booth. I am running the program on OSX Lion, coded entirely in Cocoa.

The ‘stages’ are as follows:

  1. Welcome Screen
  2. Begin Recording
  3. Playback Video
  4. Confirmation for Saving/Deleting

Stages 1, 2, and 4 work perfectly every time. And Stage 3 works perfectly the FIRST time.

On the second, or later, time of going through the process, the video playback (which is done by a QTMovieView embedded within a NSPanel) is still set to the video from the FIRST run-through.

I have two methods set-up, one which is activated by a button press, the other by other code in the program. BOTH of these methods DO FIRE, I am positive. What I don’t know is why [mPlaybackView setMovie: lclMov] is not setting the new movie…

To clarify (based on the code below):

  • I HAVE looked prior to starting the playback to make sure the file at TEMP_STORE actually exists (and is the new file, not the old one)
  • I HAVE also tried replacing [QTMovie movieWithFile:TEMP_STORE error:&err]; with [[QTMovie alloc] initWithFile:TEMP_STORE error:&err] (as per a recommendation I saw online somewhere)
  • The file at TEMP_STORE is a ‘.mov’ file recorded by another code segment in my program

Any and all help is appreciated!!!

CODE

- (IBAction) startPlayback: (id) sender {
    NSError *err;
    QTMovie *lclMov = [QTMovie movieWithFile:TEMP_STORE error:&err];

    [instrPlayback orderOut:nil];

    if (err != nil) {
        [errorMessage setStringValue:[NSString stringWithFormat:@"%@", [err localizedDescription]]];
        [errorDialog makeKeyAndOrderFront:nil];
    } else {
        [self writeString: CMD_PROCEED];

        [mPlaybackView setMovie:lclMov];
        [mPlaybackView gotoBeginning:nil];
        [playbackDialog makeKeyAndOrderFront:nil];
    }
}

- (void) stopPlayback {
    QTMovie *lclMov = [mPlaybackView movie];
    if ([lclMov canUpdateMovieFile]) {
        if (![lclMov updateMovieFile]) {
            [errorMessage setStringValue:@"Error Applying Updates to MOV File.\nAsk Lab Attendant for Help."];
            [errorDialog makeKeyAndOrderFront:nil];
            }
        }

        [playbackDialog orderOut:nil];
}
  • 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-03T12:19:27+00:00Added an answer on June 3, 2026 at 12:19 pm

    To people who come upon this in the future, here was my soltuion:

    I guess I was being sort of dumb … but I knew it had something to do with deallocating the video from memory. My resulting solution was to import the QuickTime framework (which, as I had not a clue, was different than the QTKit framework) and use the DisposeMovie() method from Movies.h

    Such a simple solution, and it gave me so much trouble.

    Good luck to all the developers out there who may run into this same problem 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My project I am working on a small program which has to set an
I'm working on a machine which has some code running on it which sets
I am working on a Windows program which is completely single-threaded and has no
I'm working on a large program which has an abstracted GUI API. It is
I am working on a binary file transfer program in which the client has
I am now working on a program for Android which is something related to
I'm working on a program that reads in users input as a string, which
I have a python program that I am currently working on which is working
I have a simple Delphi program that I'm working on, in which I am
I have a working program in C++ that generates data for a Mandelbrot Set.

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.