Project

evostream

0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
Ruby wrapper for the Evostream API
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 1.3
~> 9.0
~> 10.3
~> 2.14
~> 1.13
 Project Readme

Evostream

Build Status

Ruby wrapper for the Evostream API

Installation

Add this line to your application's Gemfile:

gem 'evostream'

And then execute:

$ bundle

Or install it yourself as:

$ gem install evostream

Usage

client = Evostream::Client.new host: 'evostream.example.com', port: 80, path_prefix: '/evo'
client.liststreams
# With parameters
client.pullstream uri: "rtmp://localhost/live/my_stream", localstreamname: "master", keepalive: 1

You may use the block style configuration. The following code could be placed into a +config/initializers/evostream.rb+ when used in a Rails project.

# config/initializers/evostream.rb (for instance)

Evostream.configure do |config|
  config.host = 'evostream.example.com'
  config.port = 80
  config.path_prefix = '/evo'

  # Set the username and password when using http basic auth
  # config.username = 'evostream'
  # config.password = 'passw0rd'

  # Set the protocol and port for using HTTPS
  # config.protocol = 'https'
  # config.port = 443
end

# elsewhere

client = Evostream::Client.new
client.liststreams

Running tests

Local

$ bundle exec rake spec

Docker

$ docker-compose run --rm test

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request