websemantics / vimeo-upload

Upload videos to your Vimeo account and update their metadata directly from a browser or a Node.js app
http://websemantics.github.io/vimeo-upload/
Apache License 2.0
114 stars 80 forks source link

Allow custom privacy settings #17

Open jehartzog opened 7 years ago

jehartzog commented 7 years ago

I used this lib, but had to follow up every upload with a second call to set my videos privacy to 'disable'. We are using Vimeo to embed videos, so that was the setting we needed.

Eventually I enabled 'Private Mode' on Vimeo, which actually caused uploads to fail because this library first tried to set two options which were not supported in that mode. That drove me to finally update this and make it work for more uses cases, as requested in #14.

I tested this with my app and it worked fine, I didn't test the updates to index.html but they are pretty simple.

kevinpaulconnor commented 6 years ago

Any reason why this hasn't been merged? I was about to make my own very similar PR and it seems like a pretty trivial change.

dauris commented 5 years ago

I am using your method but when I attempt to upload and use the unlisted value but it always uploads as 'anybody' I've added privacy: 'unlisted', within vimeo-uploads.js file I added 'privacy.view': (opts.privacy > '') ? opts.privacy : defaults.privacy any suggestion

jrfii-animation commented 2 years ago

Hello, everyone!

I know that I'm quite late to this discussion, but I was wondering if anyone that has had trouble getting this to work properly has any helpful advice for me. Like @dauris, it seems that no matter what I do, the video's 'privacy.view' is set to 'anybody.' Between @jehartzog suggested fix and Vimeo's documentation, found here:

https://developer.vimeo.com/api/reference/videos#edit_video

I feel that my attempts to get this working should have done the trick; however, I've had no such luck.

I'm trying to submit the upload as "Hidden from Vimeo," or, in other words, with 'privacy.view' set to 'disable.' I've tried countless variations that are centered around the various discussions here, and even have this value set on Vimeo's default upload settings.

Further, I'm currently using Vimeo's 30-day free trial for their Standard package.

Any thoughts and suggestions would be greatly appreciated. Thanks for your time.