An open API service indexing awesome lists of open source software.

https://github.com/shavit/elixir-rtmp

RTMP implementation
https://github.com/shavit/elixir-rtmp

amf0 amf3 elixir media-server rtmp rtmp-server

Last synced: 6 months ago
JSON representation

RTMP implementation

Awesome Lists containing this project

README

          

# RTMP

[![Build Status](https://travis-ci.org/shavit/elixir-rtmp.svg?branch=master)](https://travis-ci.org/shavit/elixir-rtmp)

> 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
```