Open ManojMMWWIndia opened 7 years ago
The creator of this project have stopped replying on issues so I'm afraid that you need to develop it by yourself.
please tell me how do I get audio+video data in byte form so that I can stream that data
@ManojMMWWIndia
You can get byte[] from this:
mUVCCamera.setFrameCallback(mIFrameCallback, UVCCamera.PIXEL_FORMAT_YUV);
private final IFrameCallback mIFrameCallback = new IFrameCallback() {
@Override
public void onFrame(final ByteBuffer frame) {
try {
byte[] buf = new byte[frame.remaining()];
frame.get(buf);
//then we can get byte[]
}
} catch (Exception e) {
KLog.e(TAG, e.getMessage());
}
}
};
Need rtmp support for lib. Other RTMP lib using android native camera to get data from and UVCCamera is not working with them. Can you help on this?