-
Notifications
You must be signed in to change notification settings - Fork 12
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
Draft: Improve socket connection dropped and delete stream events #100
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello!
Thanks for the contribution. It definitely makes sense to distinguish between "gracefull" shutdown with DeleteStream
and some unexpected one.
I am just slightly concerned about the fact that :stream_deleted
is not synchronized with an actual stream (perhaps an event would be better here?)
I also wonder how do you mean to use this :stream_deleted
notification. Do you plan to set some flag upon receiving :stream_deleted
notification in your parent element and than, depending on value of that flag, react differently when handle_element_end_of_stream
is called?
If so, I think it is OK to leave the notification, but in a final run I would prefer to add some generic event to membrane core, that we could send along :end_of_stream
to mark a "graceful" end of stream.
Hi @varsill!
Our pipeline is pretty long and in case of an event we would have to pass it over the whole pipeline. A notification allows us to "jump" over to the concerned element. In our case, we turn the output HLS playlist into VOD only if we receive both the notification and end of stream. |
Co-authored-by: Łukasz Kita <[email protected]>
Co-authored-by: Łukasz Kita <[email protected]>
I see, in this case it shouldn't be a problem at all. You could encounter a problem if you relied just on the notification (there wouldn't be any guarantee that the stream in the rest of the pipeline is already processed when you turn the playlist into VOD). |
@varsill I did not know that! If that's the case, an event might be even better, let me know what you're more keen on merging. About the linter, I'm running |
Hi @dmorn , sure, sorry for late reply, I am OK with merging what we currently have (the notification sent from the source). Concerning the formatter, I think there might be a mismatch in the version of elixir/mix you are using (could you tell me what do you use?) |
This is here to close membraneframework/membrane_core#792.
I'll keep it a draft waiting for your feedback (and some extensive tests on our side).
\cc @mat-hek