Open
Description
I am using a usb camera to capture streams using the repo https://github.com/quantum6/Android-USB-OTG-Camera
public void startStream(){
mCameraHelper.startPusher(new AbstractUVCCameraHandler.OnEncodeResultListener() {
@Override
public void onEncodeResult(byte[] data, int offset, int length, long timestamp, int type) {
Toast.makeText(getContext(), "HERE", Toast.LENGTH_SHORT).show();
Log.d(TAG, String.valueOf(data.length));
if (type == 1) {
String URL = "rtmp://192.168.1.107:1935/live/test";
rtmpMuxer.open(URL, 640, 480);
rtmpMuxer.writeVideo(data, offset, length, timestamp);
Toast.makeText(getContext(), "STREAMING", Toast.LENGTH_LONG).show();
}
// type = 0,aac audio stream
if(type == 0) {
}
}
@Override
public void onRecordResult(String videoPath) {
}
});
//mCameraHelper.startPusher((AbstractUVCCameraHandler.OnEncodeResultListener) newListener);
}
using the above code i want to publish the streams. i am unable to.
i am getting an error INVALID ID 0x00070800.
should i encode the data bytes to anything else before sending?
Metadata
Assignees
Labels
No labels