Project

livepeer

0.0
The project is in a healthy, maintained state
Ruby library for the Livepeer API.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
 Dependencies

Development

Runtime

 Project Readme

Livepeer Ruby Library

The Livepeer Ruby library provides convenient access to the Livepeer Studio API from applications written in Ruby.

Documentation

For full documentation and examples, please visit docs.livepeer.org.

Installation

Install the library:

gem install livepeer

If you want to build the gem from source:

gem build livepeer.gemspec

Requirements

  • Ruby: = 3.0

Usage

The library needs to be configured with your Livepeer Studio account's API key, which is available in the Studio Dashboard

require_relative livepeer


lpClient = Livepeer::SDK.new

lpClient.config_security(
  security=Shared::Security.new(
    api_key="",
  )
)

# retrieve all streams
res = lpClient.stream.get_all()

if ! res.data.nil?
  # handle response
end

Available Resources and Operations

Stream

MultistreamTarget

  • get_all - Retrieve Multistream Targets
  • create - Create a multistream target
  • delete - Delete a multistream target
  • get - Retrieve a multistream target
  • update - Update Multistream Target

Webhook

Asset

Metrics

Session

AccessControl

Task

Transcode

Playback

  • get - Retrieve Playback Info