mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-22 10:22:39 +01:00
a
This commit is contained in:
parent
38fa4186d2
commit
a1eb1a173a
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user