Autoplay tabs based on video duration


I’m Working on functionality auto change tab based on video duration. Implented this functionality with this reference video: Auto Change Webflow Tabs (timed to video duration too!) - YouTube
It working as expected in one project, not working on other project
When the check the difference - When i check the code with console statements - In cutsom code the target value taking wrong value. In the target aria-labelledby attribute value - In actual project it taking value is w-tabs-1-data-w-tab-0 In my project it taking values is video_id
Because of that i’m getting error

Can any one suggest how to resolve this and how can we edit aria-labelledby attribute value.
Testing link: iB Cricket | Highly Immersive VR Cricket | Oculus Quest 2

Please help me to resolve the issue

Here is my site Read-Only:
(how to share your site Read-Only link)