Replies: 8 comments 2 replies
-
I see. I believe the fix is simple, so I'm looking forward to your PR. |
Beta Was this translation helpful? Give feedback.
-
@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? |
Beta Was this translation helpful? Give feedback.
-
@shogo4405 is this ok? I am waiting for a Yes or No :) |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
@shogo4405 added a PR |
Beta Was this translation helpful? Give feedback.
-
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
Beta Was this translation helpful? Give feedback.
All reactions