Skip to content

Commit

Permalink
fix: Ice servers settings doesn't affecte when runOnAwake is enabled (U…
Browse files Browse the repository at this point in the history
  • Loading branch information
karasusan authored Aug 3, 2023
1 parent 0e46fee commit 8289073
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,13 @@ void Awake()
return;

var settings = m_useDefault ? RenderStreaming.GetSignalingSettings<SignalingSettings>() : signalingSettings;
RTCIceServer[] iceServers = settings.iceServers.OfType<RTCIceServer>().ToArray();
int i = 0;
RTCIceServer[] iceServers = new RTCIceServer[settings.iceServers.Count()];
foreach (var iceServer in settings.iceServers)
{
iceServers[i] = (RTCIceServer)iceServer;
i++;
}
RTCConfiguration conf = new RTCConfiguration { iceServers = iceServers };
ISignaling signaling = CreateSignaling(settings, SynchronizationContext.Current);
_Run(conf, signaling, handlers.ToArray());
Expand Down

0 comments on commit 8289073

Please sign in to comment.