backend: Add TODO in LiveKitService for deprecated warning
This commit is contained in:
parent
d354191815
commit
499e36786b
@ -177,11 +177,11 @@ export class LiveKitService {
|
|||||||
* @returns {Promise<EgressInfo[]>} A promise that resolves to an array of EgressInfo objects.
|
* @returns {Promise<EgressInfo[]>} A promise that resolves to an array of EgressInfo objects.
|
||||||
* @throws Will throw an error if there is an issue retrieving the egress information.
|
* @throws Will throw an error if there is an issue retrieving the egress information.
|
||||||
*/
|
*/
|
||||||
async getEgress(roomName?:string, egressId?: string): Promise<EgressInfo[]> {
|
async getEgress(roomName?: string, egressId?: string): Promise<EgressInfo[]> {
|
||||||
try {
|
try {
|
||||||
const options: ListEgressOptions = {
|
const options: ListEgressOptions = {
|
||||||
roomName,
|
roomName,
|
||||||
egressId,
|
egressId
|
||||||
};
|
};
|
||||||
return await this.egressClient.listEgress(options);
|
return await this.egressClient.listEgress(options);
|
||||||
} catch (error: any) {
|
} catch (error: any) {
|
||||||
@ -220,6 +220,7 @@ export class LiveKitService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
isEgressParticipant(participant: ParticipantInfo): boolean {
|
isEgressParticipant(participant: ParticipantInfo): boolean {
|
||||||
|
// TODO: Remove deprecated warning by using ParticipantInfo_Kind: participant.kind === ParticipantInfo_Kind.EGRESS;
|
||||||
return participant.identity.startsWith('EG_') && participant.permission?.recorder === true;
|
return participant.identity.startsWith('EG_') && participant.permission?.recorder === true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user