1.0.0 • Published 8 years ago
vimeo-upload-privacy v1.0.0
╭───╮╭─╮
│ ││ │╭─╮╭──┬──┬─╮╭───╮╭───╮
│ ││ │├─┤│ ╭╮ ╭╮ ││ ─ ││╭╮ │ ╭────────┬─────────────────────╮
╰╮ ╰╯╭╯│ ││ ││ ││ ││ ─┤│╰╯ │ | UPLOAD │ ▒▒▒▒▒▒▒▒▒▒▒░░░░ %75 |
╰────╯ ╰─╯╰─╯╰─╯╰─╯╰───╯╰───╯ ╰────────┴─────────────────────╯ 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-privacyUsage
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
1.0.0
8 years ago