Loading Video Filenames via API.

Just let it all out, buddy. You're among friends here.
Post Reply
ScottCoumbe
Posts: 5
Joined: Mon Mar 03, 2025 16:42

Loading Video Filenames via API.

Post by ScottCoumbe »

I am trying to load filenames via the request URL.
The command in question is:
POST /composition/layers/{layer-index}/clips/{clip-index}/open

but I am struggling on where to insert my file directory in the string.
the API document gives me the following request URL:
"http://192.168.187.205:8080/api/v1/comp ... ips/1/open"
But this does not have the file location.

Does this have to be done via Curl?

yannick.fullrez
Posts: 8
Joined: Fri Jan 26, 2024 23:53
Location: Berlin, Germany

Re: Loading Video Filenames via API.

Post by yannick.fullrez »

You need to send the file directory string as a text/plain POST request to that API endpoint, you don't insert it anywhere. Anything that can send HTTP requests can be used, cURL is only a very popular tool for this purpose :)

ScottCoumbe
Posts: 5
Joined: Mon Mar 03, 2025 16:42

Re: Loading Video Filenames via API.

Post by ScottCoumbe »

Sorry if I was not clear. I need to add the filename to the HTML string. but no matter where I put it. I get an error.
Example:
POST /composition/layers/{layer-index}/clips/{clip-index}/open file:///C:/Users/Resolume/Video.mp4

This returns an error that the file cannot be found and i need to use file:// or media://
but I know the file is there and the test function in the API web interface works fine.

moldybeats
Posts: 8
Joined: Wed Jan 04, 2023 04:14

Re: Loading Video Filenames via API.

Post by moldybeats »

When making a POST request, the request will have a URL and a separate body (that is, the data you're sending *to* the URL). So in this case the filename doesn't go anywhere in the URL.

A simple cURL command might be something like:

Code: Select all

curl -X POST http://192.168.187.205:8080/api/v1/composition/layers/1/clips/1/open --data "file:///C:/Users/Resolume/Video.mp4"

kentledgeathens
Posts: 1
Joined: Thu Apr 10, 2025 03:44
Location: https://blockblast-game.io

Re: Loading Video Filenames via API.

Post by kentledgeathens »

A POST request will have a URL and a distinct body, which is the data you are sending *to* the URL. In this instance, the filename appears nowhere in the URL.

Post Reply