Skip to content

Commit b22d21c

Browse files
committed
Rename ssrc_value to ssrc_msid_value
1 parent e47e165 commit b22d21c

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.tool-versions

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
elixir 1.18.3-otp-27
2+
erlang 27.3.1

test/ex_webrtc/rtp_transceiver_test.exs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ defmodule ExWebRTC.RTPTransceiverTest do
7474
)
7575

7676
mline = RTPTransceiver.to_offer_mline(tr, @opts)
77-
ssrc_value = ssrc_value(@stream_id, @track.id)
77+
ssrc_value = ssrc_msid_value(@stream_id, @track.id)
7878

7979
assert [%ExSDP.Attribute.MSID{id: @stream_id}] =
8080
ExSDP.get_attributes(mline, ExSDP.Attribute.MSID)
@@ -94,7 +94,7 @@ defmodule ExWebRTC.RTPTransceiverTest do
9494
)
9595

9696
mline = RTPTransceiver.to_offer_mline(tr, @opts)
97-
ssrc_value = ssrc_value(@stream_id, @track.id)
97+
ssrc_value = ssrc_msid_value(@stream_id, @track.id)
9898

9999
assert [%ExSDP.Attribute.MSID{id: @stream_id, app_data: @track.id}] ==
100100
ExSDP.get_attributes(mline, ExSDP.Attribute.MSID)
@@ -147,8 +147,8 @@ defmodule ExWebRTC.RTPTransceiverTest do
147147

148148
mline = RTPTransceiver.to_offer_mline(tr, @opts)
149149

150-
ssrc1_value = ssrc_value(s1_id, track.id)
151-
ssrc2_value = ssrc_value(s2_id, track.id)
150+
ssrc1_value = ssrc_msid_value(s1_id, track.id)
151+
ssrc2_value = ssrc_msid_value(s2_id, track.id)
152152

153153
assert [
154154
%ExSDP.Attribute.MSID{id: s1_id, app_data: track.id},
@@ -225,5 +225,5 @@ defmodule ExWebRTC.RTPTransceiverTest do
225225
assert [] == ExSDP.get_attributes(mline, ExSDP.Attribute.SSRC)
226226
end
227227

228-
defp ssrc_value(stream, app_data), do: "#{stream} #{app_data}"
228+
defp ssrc_msid_value(stream, app_data), do: "#{stream} #{app_data}"
229229
end

0 commit comments

Comments
 (0)