Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 673 Bytes

README.md

File metadata and controls

32 lines (22 loc) · 673 Bytes

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.