Skip to content

Commit

Permalink
Actuall pass iceServers
Browse files Browse the repository at this point in the history
Without the second argument sometimes the first argument gets moved to
second since both are optional in JS.
  • Loading branch information
singpolyma committed Oct 21, 2024
1 parent 3d06e45 commit 32598f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion snikket/jingle/Session.hx
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ class InitiatedSession implements Session {
return;
}
client.getIceServers((servers) -> {
pc = new PeerConnection({ iceServers: servers });
pc = new PeerConnection({ iceServers: cast servers }, null);
pc.addEventListener("track", (event) -> {
client.trigger("call/track", { chatId: counterpart.asBare().asString(), track: event.track, streams: event.streams });
});
Expand Down

0 comments on commit 32598f6

Please sign in to comment.