I need to upload and retrieve videos to vimeo

Hi Everyone!

I need my users to upload videos and then display them on their profile (like instagram) and I was planning on using Vimeo as the video player since it looks the nicest.

I’ve figured out how to upload a video to my database and then use the video URL to upload to my Vimeo but I can’t figure out how to retrieve the Vimeo video to the users post.

I hope this makes sense.

Can anyone help?

Once the video is uploaded to Vimeo you just need to use the Vimeo Video ID in a Video element to display the video.

So you’ll want to create a Video datatype in your Bubble database (if you haven’t already) and store the Vimeo video ID in there (or you could just store it on the Post datatype). Then simply refer the the database item in the Video player.

1 Like

Okay thanks! But how do I retrieve the Vimeo Video ID?

You can get that in the response of the API call you used to upload the video to Vimeo.

The API call should return various data about the uploaded video, including the video ID, so when you create your Video datatype entry you can refer to the API response’s Video ID.

1 Like

Don’t suppose you know how to integrate Vimeo Live Streams in the same way do you? Thanks

Hi @adamhholmes,
i’ve used pull approach to upload video on Vimeo. I don’t have any video ID data in the POST response. Which data should i use to play the video on my page?
Besides, do you advise using Bubble Video player?

Thanks

It’s been a while since I worked with Vimeo - but the Response should include the URI of the uploaded video, from which you can extract the VideoID.

The Bubble video player is fine, but it’s very basic.

So it depends on what you need.

If you just need to be able to play/pause/stop a video etc. then the Bubble video player will be fine.

But if you need more advanced functionality then you’ll need to create your own (using the Vimeo SDK), or find a plugin.

Ok thank you @adamhholmes , i’ll use the URI and basic player :slight_smile:
Do you remember how to know when to delete the file on the bubble cdn (once it has been pulled to vimeo).
Since it is not synchrone, do you remember if there is any webhook telling the pull has finished? or do you schedule a deletion in the future?

@adamhholmes i found i could check the status of the video with a GET request on its id. I would have preferred a webhook but i will schedule API WF to regularly check status. Once “available” on vimeo, i can trigger the file deletion on Bubble cdn.