Lines Matching refs:peer
35 void MediaHelper::MaybeAddAudio(TestPeer* peer) { in MaybeAddAudio() argument
36 if (!peer->params()->audio_config) { in MaybeAddAudio()
39 const AudioConfig& audio_config = peer->params()->audio_config.value(); in MaybeAddAudio()
41 peer->pc_factory()->CreateAudioSource(audio_config.audio_options); in MaybeAddAudio()
43 peer->pc_factory()->CreateAudioTrack(*audio_config.stream_label, source); in MaybeAddAudio()
47 peer->AddTrack(track, {sync_group, *audio_config.stream_label}); in MaybeAddAudio()
51 MediaHelper::MaybeAddVideo(TestPeer* peer) { in MaybeAddVideo() argument
53 Params* params = peer->params(); in MaybeAddVideo()
59 video_config, peer->ReleaseVideoSource(i), in MaybeAddVideo()
73 peer->pc_factory()->CreateVideoTrack(video_config.stream_label.value(), in MaybeAddVideo()
82 peer->AddTrack(track, {sync_group, *video_config.stream_label}); in MaybeAddVideo()