zc

0.0.1 • Public • Published

zencoder-js

Update node to latest

http://nodejs.org/#download

Install

npm install zc

Authors

  • Adam Christian (admc)

License

Usage

var zc = require('zc');

var obj = {
  api_key: "your api key"
  , input: "url to the video"
  , label: "what do you wanna call the result file (minus the extension)"
  , dest: "ftp://un:pwd@domain.blah.com"
  , codecs: {webm: {}}
};

var session = zc.zc(obj);

session.on('update', function(info){
  console.log('\x1b[36mupdate\x1b[0m: '+ info);
});

session.on('finished', function(info){
  console.log(' > \x1b[33mfinished\x1b[0m: '+ info);
});

//takes err, cb
session.init(
  function(o) {
    console.log('\x1b[36m%s\x1b[0m', 'Error: ', o);
  },
  function(o) {
    console.log('\x1b[36m%s\x1b[0m', 'Init: ', o);
  });

Readme

Keywords

none

Package Sidebar

Install

npm i zc

Weekly Downloads

0

Version

0.0.1

License

none

Last publish

Collaborators

  • admc