Skip to content

elobuff/em-rtmp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EM-RTMP

Build Status

Asynchronous RTMP client powered by EventMachine.

Usage

require "em-rtmp"
# Start the EventMachine
EventMachine.run do

  # Establish a connection
  connection = EventMachine::RTMP.connect 'flashserver.bigmediacompany.com'

  # Issue an RTMP connect after the RTMP handshake
  connection.on_handshake_complete do
    EventMachine::RTMP::ConnectRequest.new(connection).send
  end

  # After the RTMP connect succeeds, continue on
  connection.on_ready do
    ...
  end

end

License

MIT License, see LICENSE for details.