🚨 Latest Research:Tanstack npm Packages Compromised in Ongoing Mini Shai-Hulud Supply-Chain Attack.Learn More
Socket
Book a DemoSign in
Socket

heywatch

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

heywatch

NodeJS Module to encode videos with HeyWatch, a Cloud Video Encoding Service

latest
Source
npmnpm
Version
2.2.0
Version published
Maintainers
1
Created
Source

NodeJS client Library for encoding Videos with HeyWatch

Install

npm install heywatch

Submitting the job

Use the API Request Builder to generate a config file that match your specific workflow.

Example of heywatch.conf:

var s3 = s3://accesskey:secretkey@mybucket

set webhook = http://mysite.com/webhook/heywatch

-> mp4  = $s3/videos/video.mp4
-> webm = $s3/videos/video.webm
-> jpg_300x = $s3/previews/thumbs_#num#.jpg, number=3

Here is the javascript code to submit the config file:

var heywatch = require('heywatch');

heywatch.createJob({
  'conf': 'heywatch.conf',
  'source': 'https://s3-eu-west-1.amazonaws.com/media.heywatch.com/test.mp4',
  'vars': {'vid': 1234}
}, function(job) {
  if(job.status == 'ok') {
    console.log(job.id);
  } else {
    console.log(job.error_code);
    console.log(job.error_message);
  }
});

Note that you can use the environment variable HEYWATCH_API_KEY to set your API key.

Released under the MIT license.

Keywords

video

FAQs

Package last updated on 16 Oct 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts