如何使用Ajax发布方法发布视频。我能够使用node-video-lib解析视频。我没有用户界面来浏览视频
const VideoLib = require('node-video-lib');
fs.open(__dirname+"/SampleVideo_1280x720_1mb.mp4", 'r', function(err, fd) {
try {
let movie = VideoLib.MovieParser.parse(fd);
console.log('Duration:', movie.relativeDuration());
// Now I want to post this video to some place using a POST method.
request({
method: 'POST',
url: myUrl+'/videos/'
.....
.....
} catch (ex) {
console.error('Error:', ex);
} finally {
fs.closeSync(fd);
}
});