AWS IVS Client
This is a Crystal client for interacting with AWS Interactive Video Service.
Installation
-
Add the dependency to your
shard.yml
:dependencies: aws-ivs-client: github: joysticktv/aws-ivs-client
-
Run
shards install
Usage
require "aws-ivs-client"
AWS::IVS::Client.configure do |settings|
settings.aws_access_key_id = ENV["AWS_ACCESS_KEY_ID"]
settings.aws_secret_access_key = ENV["AWS_SECRET_ACCESS_KEY"]
settings.aws_region = ENV["AWS_REGION"]
end
client = AWS::IVS::Client.new
response = client.create_channel("mystreamname")
# This is the stream key used to go live!
response["streamKey"]["value"].as_s
Development
- write code
- write spec
crystal tool format spec/ src/
./bin/ameba
crystal spec
- repeat
Contributing
- Fork it (https://github.com/joysticktv/aws-ivs-client/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
Contributors
- JoystickTV - creator and maintainer