`
})
export class ToolbarDirectiveComponent implements OnInit {
tokens: TokenModel;
sessionId = 'toolbar-directive-example';
OPENVIDU_URL = 'https://localhost:4443';
OPENVIDU_SECRET = 'MY_SECRET';
publishVideo = true;
publishAudio = true;
constructor(private restService: RestService, private openviduService: OpenViduService) { }
ngOnInit(): void { }
async onJoinButtonClicked() {
this.tokens = {
webcam: await this.restService.getToken(this.sessionId, this.OPENVIDU_URL, this.OPENVIDU_SECRET),
screen: await this.restService.getToken(this.sessionId, this.OPENVIDU_URL, this.OPENVIDU_SECRET)
};
}
async toggleVideo(): Promise