Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to publish to RTMP Server #107

Open
MattWanjia opened this issue Jul 18, 2024 · 1 comment
Open

Unable to publish to RTMP Server #107

MattWanjia opened this issue Jul 18, 2024 · 1 comment

Comments

@MattWanjia
Copy link

MattWanjia commented Jul 18, 2024

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?
@mekya
Copy link
Contributor

mekya commented Aug 12, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants