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);
  });

Keywords

none

install

npm i zc

Downloadsweekly downloads

0

version

0.0.1

license

none

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability