> i'm writing an app that will display movies using jmf. Most of the time
> there will be one movie playing but it's possible to run a couple of them at
> the same time.
Is it (possible)?
> ...I've written a component based on jpanel to display the
> content with simple player inside. The problem is, that with two components
> playing MPG movies at the same time one of them looks different.
Oh no, not ..different. [ ;-) ]
>..I moved to
> using processors instead of players and i noticed that running two mpgs
> causes an error (unable to handle mpeg format)
It always helps to copy/paste errors.
<http://www.physci.org/codes/javafaq.jsp#exact>
>..in component which started
> playing as the second one. My question is: is there a kind of lock on
> codecs/renderers/files that is being set up here by JMF while first of the
> processors is starting?
It might be there is a static instance of some vital
class or method, but I can not be sure from the lack of
detail in your error, combined with my lack of experience
with JMF.
OTOH, there is also a more specialised forum on the JMF,
<http://www.physci.org/codes/javafaq.jsp#interest>
( but if your searches of the forum do not reveal
the answer, you might try adding detail to that error
messages before you post there ;)
wish - 02 Oct 2005 20:35 GMT
> Oh no, not ..different. [ ;-) ]
:)
I mean, brighter. This is caused by different renderers for each player. I
guess first one gets DDRenderer and the second one GDI because it cannot
gain access to a new instance of DD. When I try to play three movies at a
time (which is possible :)), the first one is brighter and other ones look
normal.
This happens using players not processors. With processors the second one
puts an error that it cannot handle mpeg format ("Unable to handle format:
....") and shows nothing. If I try to explicitly add a DDRenderer to its
chain, I get this:
The input format is not compatible with the given renderer plugin:
com.sun.media.renderer.video.DDRenderer@113e9fd
Failed to realize: com.sun.media.ProcessEngine@10a5c21
Cannot build a flow graph with the customized options:
Unable to add customed renderer:
com.sun.media.renderer.video.DDRenderer@113e9fd
Error: Unable to realize com.sun.media.ProcessEngine@10a5c21
I switched back to the version of my component that had a player inside to
just play those movies which processors couldn't achieve. I'm just curious
what have I missed reading the JMF docs. Is the multiple player thing
generally wrong?
thanks,
Peter
Roedy Green - 03 Oct 2005 05:46 GMT
>I mean, brighter. This is caused by different renderers for each player. I
>guess first one gets DDRenderer and the second one GDI because it cannot
>gain access to a new instance of DD.
There is a system property to do with DirectDraw. Try flipping it
and see what happens.

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.
>playing MPG movies at the same time one of them looks different
You mean the colours are off, it is jerky ??

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.