vimeo-upload-privacy

1.0.0 • Public • Published
╭───╮╭─╮  
│   ││ │╭─╮╭──┬──┬─╮╭───╮╭───╮   
│   ││ │├─┤│ ╭╮ ╭╮ ││ ─ ││╭╮ │  ╭────────┬─────────────────────╮
╰╮  ╰╯╭╯│ ││ ││ ││ ││  ─┤│╰╯ │  | UPLOAD │ ▒▒▒▒▒▒▒▒▒▒▒░░░░ %75 |                    
 ╰────╯ ╰─╯╰─╯╰─╯╰─╯╰───╯╰───╯  ╰────────┴─────────────────────╯                    

Build Status js-standard-style npm version Bower version GitHub forks GitHub stars Percentage of issues still open

Upload videos to your Vimeo account and update their metadata directly from a browser or a Node.js app.

This project is a fork initially from here and than here and the goal is to let the privacy version available at npm.

Try it LIVE

Install

npm install vimeo-upload-privacy

Usage

Include vimeo-upload.js in your index.html.

Create a new VimeoUpload initialized with a Blob or File and Vimeo Access Token then call upload() to start the upload process.

var uploader = new VimeoUpload({
  file: file, // use method readAsArrayBuffer(file)
  token: accessToken,
  privacy: 'disable' || 'anybody' || 'contacts' || 'disable' || 'nobody' || 'password' || 'unlisted' || 'users',
  name: 'file name',
  description: 'file description',
});
 
uploader.upload();

Your access token need to be authorized by Vimeo. Create new Vimeo access token here.

Check index.html for details and additional parameters you can include when initializing VimeoUpload.

Credits

Sample code for uploading files directly with XHR/CORS: cors-upload-sample websemantics/vimeo-upload jehartzog/vimeo-upload

Package Sidebar

Install

npm i vimeo-upload-privacy

Weekly Downloads

0

Version

1.0.0

License

Apache 2.0

Last publish

Collaborators

  • lucianopf