# New Video and Vidyard Update - Window.obj / iframe

**URL:** <https://community.hubspot.com/t/new-video-and-vidyard-update-window-obj-iframe/52331>\
**Category:** CMS Development\
**Tags:** javascript, html\
**Created:** [March 1, 2022, 10:16am UTC](https://community.hubspot.com/t/new-video-and-vidyard-update-window-obj-iframe/52331 "2022-03-01T10:16:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gabrisan](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/gabrisan/32/104055_2.png) [@Gabrisan](https://community.hubspot.com/u/Gabrisan)\
**Post date:** [March 1, 2022, 10:16am UTC](https://community.hubspot.com/t/new-video-and-vidyard-update-window-obj-iframe/52331/1 "2022-03-01T10:16:51Z")

</div>

Hi there,  
After this update, we cannot have the previous control that we had, with javascript in a video embed.  
I mean that before we could have access to the js object **VidyardV4**.  
And from there, we can have control of the video, objects and events like play/pause.  
Right now, we just have this **window****.hsVideoApi**, without any event or function that return objects video (or at least I cannot find it).

We cannot acces also to the generated Iframe due to the cros origin policy, and we cannot use html video methods.  
Can someone help me with this?  
Thanks in advance,  
Gabriele

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [March 1, 2022, 4:45pm UTC](https://community.hubspot.com/t/new-video-and-vidyard-update-window-obj-iframe/52331/2 "2022-03-01T16:45:14Z")

</div>

@albertsg , @stefen , [@Mark\_Ryba](https://community.hubspot.com/t5/user/viewprofilepage/user-id/138856) ,

Any of you have experience with this?

---

<div class="post-metadata">

**Author:** ![MrJustinGivens](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mrjustingivens/32/49537_2.png) [@MrJustinGivens](https://community.hubspot.com/u/MrJustinGivens)\
**Post date:** [November 21, 2022, 10:19pm UTC](https://community.hubspot.com/t/new-video-and-vidyard-update-window-obj-iframe/52331/3 "2022-11-21T22:19:19Z")

</div>

Hey @Gabrisan found a solution. I was having the same problem.

Check out DeckerDev GIST: [hubspot video status handling? via Stuart Grant - Dev @ King Post Studio, LLC (hubspot dev slack) · GitHub](https://gist.github.com/NickDeckerDevs/5213df3ff7e79161bbd15c175e6c6726)
