diff --git a/lib/membrane_webrtc_live/capture.ex b/lib/membrane_webrtc_live/capture.ex index e80061c..cd594f2 100644 --- a/lib/membrane_webrtc_live/capture.ex +++ b/lib/membrane_webrtc_live/capture.ex @@ -35,7 +35,7 @@ defmodule Membrane.WebRTC.Live.Capture do @impl true def render(assigns) do ~H""" - + """ end @@ -64,9 +64,8 @@ defmodule Membrane.WebRTC.Live.Capture do attr(:capture_id, :string, required: true, doc: """ - #{inspect(__MODULE__)} struct. It is used to pass capture id to the newly created live view via live view session. - This data is then used to do a handshake between parent live view and child live view during which child live view - receives the whole #{inspect(__MODULE__)} struct. + ID of a `caputre` previously attached to the socket. It has to be the same as the value passed to `:id` + field `#{inspect(__MODULE__)}.attach/2`. """ ) diff --git a/lib/membrane_webrtc_live/player.ex b/lib/membrane_webrtc_live/player.ex index c793fe1..a4800e3 100644 --- a/lib/membrane_webrtc_live/player.ex +++ b/lib/membrane_webrtc_live/player.ex @@ -36,7 +36,7 @@ defmodule Membrane.WebRTC.Live.Player do @impl true def render(assigns) do ~H""" - + """ end @@ -65,9 +65,8 @@ defmodule Membrane.WebRTC.Live.Player do attr(:player_id, :string, required: true, doc: """ - #{inspect(__MODULE__)} struct. It is used to pass player id to the newly created live view via live view session. - This data is then used to do a handshake between parent live view and child live view during which child live view - receives the whole #{inspect(__MODULE__)} struct. + ID of a `player` previously attached to the socket. It has to be the same as the value passed to `:id` + field `#{inspect(__MODULE__)}.attach/2`. """ )