# Change Vimeo video source without creating a new player instance

**URL:** <https://community.weweb.io/t/change-vimeo-video-source-without-creating-a-new-player-instance/14913>\
**Category:** Ask us anything\
**Created:** [December 11, 2024, 12:41pm UTC](https://community.weweb.io/t/change-vimeo-video-source-without-creating-a-new-player-instance/14913 "2024-12-11T12:41:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MathiasVG](https://avatars.discourse-cdn.com/v4/letter/m/dec6dc/32.png) [@MathiasVG](https://community.weweb.io/u/MathiasVG)\
**Post date:** [December 11, 2024, 12:41pm UTC](https://community.weweb.io/t/change-vimeo-video-source-without-creating-a-new-player-instance/14913/1 "2024-12-11T12:41:03Z")

</div>

Hi,

I’m using Vimeo as video player in my app.  
On my page I have the video player and a list of playable video.  
I want to play a video from this list when a user click on it.  
To do that I bind the player source url to a variable and I update this variable when a user click on a video.  
But this create a new instance of the Vimeo player each time.  
Vimeo library provide the player.loadVideo(videoId) to load a new video directly in the Vimeo player instance but I get the following error when I do it on WeWeb while the videoId is correct: “Uncaught (in promise) Error: An id or url must be passed, either in an options object or as a data-vimeo-id or data-vimeo-url attribute.”

Any idea what is causing the error ? Or is there an alternative approach to achieve this ?

Cheers,  
Mathias

---

<div class="post-metadata">

**Author:** ![Joyce](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/joyce/32/13232_2.png) [@Joyce](https://community.weweb.io/u/Joyce)\
**Post date:** [December 17, 2024, 12:28pm UTC](https://community.weweb.io/t/change-vimeo-video-source-without-creating-a-new-player-instance/14913/2 "2024-12-17T12:28:58Z")

</div>

Mmm it sounds like this might not be the expected behavior. If you haven’t already, could you create a support ticket [here](https://support.weweb.io/) with a short video walking us through what you’re seeing so the team can investigate further?

Thanks!
