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
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>>
rtmp_port
- Environment variableRTMP_PORT
, default to 1935.
Debug the server with rtmpdump
mix test