Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AWT control playback stops



the QT GUI Components you get from QTFactory (not sure if you can
instantiate them yourself directly) take care of the tasking themselves. If
you decide say to play an audio file on your own without using for example a
hidden GUI component, then you have to task that movie regularly (either add
it to the Taskable facility/service of QTJava, or call the respective
tasking method of that movie class regularly in a loop [to avoid freezing
all else when using Sun JVM on Windows, add Thread.sleep(0) in your loop])

> Thanks for the advice. I haven't completely figured out how and when to
> use the Taskable API, but I figured it had something to do with it. I
> may still need to use it, as the QTCanvas code is deprecated, and
> actually throws a "not allowed" Exception on MacOS 10.4 with QT 7!
>
> +Nathan
>
> George Birbilis wrote:
>
> > you could else use the Taskable API to have QTJava task that movie
> > automatically (QTCanvas must be doing similarly), or call TaskMovie in
> > a loop (make sure you add a Thread.sleep(0) in that loop)
> >
> > -----
> > George Birbilis (email@hidden)
> > Microsoft Most Valuable Professional
> > MVP J# for 2004 & 2005
> > http://www.kagi.com/birbilis
> > QuickTime, Delphi, ActiveX, .NET, IPC
> > --------------
> > ----- Original Message ----- From: "nathan.freitas" <email@hidden>
> > To: <email@hidden>
> > Sent: Thursday, July 14, 2005 6:04 PM
> > Subject: Re: AWT control playback stops
> >
> >
> >> I've solved my own problem. If I add the movie to the JComponent
> >> within a
> >> QTCanvas it continues to play even in the background. Previously, I was
> >> adding it directly by using "QTFactory.makeQTComponent(movie);".
> >>
> >> I suppose the QTCanvas handles the continues generation of events to
> >> keep
> >> the movie playing or something of that nature.
> >>
> >> +Nathan
> >>
> >> nathan.freitas wrote:
> >>
> >>>
> >>> I have a mostly-Swing app that uses Quicktime for Java within it.
> >>> Initially, I was using the Swing Quicktime ("makeQTJComponent()"), but
> >>> once I realized that the video quality and playback was suffering, I
> >>> switched to the AWT Component ("makeQTComponent()"). However, now,
> >>> when I
> >>> switch focus to another application, video playback in the Java app
> >>> stops.
> >>>
> >>> Can someone explain why this is happening, or offer a solution? I
would
> >>> like playback to continue in the background.
> >>>
> >>> Regards,
> >>>    Nathan
> >>>
> >>>
> >>> _______________________________________________
> >>> Do not post admin requests to the list. They will be ignored.
> >>> QuickTime-java mailing list      (email@hidden)
> >>> Help/Unsubscribe/Update your Subscription:
> >>>
http://lists.apple.com/mailman/options/quicktime-java/email@hidden
> >>>
> >>>
> >>> This email sent to email@hidden
> >>
> >>
> >>
> >> _______________________________________________
> >> Do not post admin requests to the list. They will be ignored.
> >> QuickTime-java mailing list      (email@hidden)
> >> Help/Unsubscribe/Update your Subscription:
> >>
http://lists.apple.com/mailman/options/quicktime-java/email@hidden
> >>
> >>
> >> This email sent to email@hidden
> >>
>
>
>

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-java mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quicktime-java/email@hidden

This email sent to email@hidden

References: 
 >AWT control playback stops (From: "nathan.freitas" <email@hidden>)
 >Re: AWT control playback stops (From: "nathan.freitas" <email@hidden>)
 >Re: AWT control playback stops (From: "George Birbilis" <email@hidden>)
 >Re: AWT control playback stops (From: "nathan.freitas" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.