Basically I don't know what to do...
I downloaded the JMF library and inserted the library into the project. It was working fine until I came across this problem. Let me know what you think. Thanks!!!
Zev
Basically I don't know what to do...
I downloaded the JMF library and inserted the library into the project. It was working fine until I came across this problem. Let me know what you think. Thanks!!!
Zev
You could explicitly make
_buf
into ajavax.media.Buffer
by writing out its full name, likejavax.media.Buffer _buf = frameGrabber.grabFrame();
Alternatively, you could import all of the classes of
javax.media
by placing in your import statements (or above the class definitionpublic class mediaFunction
) :import javax.media.*;
Or you could import specifically
javax.media.Buffer
so Java knows that Buffer really means javax.media.Buffer, by importing:import javax.media.Buffer;
This article on packages and imports may help.
What I'm guessing is you imported java.nio.* or java.nio.Buffer, so it thinks that
Buffer
implicitly meansjava.nio.Buffer
, not the buffer type thatframeGrabber.grabFrame()
returns, or in other words,javax.media.Buffer
. Regardless, my first solution ought to fix your problem.