updated to shared lib
This commit is contained in:
@@ -261,7 +261,7 @@ async function ensurePeerConnection2()
|
||||
|
||||
peerConnection.onicecandidate = async (event) => {
|
||||
console.log(`Ice Candidate: ${JSON.stringify(event.candidate)}`);
|
||||
LogMessage(`Ice Candidate: ${JSON.stringify(event.candidate)}`);
|
||||
// LogMessage(`Ice Candidate: ${JSON.stringify(event.candidate)}`);
|
||||
await window.HybridWebView.InvokeDotNet("WriteIceCandidate", [JSON.stringify(event.candidate)]);
|
||||
await IceCandidateAdded(event.candidate);
|
||||
};
|
||||
@@ -312,8 +312,6 @@ async function channelCallJoin(activeCall)
|
||||
// LogMessage("Joining call with media answer: " + JSON.stringify(answer));
|
||||
// LogMessage("Calling C# WriteRtcAnswer with: " + JSON.stringify(answer));
|
||||
await window.HybridWebView.InvokeDotNet("WriteRtcAnswer", [JSON.stringify(answer)]);
|
||||
LogMessage("C# WriteRtcAnswer invoked");
|
||||
//TODO: Update offer in SurrealDB to include answer
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -345,10 +343,10 @@ async function IceCandidateAdded(candidate)
|
||||
{
|
||||
if (peerConnection.currentRemoteDescription) {
|
||||
await peerConnection.addIceCandidate(candidate);
|
||||
LogMessage("ICE CANDIDATE ADDED: " + JSON.stringify(candidate));
|
||||
// LogMessage("ICE CANDIDATE ADDED: " + JSON.stringify(candidate));
|
||||
}
|
||||
else {
|
||||
LogMessage("RemoteDescription Missing")
|
||||
// LogMessage("RemoteDescription Missing")
|
||||
candidateQueue.push(candidate);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user