Hello.
I have an AngularJS project and now I’m integrating the Zoom Video SDK (v: 1.12.5). When I use ‘mediaStream.startAudio()’ when I use it, I get an error as shown below. I’ve checked the affected parts of the project, but it still doesn’t work.
I hope to be inspired by you.
I introduced ‘index.umd.js’ index.html the project. The code is as follows:
<script src="/zoom/zoomVideo-1.12.5-index.umd.js"></script>
async initVideoAndAudio(sessionName,jwt,userName,passWord) {
zoomClient = WebVideoSDK.default.createClient()
await zoomClient.init("en-US", "Global", {patchJsMedia: true});
await zoomClient.join(sessionName, jwt, userName, passWord).then(() => {
mediaStream = zoomClient.getMediaStream()
console.log('Join meeting success');
}).catch(error => {
console.log('e ======>>>', error)
});
await mediaStream.startAudio().then(success => {
console.log('start audio success');
}, error => {
console.log('e ======>>>', error)
});
await mediaStream.startVideo().then(success => {
console.log('video start success');
}, error => {
console.log('e ======>>>', error)
});
let userVideo = await mediaStream.attachVideo(zoomClient.getCurrentUserInfo().userId, VideoQuality.Video_720P)
document.querySelector('#self-view-video').appendChild(userVideo)
}