-
Notifications
You must be signed in to change notification settings - Fork 40
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
Implement handle_spec_setup_completed and handle_spec_playing. Release v1.1.0-rc1. #801
Conversation
790948f
to
664d474
Compare
MapSet.to_list(spec_data.children_names) | ||
|> StartupUtils.exec_handle_spec_setup_completed(state) |
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.
The problem here is that the children_names can be empty, and we call handle_spec_started
with an empty list. This makes me lean towards having handle_child_setup
and handle_child_playing
instead.
lib/membrane/child_entry.ex
Outdated
@@ -38,6 +41,7 @@ defmodule Membrane.ChildEntry do | |||
:group, | |||
initialized?: false, | |||
ready?: false, | |||
terminating?: false | |||
terminating?: false, | |||
playback: :stopped |
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.
why exactly do we need that?
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.
Before my changes we have been sending :play
to each child between 1 and 2 times. This field allows me distinct, if I have already done it, because I don't want to execute callback handle_child_playing
more than once for a single child
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.
I think we never send play
two times. If we do, it seems like a bug.
lib/membrane/child_entry.ex
Outdated
@@ -38,6 +41,7 @@ defmodule Membrane.ChildEntry do | |||
:group, | |||
initialized?: false, | |||
ready?: false, | |||
terminating?: false | |||
terminating?: false, | |||
playback: :stopped |
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.
I think we never send play
two times. If we do, it seems like a bug.
lib/membrane/child_entry.ex
Outdated
@@ -21,7 +21,7 @@ defmodule Membrane.ChildEntry do | |||
module: module, | |||
options: struct | nil, | |||
component_type: :element | :bin, | |||
playback: Membrane.Playback.t(), | |||
# playback: Membrane.Playback.t(), |
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.
leftover
lib/membrane/child_entry.ex
Outdated
terminating?: false, | ||
playback: :stopped | ||
terminating?: false | ||
# playback: :stopped |
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.
leftover
Closes #796
Relates to #786