Skip to content

Commit f2e30d0

Browse files
committed
Bump WebRTC plugin
1 parent 0dae52a commit f2e30d0

File tree

6 files changed

+29
-30
lines changed

6 files changed

+29
-30
lines changed

examples.livemd

+1-1
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ System.shell("ffplay #{out_dir}/rtmp_to_mp4.mp4")
509509
## Stream MP4 via WebRTC, receive it and record to MP4 again
510510

511511
```elixir
512-
signaling = Membrane.WebRTC.SignalingChannel.new()
512+
signaling = Membrane.WebRTC.Signaling.new()
513513

514514
t =
515515
Task.async(fn ->

lib/boombox.ex

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ defmodule Boombox do
88

99
alias Membrane.RTP
1010

11-
@type webrtc_signaling :: Membrane.WebRTC.SignalingChannel.t() | String.t()
11+
@type webrtc_signaling :: Membrane.WebRTC.Signaling.t() | String.t()
1212
@type in_stream_opts :: [
1313
{:audio, :binary | boolean()}
1414
| {:video, :image | boolean()}
@@ -186,7 +186,7 @@ defmodule Boombox do
186186
{:mp4, location} when is_binary(location) and direction == :output ->
187187
{:mp4, location}
188188

189-
{:webrtc, %Membrane.WebRTC.SignalingChannel{}} ->
189+
{:webrtc, %Membrane.WebRTC.Signaling{}} ->
190190
value
191191

192192
{:webrtc, uri} when is_binary(uri) ->

lib/boombox/webrtc.ex

+5-5
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ defmodule Boombox.WebRTC do
8989
if webrtc_input?(state) do
9090
# let's spawn websocket server for webrtc source before the source starts
9191
{:webrtc, input_signaling} = state.input
92-
signaling_channel = resolve_signaling(input_signaling, :input, ctx.utility_supervisor)
93-
state = %{state | input: {:webrtc, signaling_channel}}
92+
signaling = resolve_signaling(input_signaling, :input, ctx.utility_supervisor)
93+
state = %{state | input: {:webrtc, signaling}}
9494

9595
{%Wait{actions: [spec: spec]}, state}
9696
else
@@ -188,7 +188,7 @@ defmodule Boombox.WebRTC do
188188
end
189189

190190
defp resolve_signaling(
191-
%WebRTC.SignalingChannel{} = signaling,
191+
%WebRTC.Signaling{} = signaling,
192192
_direction,
193193
_utility_supervisor
194194
) do
@@ -202,7 +202,7 @@ defmodule Boombox.WebRTC do
202202
end
203203

204204
defp resolve_signaling({:whip, uri, opts}, :output, utility_supervisor) do
205-
signaling = WebRTC.SignalingChannel.new()
205+
signaling = WebRTC.Signaling.new()
206206

207207
Membrane.UtilitySupervisor.start_link_child(
208208
utility_supervisor,
@@ -221,7 +221,7 @@ defmodule Boombox.WebRTC do
221221
end
222222

223223
defp setup_whip_server(opts, utility_supervisor) do
224-
signaling = WebRTC.SignalingChannel.new()
224+
signaling = WebRTC.Signaling.new()
225225
clients_cnt = :atomics.new(1, [])
226226
{valid_token, opts} = Keyword.pop(opts, :token)
227227

mix.exs

+1-2
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,7 @@ defmodule Boombox.Mixfile do
4848
[
4949
{:membrane_core, "~> 1.1"},
5050
{:membrane_transcoder_plugin, "~> 0.1.2"},
51-
# {:membrane_webrtc_plugin, "~> 0.23.2"},
52-
{:membrane_webrtc_plugin, github: "membraneframework/membrane_webrtc_plugin"},
51+
{:membrane_webrtc_plugin, "~> 0.24.0"},
5352
{:membrane_mp4_plugin, "~> 0.35.2"},
5453
{:membrane_realtimer_plugin, "~> 0.9.0"},
5554
{:membrane_http_adaptive_stream_plugin, "~> 0.18.5"},

0 commit comments

Comments
 (0)