Skip to content

Commit

Permalink
ov-components: Removed unnecessary code
Browse files Browse the repository at this point in the history
Removed getTokenMetadata method
  • Loading branch information
CSantosM committed Oct 23, 2024
1 parent c53b1b5 commit 104046c
Showing 1 changed file with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ export class OpenViduService {
private localTracks: LocalTrack[] = [];
private livekitToken = '';
private livekitUrl = '';
private livekitRoomAdmin = false;
private log: ILogger;

/**
Expand Down Expand Up @@ -129,15 +128,6 @@ export class OpenViduService {
return this.room?.name;
}

/**
* Returns the room metadata from the token
* @returns
*/
getRoomMetadata(): { roomAdmin: boolean } {
return {
roomAdmin: this.livekitRoomAdmin
};
}

/**
* Returns if the room is connected or not
Expand All @@ -154,7 +144,6 @@ export class OpenViduService {
const livekitData = this.extractLivekitData(token, livekitUrl);
this.livekitToken = token;
this.livekitUrl = livekitData.livekitUrl;
this.livekitRoomAdmin = livekitData.livekitRoomAdmin;

if (!this.livekitUrl) {
this.log.e('LiveKit URL is not defined. Please, check the livekitUrl parameter of the VideoConferenceComponent');
Expand Down

0 comments on commit 104046c

Please sign in to comment.