• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: QuickTime stops to play
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: QuickTime stops to play


  • Subject: Re: QuickTime stops to play
  • From: Lorenzo <email@hidden>
  • Date: Mon, 15 Sep 2003 17:08:05 +0200

Hi,
in the meantime I have found the solution.
I found the function MovieTasks() in the Movies.h header file...
and I use it this way:

// ---------------------------------------------------------
// refreshView
// ---------------------------------------------------------
- (void)refreshView
{
MoviesTask([gNSMovie QTMovie], 0);
}

the refreshView routine is being called every 0.5 second by a timer.
Now everything seems to work fine, even if the application is hidden.
Only, the movie/song pauses while I am resizing the window.
I tried also to add this line

if([self inLiveResize]) [gFileContent refreshView];

into the - (void)drawRect:(NSRect)rect
of the NSMovieView, but it didn't help.

Best Regards
--
Lorenzo
email: email@hidden

> From: Lorenzo <email@hidden>
> Date: Mon, 15 Sep 2003 16:02:56 +0200
> To: Cocoa Forum <email@hidden>
> Cc: "Douglas A. Welton" <email@hidden>
> Subject: Re: QuickTime stops to play
>
> Hi,
> after so long time, the problem occurs again and changed.
> My movie/song stops to play or the thumb doesn't move to the current frame.
>
> I explain:
> If my timer fires every 0.1 seconds, the playback works fine,
> there are no more breaks.
> But in the control panel ([theQTView showController:YES adjustingSize:YES];)
> the thumb of the current frame doesn't move anymore.
>
> If my timer fires every 0.5 seconds, the thumb of the current frame moves
> properly, but sometimes the song/movie stops to play.
>
> Also, while I am resizing the window, I cannot hear/see the movie play.
> And, that's so strange, if I hide the application and use other applications,
> I I cannot hear the song play.
>
>
> Douglas, you wrote "I call the function MovieTasks() "
> So, please what did you mean with MovieTasks()? What does this call do?
> I checked at the SimpleCocoaMovie sample, but it doesn't report any timer nor
> any MovieTasks routine.
>
>
> Any help?
>
>
> I have this timer
> -------------------
> timerForRefreshingQTView = [[NSTimer scheduledTimerWithTimeInterval:0.1
> target:self selector:@selector(refreshView) userInfo:nil repeats:YES]
> retain];
> [[NSRunLoop currentRunLoop] addTimer:timerForRefreshingQTView
> forMode:NSModalPanelRunLoopMode];
> [[NSRunLoop currentRunLoop] addTimer:timerForRefreshingQTView
> forMode:NSEventTrackingRunLoopMode];
>
>
> and the refresh routine does:
> -------------------
> - (void)refreshView
> {
> if([theQTView isPlaying]){
> [theQTView setNeedsDisplayInRect:NSMakeRect(0,0,1,1)];
> }
> }
>
> even with a full bounds rect, it stops to play.
>
>
>
> Best Regards
> --
> Lorenzo
> email: email@hidden
>
>> From: "Douglas A. Welton" <email@hidden>
>> Date: Mon, 04 Aug 2003 11:41:14 -0400
>> To: Lorenzo <email@hidden>, email@hidden
>> Subject: Re: QuickTime stops to play
>>
>> Lorenzo,
>>
>> You might want to check the archives. Several people have reported having
>> issues with QuickTime playback. I have never had this problem, but then
>> again my applications have associated a timer with movie playback. When the
>> timer is called, I call the function MovieTasks() and life is good (an
>> example of this is the SimpleCocoaMovie sample code).
>>
>> Check the archives at cocoa.mamasam.com. If I remember correctly, Ben
>> Haller posted a second-hand pointer to a reply that someone got from Apple
>> regarding this issue. I believe it referenced a "bug to be fixed"
>>
>> later,
>>
>> douglas
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: QuickTime stops to play (From: Lorenzo <email@hidden>)

  • Prev by Date: Re: Java Expert Question
  • Next by Date: Re: QuickTime stops to play
  • Previous by thread: Re: QuickTime stops to play
  • Next by thread: Re: QuickTime stops to play
  • Index(es):
    • Date
    • Thread