EM-RTMP
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