Closed HeLiHuang closed 2 months ago
private final IFrameCallback frameCallback = new IFrameCallback() { @Override public void onFrame(ByteBuffer frame) { buffer.flip(); int len = buffer.limit() - buffer.position(); // len为0 // 这里len为0 不知道为什么? } };
可以参考SetFrameCallbackActivity,长度使用remaining()函数来获取
谢谢,已解决
private final IFrameCallback frameCallback = new IFrameCallback() { @Override public void onFrame(ByteBuffer frame) { buffer.flip(); int len = buffer.limit() - buffer.position(); // len为0 // 这里len为0 不知道为什么? } };