# AngularJS uses Zoom to report an error

**URL:** <https://devforum.zoom.us/t/angularjs-uses-zoom-to-report-an-error/121249>\
**Category:** Video SDK\
**Tags:** video-sdk\
**Created:** [November 21, 2024, 3:29am UTC](https://devforum.zoom.us/t/angularjs-uses-zoom-to-report-an-error/121249 "2024-11-21T03:29:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![freda199594](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/freda199594/32/66057_2.png) [@freda199594](https://devforum.zoom.us/u/freda199594)\
**Post date:** [November 21, 2024, 3:29am UTC](https://devforum.zoom.us/t/angularjs-uses-zoom-to-report-an-error/121249/1 "2024-11-21T03:29:22Z")

</div>

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.

 ![util](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/4/5/45d22d9e607a7ddc38bed5677bffb4a5a84fdae3.png)

I introduced ‘index.umd.js’ index.html the project. The code is as follows：

```auto
<script src="/zoom/zoomVideo-1.12.5-index.umd.js"></script>

```

```auto
     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)
    }

```

---

<div class="post-metadata">

**Author:** ![vic.yang](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vic.yang/32/24656_2.png) [@vic.yang](https://devforum.zoom.us/u/vic.yang)\
**Post date:** [November 22, 2024, 8:31am UTC](https://devforum.zoom.us/t/angularjs-uses-zoom-to-report-an-error/121249/2 "2024-11-22T08:31:53Z")

</div>

Hey @freda199594

Thanks for your feedback.

I tested the code you provided on AngularJS 1.8.3 myself, and there were no errors; both audio and video worked normally.

Could you provide the session ID with the issue so we can investigate further?

Thanks  
Vic

---

<div class="post-metadata">

**Author:** ![freda199594](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/freda199594/32/66057_2.png) [@freda199594](https://devforum.zoom.us/u/freda199594)\
**Post date:** [November 27, 2024, 12:36am UTC](https://devforum.zoom.us/t/angularjs-uses-zoom-to-report-an-error/121249/3 "2024-11-27T00:36:07Z")

</div>

Thank you so much. This issue has been resolved, and it is the impact of other parts of the project.
