@@ -123,7 +123,7 @@ async def _await_event(fut: asyncio.Future, timeout: float = WAIT_TIMEOUT) -> No
123123 raise AssertionError ("timed out waiting for event" ) from e
124124
125125
126- async def _publish_camera (
126+ async def _publish_video (
127127 room : rtc .Room , track_name : str
128128) -> rtc .LocalTrackPublication :
129129 source = rtc .VideoSource (320 , 240 )
@@ -132,7 +132,7 @@ async def _publish_camera(
132132 return await room .local_participant .publish_track (track , options )
133133
134134
135- async def _publish_mic (room : rtc .Room , track_name : str ) -> rtc .LocalTrackPublication :
135+ async def _publish_audio (room : rtc .Room , track_name : str ) -> rtc .LocalTrackPublication :
136136 source = rtc .AudioSource (48000 , 1 )
137137 track = rtc .LocalAudioTrack .create_audio_track (track_name , source )
138138 options = rtc .TrackPublishOptions (source = rtc .TrackSource .SOURCE_MICROPHONE )
@@ -200,7 +200,7 @@ async def test_connection_basics() -> None:
200200
201201 # publish camera from p3, expect p4 to see track_published
202202 video_published = _expect_event (p4 , "track_published" )
203- video_pub = await _publish_camera (p3 , "p3-camera" )
203+ video_pub = await _publish_video (p3 , "p3-camera" )
204204 await _await_event (video_published )
205205 await _ensure_track_subscribed (p4 , video_pub .sid )
206206
@@ -210,7 +210,7 @@ async def test_connection_basics() -> None:
210210 "track_published" ,
211211 predicate = lambda pub , _p : pub .sid != video_pub .sid ,
212212 )
213- audio_pub = await _publish_mic (p3 , "p3-mic" )
213+ audio_pub = await _publish_audio (p3 , "p3-mic" )
214214 await _await_event (audio_published )
215215 await _ensure_track_subscribed (p4 , audio_pub .sid )
216216
0 commit comments