Я пытаюсь использовать Zoom SDK для Angular для своего приложения PWA, но когда я открываю приложение в мобильном браузере или в мобильном режиме (режим отладки в Chrome или Safari), оно не поддерживает соединение со звуком и не поддержка адаптивного режима.
В обычном браузере работает нормально!
Вот мой код:
import {Component, OnInit, Inject} from '@angular/core';
import {HttpClient} from '@angular/common/http';
import {DOCUMENT} from '@angular/common';
import {ZoomMtg} from '@zoomus/websdk';
import {ActivatedRoute} from '@angular/router';
ZoomMtg.preLoadWasm();
ZoomMtg.prepareJssdk();
@Component({
selector: 'app-education-meeting',
templateUrl: './education-meeting.component.html',
styleUrls: ['./education-meeting.component.css']
})
export class EducationMeetingComponent implements OnInit {
signatureEndpoint = 'http://7b4be2d6a655.ngrok.io'
apiKey = 'MY KEY'
meetingNumber = 12345211
role = 0
leaveUrl = 'http://localhost:4200/login'
userName = 'MY USER'
userEmail = '[email protected]'
passWord = '455331'
constructor(public httpClient: HttpClient, @Inject(DOCUMENT) document, private route: ActivatedRoute) {
}
ngOnInit() {
this.route.params.subscribe(params => {
this.meetingNumber = +params['meetingId'];
this.passWord = params['password'];
// this.getSignature();
});
}
getSignature() {
this.httpClient.post(this.signatureEndpoint, {
meetingNumber: this.meetingNumber,
role: this.role
}).toPromise().then((data: any) => {
if (data.signature) {
this.startMeeting(data.signature)
} else {
}
}).catch((error) => {
console.log(error)
})
}
startMeeting(signature) {
document.getElementById('zmmtg-root').style.display = '-webkit-inline-box'
ZoomMtg.init({
leaveUrl: this.leaveUrl,
disableInvite: true,
showMeetingHeader: false,
// disableCallOut: true,
disableRecord: false,
// disableJoinAudio: false,
// isSupportAV: false,
videoDrag: false,
isSupportNonverbal: false,
isSupportChat: false,
isSupportQA: false,
isSupportCC: false,
sharingMode: 'fit',
isLockBottom: false,
audioPanelAlwaysOpen: true,
meetingInfo: [],
// disableVoIP: true, // optional
disableReport: true, // optional
screenShare: false,
success: (success) => {
ZoomMtg.join({
signature: signature,
meetingNumber: this.meetingNumber,
userName: this.userName,
apiKey: this.apiKey,
userEmail: this.userEmail,
passWord: this.passWord,
success: (success) => {
console.log(success)
},
error: (error) => {
console.log(error)
}
})
},
error: (error) => {
console.log(error)
}
})
}
}
Кто-нибудь нашел обходной путь?
Кроме того, хотелось бы узнать, есть ли способ убрать проверку капчи?