ExRTMP.Server.ClientSession (RTMP Server and Client v0.4.1)

View Source

Module describing an RTMP client session.

Summary

Functions

Returns a specification to start this module under a supervisor.

Sends audio data to the client.

Sends metadata about the media to the client.

Sends video data to the client.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

send_audio_data(pid, timestamp, data)

@spec send_audio_data(pid(), non_neg_integer(), iodata()) :: :ok

Sends audio data to the client.

send_metadata(pid, data)

@spec send_metadata(pid(), map()) :: :ok

Sends metadata about the media to the client.

send_video_data(pid, timestamp, data)

@spec send_video_data(pid(), non_neg_integer(), iodata()) :: :ok

Sends video data to the client.

start_link(opts)

@spec start_link(keyword()) :: GenServer.on_start()