1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-22 10:22:39 +01:00
This commit is contained in:
Puyodead1 2024-09-14 15:53:44 -04:00
parent 38fa4186d2
commit a1eb1a173a
No known key found for this signature in database
GPG Key ID: A4FA4FEC0DD353FC

View File

@ -167,34 +167,6 @@ export async function onSelectProtocol(this: WebSocket, payload: Payload) {
iceCandidate.priority
} ${iceCandidate.ip} ${iceCandidate.port} typ ${iceCandidate.type}\n`;
const a = sdpTransform.parse(sdpAnswer);
a.media.push({
type: "audio",
direction: "sendrecv",
// codecs: [
// {
// codec: "opus",
// type: 111,
// channels: 2,
// params: {
// minptime: "10",
// useinbandfec: "1",
// },
// rtcpfbs: [
// {
// id: "transport-cc",
// },
// ],
// },
// ],
ext: [
{
value: 1,
uri: "urn:ietf:params:rtp-hdrext:ssrc-audio-level",
},
],
});
console.debug("onSelectProtocol sdp serialized\n", sdpAnswer);
await Send(this, {
op: VoiceOPCodes.SELECT_PROTOCOL_ACK,