jmanuelrosa / wistia-uploader

Wistia Uploader Directive

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wistia Uploader

Use

npm start or npm run startor node server/index.js

TODO

Created a directive called fileUpload (fileUpload.directive.js), which has a controller for controlling the state of the video. When user upload a video file, it is in queue state, so it can not reproduce until their status is ready.

Wistia has an API for this, but as the file upload is done by blueimp-file-upload, polling has been made, asking Wistia API, until the state ready. The GET request to get the status of the video is done in the UploadService (fileUpload.service.js), and the polling is done in the controller that directive.

For vendors, NPM has been used, although it could have been used with bower without any problem.

The scaffolding of the application is specific to this exercise, although it could have used another component-based, or models.

About

Wistia Uploader Directive

License:ISC License


Languages

Language:JavaScript 67.8%Language:HTML 19.7%Language:CSS 12.5%