Skip to content

shavit/elixir-rtmp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RTMP

Build Status

Streaming client and server

At the moment there are no build-in media encoders, so you will need to implement your own.

Create a client

iex(1)> {:ok, pid} = ExRTMP.Client.new ip: "127.0.0.1"
iex(2)> 
[debug] Handshake completed

AMF Encoders and Decoders

Encode and decode AMF0, AMF3 messages.

iex> AMF0.encode 3.141
<<0, 64, 9, 32, 196, 155, 165, 227, 84>>
iex(5)> AMF3.encode [1, 2, 3]
<<14, 7, 0, 0, 0, 0, 1, 0, 0, 0, 2, 0, 0, 0, 3>>

Configurations

  • rtmp_port - Environment variable RTMP_PORT, default to 1935.

Development

Debug the server with rtmpdump

Test

mix test