2020-11-07 13:16:07 +01:00
|
|
|
import {VoiceClient} from "tc-shared/voice/VoiceClient";
|
2020-11-28 19:33:54 +01:00
|
|
|
import {VoicePlayer} from "./VoicePlayer";
|
2021-02-15 15:53:01 +01:00
|
|
|
import {LogCategory, logTrace} from "tc-shared/log";
|
|
|
|
import {tr} from "tc-shared/i18n/localize";
|
|
|
|
import {RemoteRTPAudioTrack} from "tc-shared/connection/rtc/RemoteTrack";
|
2020-11-07 13:16:07 +01:00
|
|
|
|
2020-11-28 19:33:54 +01:00
|
|
|
export class RtpVoiceClient extends VoicePlayer implements VoiceClient {
|
2020-11-07 13:16:07 +01:00
|
|
|
private readonly clientId: number;
|
|
|
|
|
|
|
|
constructor(clientId: number) {
|
2020-11-28 12:58:22 +01:00
|
|
|
super();
|
2020-11-07 13:16:07 +01:00
|
|
|
|
2020-11-28 12:58:22 +01:00
|
|
|
this.clientId = clientId;
|
2020-11-17 11:27:14 +01:00
|
|
|
}
|
|
|
|
|
2020-11-07 13:16:07 +01:00
|
|
|
getClientId(): number {
|
|
|
|
return this.clientId;
|
|
|
|
}
|
|
|
|
}
|