vimeo-upload
Version:
Upload videos to your Vimeo account and update their metadata directly from a browser or a Node.js app.
60 lines (42 loc) • 2.44 kB
Markdown
```
_ ___
| | / (_)___ ___ ___ ____
| | / / / __ `__ \/ _ \/ __ \ ┌───────────────────────────┐
| |/ / / / / / / / __/ /_/ / | ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ %75 |
|___/_/_/ /_/ /_/\___/\____/ └───────────────────────────┘
Upload
```
[](https://travis-ci.org/websemantics/vimeo-upload)
[](http://standardjs.com/)
[](https://badge.fury.io/js/vimeo-upload)
[](https://badge.fury.io/bo/vimeo-upload)
[](https://github.com/websemantics/vimeo-upload/network) [](https://github.com/websemantics/vimeo-upload/stargazers)
[](http://isitmaintained.com/project/websemantics/vimeo-upload "Percentage of issues still open")
> Upload videos to your Vimeo account and update their metadata directly from a browser or a Node.js app.
Try it [LIVE](http://websemantics.github.io/vimeo-upload/)
## 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.
```javascript
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](https://developer.vimeo.com/apps).
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](https://github.com/googledrive/cors-upload-sample)