paratii-js

0.2.6 • Public • Published

CircleCI

paratii.js is the main entry point and abstraction layer to interact with Paratii, a decentralized platform for video distribution.

More information about the Paratii Project can be found on paratii.video, or in our blueprint. Join the discussion on gitter.

Installation

You can install paratii-js from npmjs.org using:

npm install paratii-js

How to use it

Here is a code snippet which will upload a video to Paratii and transcode it:

// import the Paratii object
const Paratii  = require('paratii-js')
// create a new instance of Paratii with default values
const paratii = new Paratii()

// where is your video?
const YOURVID = '/path/to/video.mp4'

// go and add the video
paratii.vids.uploadAndTranscode({
  file: YOURVID,
  title: 'Paratii for fun and profit'
  })

We have more extensive documentation on https://docs.paratii.video

Contributing to paratii.js

Contributions are most welcome! Please read CONTRIBUTING.md

Deploying

  • Run the following commands:

    $ git checkout master && git pull
    $ yarn version --new-version <patch|minor|major>
    $ git push --follow-tags
    

    This will tell CircleCI to build and then publish a new version x.x.x to the npm registry

Package Sidebar

Install

npm i paratii-js

Weekly Downloads

0

Version

0.2.6

License

GPL-3.0

Unpacked Size

12.6 MB

Total Files

96

Last publish

Collaborators

  • paratii