jmf and multiple players

W

wish

Hi,

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. 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. I moved to
using processors instead of players and i noticed that running two mpgs
causes an error (unable to handle mpeg format) 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?

thanks for help,
Peter
 
A

Andrew Thompson

wish said:
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.
..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 ;)
 
W

wish

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
 
R

Roedy Green

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top