JMF video frame size

R

rosmi

I need to know dimension of the media file played by
javax.media.bean.playerbean.MediaPlayer

I use the code you can see below:

FormatControl formatControl = (FormatControl)
this.mediaPlayer.getControl ("javax.media.control.FormatControl");
VideoFormat videoFormat = (VideoFormat) formatControl.getFormat();
return videoFormat.getSize();

mediaPlayer is known object from another class.

But I get formatControl == null.

It's very very strange, but just one time this code did work.

So I have no idea ... Someone else?
 

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

Similar Threads

Frame Grab Prob in JMF 1
JMF video question 2
JMF: extracting an image from video 0
JMF & Draw over video 0
Not able to send RTP packets 12
Question regardig JMF 1
Swing and JMF Media Player 4
Swing & JMF 0

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top