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

Unimplemented message type: null #1363

Open
khxtnd opened this issue Dec 11, 2023 · 1 comment
Open

Unimplemented message type: null #1363

khxtnd opened this issue Dec 11, 2023 · 1 comment

Comments

@khxtnd
Copy link

khxtnd commented Dec 11, 2023

I used Wowza video to test this library but the result returned null. Please help me resolve this error
connection error
java.io.IOException: Unimplemented message type: null
at com.pedro.rtmp.rtmp.message.RtmpMessage$Companion.getRtmpMessage(RtmpMessage.kt:68)
at com.pedro.rtmp.rtmp.CommandsManager.readMessageResponse(CommandsManager.kt:129)
at com.pedro.rtmp.rtmp.RtmpClient.handleMessages(RtmpClient.kt:331)
at com.pedro.rtmp.rtmp.RtmpClient.access$handleMessages(RtmpClient.kt:52)
at com.pedro.rtmp.rtmp.RtmpClient$connect$1.invokeSuspend(RtmpClient.kt:236)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)

This is my code
binding.openGLView.getHolder().addCallback(new SurfaceHolder.Callback() {
@OverRide
public void surfaceCreated(@nonnull SurfaceHolder holder) {
rtmpCamera1 = new RtmpCamera1(binding.openGLView, connectChecker);
if (rtmpCamera1.prepareAudio() && rtmpCamera1.prepareVideo()) {
rtmpCamera1.startStream("rtmp://34e9e8b0b30e.entrypoint.cloud.wowza.com/app-3499l84G");
} else {
}
}

        @Override
        public void surfaceChanged(@NonNull SurfaceHolder holder, int format, int width, int height) {

        }

        @Override
        public void surfaceDestroyed(@NonNull SurfaceHolder holder) {
            if (rtmpCamera1 != null) {
                rtmpCamera1.stopStream();
                rtmpCamera1.stopPreview();
            }
        }
    });
@pedroSG94
Copy link
Owner

Hello,

Are you sure that the URL is correct?
You normally need indicate a stream name like:
rtmp://34e9e8b0b30e.entrypoint.cloud.wowza.com/app-3499l84G/stream name

If the problem is not solved you can share me info to connect to your server by email and I can test it

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