0.16.1 • Published 11 months ago

@wavestreamlabs/wavestream-sdk-ts v0.16.1

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
11 months ago

Wavestream-sdk-ts

The Wavestream client libary is a Javascript SDK written in typescript that allows for seamless communication with Wavestream's API. Built-in methods make it easy to manage videos and webhooks operations.

Table of contents

Getting Started

Installation

Run following command to specify to npm where to fetch the wavestream sdk packages:

$ echo "@wavestream:registry=https://gitlab.com/api/v4/projects/39243899/packages/npm/" >> .npmrc

Install the package using npm:

$ npm install --save @wavestream/sdk-ts

After that, you can load the package:

const wavestreamClient = require("@wavestream/sdk-ts);

If you are using ES Modules, you can use:

import wavestreamClient from "@wavestream/sdk-ts";

Runtime requirements

Node.js v14 or newer

Usage

Example

// Initialize the client with your apiKey
const wavestream = new wavestreamClient({ apiKey: YOUR_API_KEY, endpoint?: API_URL, accessToken: YOUR_ACCESS_TOKEN });

//Create a new empty video container
let video = await wavestream.video.create({
  title: "Title of my video container",
  description: "Description of my video",
});

// Upload video source in the container
// The video processing starts automatically after the upload completes
wavestream.video.upload({
  videoId: video.id,
  filePath: "/home/user/Downloads/myFileName.mp4",
});

// Wait for the video to be processed
// Webhooks can be configured to notify the user when the upload and transcoding processes are completed

// Get video info
video = await wavestream.video.get(video.id);
video.outputs.forEach((vo) => console.log(vo.uri)); // Show outputs uri
0.15.0

11 months ago

0.16.0

11 months ago

0.15.1

11 months ago

0.16.1

11 months ago

0.13.0

1 year ago

0.14.0

1 year ago

0.13.1

1 year ago

0.14.1

1 year ago

0.12.0

1 year ago

0.10.0

1 year ago

0.11.0

1 year ago

0.9.0

1 year ago

0.8.0

1 year ago

0.7.0

1 year ago

0.6.0

1 year ago

0.5.0

1 year ago

0.4.1

1 year ago

0.4.0

1 year ago

0.3.1

1 year ago

0.3.0

1 year ago

0.2.0

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago

1.0.0

1 year ago