add uploadVideo, encode video and upload to given url using Firefogg Chunk upload api

This commit is contained in:
j 2010-08-13 19:15:59 +02:00
commit dd86adb0c2
6 changed files with 183 additions and 42 deletions

View file

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