in progress turn
This commit is contained in:
parent
6c7146f8ab
commit
ea36b0d535
@ -16,6 +16,9 @@
|
||||
##### BUG TRACKER [ Latest: #38 ]
|
||||
* [#38] APP: STUN/TURN issues with browser ICE rejection of offer. Need TURN to function properly?
|
||||
+ Manifests in an inability to receive/send audio from a user.
|
||||
+ Need some way of tracking whether or not a client has offers it has not answered. Or if it has sent offers
|
||||
that have not been answered.
|
||||
+ Need a way of reporting which STUN/TURN was agreed on
|
||||
|
||||
##### BUG FIX TESTING
|
||||
|
||||
|
@ -29,17 +29,15 @@ const CONFIG = {
|
||||
]
|
||||
},
|
||||
// {
|
||||
// urls:
|
||||
// [
|
||||
// 'turn:openrelay.metered.ca:80',
|
||||
// 'turn:openrelay.metered.ca:80?transport=tcp',
|
||||
// 'turn:openrelay.metered.ca:443'
|
||||
// ],
|
||||
// username: 'openrelayproject',
|
||||
// credential: 'openrelayproject'
|
||||
// }
|
||||
]
|
||||
// iceTransportPolicy: 'relay',
|
||||
// urls: [
|
||||
// 'turn:my60455.glddns.com:3478',
|
||||
// 'turn:my60455.glddns.com:3478?transport=tcp',
|
||||
// ],
|
||||
// username: "YeahRightLol",
|
||||
// credential: "IfOnlyYouWereSoLucky",
|
||||
// },
|
||||
],
|
||||
// iceTransportPolicy: "relay",
|
||||
}
|
||||
},
|
||||
APP: {
|
||||
@ -1139,10 +1137,6 @@ class PeerConnectionManager {
|
||||
};
|
||||
// Handle ICE candidates
|
||||
peerConnection.onicecandidate = (event) => {
|
||||
// if (event.candidate) {
|
||||
// console.log('🔗 ICE candidate type:', event.candidate.type);
|
||||
// console.log('🔗 ICE candidate:', event.candidate.candidate);
|
||||
// }
|
||||
if (event.candidate && state.ws && state.ws.readyState === WebSocket.OPEN) {
|
||||
console.log('🔗 Sending ICE candidate to:', remoteUserId);
|
||||
state.ws.send(JSON.stringify({
|
||||
@ -2104,6 +2098,23 @@ class DebugUtils {
|
||||
// }
|
||||
// }, 5000);
|
||||
|
||||
// setInterval(async () => {
|
||||
// for (const peerConnection of Object.values(state.peerConnections)) {
|
||||
// const stats = await peerConnection.getStats();
|
||||
// stats.forEach(stat => {
|
||||
// if (stat.type === 'candidate-pair' && stat.state === 'succeeded') {
|
||||
// console.log('Active connection type:', stat.localCandidateType, '->', stat.remoteCandidateType);
|
||||
// console.log('Bytes sent/received:', stat.bytesSent, stat.bytesReceived);
|
||||
// }
|
||||
//
|
||||
// if (stat.type === 'inbound-rtp' && stat.mediaType === 'audio') {
|
||||
// console.log('Packets lost:', stat.packetsLost);
|
||||
// console.log('Jitter:', stat.jitter);
|
||||
// }
|
||||
// });
|
||||
// }
|
||||
// }, 5000);
|
||||
|
||||
|
||||
$('.chat-messages').addEventListener('scroll', function() {
|
||||
const atBottom = UIManager.isChatScrolledToBottom();
|
||||
|
Loading…
x
Reference in New Issue
Block a user