SamarRizvi / vimeo-upload

JavaScript library to upload videos to Vimeo hosting

Home Page:http://websemantics.github.io/vimeo-upload/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Vimeo Upload

Helper code for uploading video files directly with vanilla Javascript (XHR/CORS) to your Vimeo account.

Try the live version and drag & drop files to upload them to Vimeo.

Usage

If you'd like to use the code in your own project, copy upload.js and include it.

<script src="/path/to/upload.js"></script>

When uploading a file, create a new MediaUploader initialized with a Blob or File and Vimeo access token. Then call upload() to start the upload process.

var uploader = new MediaUploader({
  file: content,
  token: accessToken,
});
uploader.upload();

Your access token need to be authorized by Vimeo.

See upload.js for additional parameters you can include when initializing the uploader, including callbacks for success & failure events.

This code has only been tested for uploading videos and monitoring progress.

ToDo

Implement Pause / Resume

Open Source Projects Used

About

JavaScript library to upload videos to Vimeo hosting

http://websemantics.github.io/vimeo-upload/

License:Apache License 2.0


Languages

Language:JavaScript 73.1%Language:HTML 26.9%