-
-
Notifications
You must be signed in to change notification settings - Fork 626
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
connection closed by peer on stopping the RTMP stream #1472
Comments
I see. I believe the fix is simple, so I'm looking forward to your PR. |
@shogo4405 - It seems it might need to rename the command to deleteStream() But I am not sure, if a separate method should be used to not break the API? |
@shogo4405 is this ok? I am waiting for a Yes or No :) |
No. You need to consider the behavior when viewing, the behavior when using FCPublish, and the behavior when not using FCPublish. I have no knowledge regarding deleteStream, so I don't know. It will need to be investigated. |
closeStream closes stream but does not unpublish (delete) stream from rtmp server. This causes the rtmp server to not send webhooks because the stream is still there in rtmp server but in closed state and it waits for timeout of rtmp ingestion. The delete stream makes sure that the stream is unpublished from rtmp server and rtmp server sends the relevant webhooks to notify the relevant services. The webhooks are important part of creating flows and this is where we are stucked using this library. From viewing perspective, the I am not sure if i am making sense. |
It makes sense in the context of your specific RTMP server. There are many of them, and they tend to have different implementations of RTMP spec. Therefore the best options is to create a PR with an optional |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Describe the bug
Hi,
when i try to stop the stream,
FCUnpublish()
followed bycloseStream()
is invoked and the RTMP server reportsconnection closed by peer
which is not the desired effect. It should stop/kill the stream. Then i tried it through OBS, when i stopped from there it sentdeleteStream()
instead ofcloseStream()
afterFCUnpublish()
which deleted the stream and invoked Webhooks.To Reproduce
stop the stream and check on wireshark, you will see
FCUnpublish()
followed bycloseStream()
Expected behavior
stopping the stream should call
deleteStream()
instead ofcloseStream()
Version
1.8.1
Smartphone info.
iPhone Xs Max
Additional context
No response
Screenshots
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: