Hello @tommy
iam trying to test zoom sdk using angular i follow your steps in this post
and i get the same error of joining fail
i use jwt app type credentials
but i didn’t subscribe for plan i just need to test it first
my component.ts
ZoomMtg.setZoomJSLib(‘https://dmogdx0jrul3u.cloudfront.net/1.4.2/lib’, ‘/av’)
ZoomMtg.preLoadWasm();
ZoomMtg.prepareJssdk();
@Component({
selector: ‘app-video-chat’,
templateUrl: ‘./video-chat.component.html’,
styleUrls: [‘./video-chat.component.css’]
})
export class VideoChatComponent implements OnInit {
meetConfig = {
apiKey: 'jwt_app_api_key',
apiSecret: 'jwt_app_api_secret',
meetingNumber: 1111111111,
userName: 'Angular',
passWord: "",
leaveUrl: "http://localhost:4200",
role: 0
};
signature = ZoomMtg.generateSignature({
meetingNumber: this.meetConfig.meetingNumber,
apiKey: this.meetConfig.apiKey,
apiSecret: this.meetConfig.apiSecret,
role: this.meetConfig.role,
success: function(res){
console.log(res.result);
}
});
constructor() {
}
ngOnInit() {
ZoomMtg.init({
leaveUrl: 'http://localhost:4200',
isSupportAV: true,
success: (res) => {
ZoomMtg.join({
meetingNumber: this.meetConfig.meetingNumber,
userName: this.meetConfig.userName,
signature: this.signature,
apiKey: this.meetConfig.apiKey,
userEmail: 'myemailaddress',
passWord: this.meetConfig.passWord,
success: (res) => {
console.log('join meeting success');
},
error: (res) => {
console.log(res);
}
});
},
error: (res) => {
console.log(res);
}
});
}
also adding jquery url in index.html