websemantics / vimeo-upload
Upload videos to your Vimeo account and update their metadata directly from a browser or a Node.js app.
Installs: 286
Dependents: 0
Suggesters: 0
Security: 0
Stars: 114
Watchers: 14
Forks: 80
Open Issues: 26
Language:JavaScript
This package is not auto-updated.
Last update: 2024-12-19 07:51:10 UTC
README
╭───╮╭─╮
│ ││ │╭─╮╭──┬──┬─╮╭───╮╭───╮
│ ││ │├─┤│ ╭╮ ╭╮ ││ ─ ││╭╮ │ ╭────────┬─────────────────────╮
╰╮ ╰╯╭╯│ ││ ││ ││ ││ ─┤│╰╯ │ | UPLOAD │ ▒▒▒▒▒▒▒▒▒▒▒░░░░ %75 |
╰────╯ ╰─╯╰─╯╰─╯╰─╯╰───╯╰───╯ ╰────────┴─────────────────────╯
Upload videos to your Vimeo account and update their metadata directly from a browser or a Node.js app.
Try it LIVE
Install
Using Bower
bower install vimeo-upload
Or npm
npm install vimeo-upload
Usage
Include vimeo-upload.js
in your index.html.
<script src="bower_components/vimeo-upload/vimeo-upload.js"></script>
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, token: accessToken, }); 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