Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

opentok-rest

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

opentok-rest

Unofficial OpenTok REST API

  • 0.1.1
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

opentok-rest

Unofficial OpenTok REST API for Node. Not all features are available in the official Node client (most BETA features), this is why we made this module.

Build Status

Getting started

npm install opentok-rest
// or
yarn install opentok-rest
const OpenTokRest = require('opentok-rest')
const opentok = new OpenTokRest('opentok-key', 'opentok-secret')

Broadcast

Start a broadcast
opentok.broadcast.start(sessionId, outputs)
  .then(broadcast => {
    // resolves an opentok broadcast object.
  })

See doc for an example object: https://tokbox.com/developer/rest/#start_broadcast

Start a broadcast
opentok.broadcast.stop(broadcastId)
  .then(broadcast => {
    // resolves an opentok broadcast object.
    // example response: https://tokbox.com/developer/rest/#stop_broadcast
  })
  .catch(...)
Set the layout

See https://tokbox.com/developer/rest/#change_live_streaming_layout for layout options

opentok.broadcast.setLayout(broadcastId, layout)
  .then(...)
  .catch(...)

Archive

Set the layout

See https://tokbox.com/developer/beta/archive-custom-layout/#dynamically-changing-the-layout-type-while-the-session-is-being-archived for layout options

opentok.archive.setLayout(archiveId, layout)
  .then(...)
  .catch(...)

FAQs

Package last updated on 16 May 2017

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc