Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

usage

  • Loading branch information...
commit 554bc47b49fb1621ac15894423e846cb24d6b039 1 parent f69d9fb
@admc authored
Showing with 28 additions and 0 deletions.
  1. +28 −0 README.md
View
28 README.md
@@ -21,6 +21,34 @@ npm install zc
## Usage
<pre>
+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);
+ });
</pre>
Please sign in to comment.
Something went wrong with that request. Please try again.