I am really struggling to get this working. I’ve tried both the php and javascript implementations. and Im only a basic javascript developer… But seriously the documentation sucks, the authentication doesn’t appear to run through “bearer $token”, the endpoint URL is not the Location URL as in the examples.
I should say, I can upload small videos and the player is working etc. I just cant get the tus direct creator upload to work.
Firstly I can get the single use URL…
I call https://api.cloudflare.com/client/v4/accounts/XXXX/stream?direct_user=true and I get a Location return of the form.
https://upload.videodelivery.net/tus/XXXX?tusv2=true
To the extent that its relevant, I cant get any authorization through with a bearer $token. (CORS Errors), I have to use email and api-key. And I’ve tried that in postman and same issues. If thats the correct way to do it… PLEASE UPDATE THE DOCUMENTATION.
Ive been to the CodeOpen site and while that worked on ONE occasion, its not working on any of the Location URLS that I’m being given currently. I’m not sure if they are “Single Use” or “valid for a period of time” like the expiry value.
I WAS supplying the Location URL (the videodelivery one ) to TUS, but then you get a crapload of CORS errors… so I read the forums here and apparently you dont need to supply those… I need to supply “my own endpoint”.
Now I dont know what that is, so I’ve been supplying my website url. Which def stops all of the CORS errors, but now I get “Failed because: Error: tus: invalid or missing Location header, originated from request”
despite the fact, that the Location URL has been returned.
It would be great if a CloudFlare support person could contact me, cause i’m reading "Cloudflare Stream is an easy-to-use… " and I’m thinking no its not…