add uploadVideo, encode video and upload to given url using Firefogg Chunk upload api
This commit is contained in:
parent
166268a30c
commit
dd86adb0c2
6 changed files with 183 additions and 42 deletions
|
|
@ -1,5 +1,4 @@
|
|||
// -*- coding: utf-8 -*-
|
||||
// vi:si:et:sw=4:sts=4:ts=4
|
||||
/* -*- mode: js2; js2-basic-offset: 4; indent-tabs-mode: nil -*- */
|
||||
|
||||
let EXPORTED_SYMBOLS = [ "oxff" ];
|
||||
|
||||
|
|
@ -51,5 +50,15 @@ let oxff = {
|
|||
q.executeStep();
|
||||
q.finalize();
|
||||
},
|
||||
extractVideo: function(oshash, url, profile, callback, progress) {
|
||||
var conn = this.getDB();
|
||||
var q = conn.createStatement("SELECT path FROM file WHERE oshash = :oshash");
|
||||
q.params.oshash = oshash;
|
||||
if (q.executeStep())
|
||||
var path = q.row.path;
|
||||
q.finalize();
|
||||
|
||||
ox.subprocess(command, options, callback);
|
||||
},
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue