Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (14 sloc) 469 Bytes

Limelight Video

API interaction with the Limelight CDN

require 'limelight_video'

limelight = Limelight.new(
  organization: 'your organization key',
  access_key: 'your access key',
  secret: 'your secret key',
)

# Upload a file
limelight.upload('~/Downloads/sample.mp4', title: 'My cool file')

# Uploads a stream, the filename is needed for the mime type in the upload
limelight.upload(io_stream, title: 'My cool file', filename: 'dancing_cat.mp4')