fixed two compile errors
parent
2783fff2f1
commit
947bac0e66
|
@ -3,7 +3,7 @@ import {
|
|||
VoiceConnectionStatus, WhisperSessionInitializer
|
||||
} from "../connection/VoiceConnection";
|
||||
import {RecorderProfile} from "../voice/RecorderProfile";
|
||||
import {AbstractServerConnection} from "../connection/ConnectionBase";
|
||||
import {AbstractServerConnection, ConnectionStatistics} from "../connection/ConnectionBase";
|
||||
import {VoiceClient} from "../voice/VoiceClient";
|
||||
import {VoicePlayerEvents, VoicePlayerLatencySettings, VoicePlayerState} from "../voice/VoicePlayer";
|
||||
import {WhisperSession, WhisperTarget} from "../voice/VoiceWhisper";
|
||||
|
@ -147,4 +147,11 @@ export class DummyVoiceConnection extends AbstractVoiceConnection {
|
|||
}
|
||||
|
||||
stopAllVoiceReplays() { }
|
||||
|
||||
async getConnectionStats(): Promise<ConnectionStatistics> {
|
||||
return {
|
||||
bytesReceived: 0,
|
||||
bytesSend: 0
|
||||
}
|
||||
}
|
||||
}
|
|
@ -11,7 +11,7 @@ import {
|
|||
WhisperSessionInitializer
|
||||
} from "tc-shared/connection/VoiceConnection";
|
||||
import {createErrorModal} from "tc-shared/ui/elements/Modal";
|
||||
import {ServerConnectionEvents} from "tc-shared/connection/ConnectionBase";
|
||||
import {ConnectionStatistics, ServerConnectionEvents} from "tc-shared/connection/ConnectionBase";
|
||||
import {ConnectionState} from "tc-shared/ConnectionHandler";
|
||||
import {VoiceBridge, VoicePacket, VoiceWhisperPacket} from "./bridge/VoiceBridge";
|
||||
import {NativeWebRTCVoiceBridge} from "./bridge/NativeWebRTCVoiceBridge";
|
||||
|
@ -530,4 +530,11 @@ export class VoiceConnection extends AbstractVoiceConnection {
|
|||
}
|
||||
this.voiceBridge?.stopWhispering();
|
||||
}
|
||||
|
||||
async getConnectionStats(): Promise<ConnectionStatistics> {
|
||||
return {
|
||||
bytesSend: 0,
|
||||
bytesReceived: 0
|
||||
};
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue