How to fix this buffer problem?

enter image description here

Basically, I don’t know what to do ...

I downloaded the JMF library and inserted the library into the project. It worked fine until I ran into this problem. Let me know what you think. Thank!!!

Pharynx

+3
source share
1 answer

You can explicitly do _bufin javax.media.Bufferby writing its full name, for example

javax.media.Buffer _buf = frameGrabber.grabFrame();

Alternatively, you can import all classes javax.mediaby placing in your import statements (or higher class definitions public class mediaFunction):

import javax.media.*;

Or you can specifically import javax.media.Buffer, so Java knows that Buffer really means javax.media.Buffer by importing:

import javax.media.Buffer;

​​ .

, java.nio. * java.nio.Buffer, , Buffer java.nio.Buffer, , frameGrabber.grabFrame(), , javax.media.Buffer. , .

+6

Source: https://habr.com/ru/post/1788873/


All Articles