Media player maturity (on Mac)
Robert Krüger
krueger at lesspain.de
Fri Mar 13 08:18:36 UTC 2015
On Thu, Mar 12, 2015 at 8:48 PM, David DeHaven <david.dehaven at oracle.com>
wrote:
>
> > > One more question regarding this. Is it OK to have many instances of
> AudioClip or MediaPlayer if only a few of them actually play stuff or do
> they block audio resources even when they are stopped?
> >
> > You can have as many as memory will allow :) They don’t tie up hardware
> resources until actually playing. I actually recommend pre-loading
> AudioClips to avoid startup latency, especially if they’re fetched remotely.
> >
> > Thanks for the info!
>
> Oh, and if you have a lot of AudioClips, it’s best to spawn a new thread
> to load them up asynchronously, otherwise you could block the main
> application thread which will render the UI unresponsive while it’s
> loading. We’ve seen this happen on a couple occasions...
>
>
Good to know, thanks.
> I wanted to provide a library API to handle pre-loading, but didn’t have
> the time or resources :(
>
I can imagine resources quite stretched for a huge project like this. Maybe
JFX10 then ;-).
More information about the openjfx-dev
mailing list