LibRtmp-Client-for-Android icon indicating copy to clipboard operation
LibRtmp-Client-for-Android copied to clipboard

Unable to publish to RTMP Server

Open MattWanjia opened this issue 1 year ago • 1 comments

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?

MattWanjia avatar Jul 18 '24 12:07 MattWanjia

Hi @MattWanjia , Thank you for creating the issue.

We aren't available to help you at this time because we currently don't have the bandwidth to maintain this library. It may change if we collaborate in a win-win manner.

If you would like to discuss a win-win collaboration, please reach out to [email protected]

Cheers

mekya avatar Aug 12 '24 07:08 mekya