# Error attaching participant video to the session with Javascript

**URL:** <https://devforum.zoom.us/t/error-attaching-participant-video-to-the-session-with-javascript/103831>\
**Category:** Twilio Migration\
**Created:** [February 14, 2024, 12:49pm UTC](https://devforum.zoom.us/t/error-attaching-participant-video-to-the-session-with-javascript/103831 "2024-02-14T12:49:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![d.munoz.semesur](https://avatars.discourse-cdn.com/v4/letter/d/c89c15/32.png) [@d.munoz.semesur](https://devforum.zoom.us/u/d.munoz.semesur)\
**Post date:** [February 14, 2024, 12:49pm UTC](https://devforum.zoom.us/t/error-attaching-participant-video-to-the-session-with-javascript/103831/1 "2024-02-14T12:49:03Z")

</div>

Hello everyone, I’m migrating from Twilio to Zoom and I’m having trouble getting a participant into the room. When it enters, the ‘peer-video-state-change’ event correctly detects the entry and obtains the userId correctly, however I get an error ‘zoom-video-1.9.8.min.js:1 Uncaught TypeError: zoomSession.attachVideo is not a function’. I have followed the migration instructions but I get that error. Also, if I get information from the payload, it comes out as action ‘stop’ when I suppose it should be ‘start’.

Thank you all.

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [February 14, 2024, 5:46pm UTC](https://devforum.zoom.us/t/error-attaching-participant-video-to-the-session-with-javascript/103831/2 "2024-02-14T17:46:12Z")

</div>

Hey @d.munoz.semesur ,

The `attachVideo` was introduced in version 1.10.7. If you upgrade your Video SDK version to `1.10.7` it will work.

> **[Video SDK - web - 1.10.7](https://developers.zoom.us/changelog/video-sdk/web/1.10.7/)**
>
> The Zoom Developer Platform is an open platform that allows third-party developers to build applications and integrations upon Zoom’s video-first unified communications platform.

Best,  
Tommy
