voice sort of barely works...

This commit is contained in:
hippoz 2021-06-02 04:44:52 +03:00
parent 3f7c462c09
commit 76f041e75e
No known key found for this signature in database
GPG key ID: 7C52899193467641
3 changed files with 7 additions and 4 deletions

View file

@ -28,7 +28,10 @@ class GatewayRTCConnection {
async addTrack(track) { async addTrack(track) {
if (!track) return; if (!track) return;
this.connection.addTrack(track); this.ws.send(this.server.packet("EVENT_TRACK_NOTIFICATION", {
kind: track.kind
}));
this.connection.addTransceiver(track);
} }
async renegotiate() { async renegotiate() {

View file

@ -9,7 +9,7 @@ const opcodes = {
23: { name: "ACTION_VOICE_CONNECTION_REQUEST", data: "JSON" }, 23: { name: "ACTION_VOICE_CONNECTION_REQUEST", data: "JSON" },
24: { name: "EVENT_VOICE_CONNECTION_ANSWER", data: "JSON" }, 24: { name: "EVENT_VOICE_CONNECTION_ANSWER", data: "JSON" },
25: { name: "EVENT_RENEGOTIATE_REQUIRED", data: "JSON" }, 25: { name: "EVENT_RENEGOTIATE_REQUIRED", data: "JSON" },
26: { name: "ACTION_VOICE_ADD_ICE", data: "JSON" } 26: { name: "EVENT_TRACK_NOTIFICATION", data: "JSON" }
}; };
const opcodeSeparator = "@"; const opcodeSeparator = "@";

View file

@ -1,6 +1,6 @@
module.exports = { module.exports = {
experiments: { experiments: {
voiceSFUTesting: true, voiceSFUTesting: false,
userListTest: false userListTest: true
} }
}; };