View Source Membrane.WebRTC.WhipServer (Membrane WebRTC plugin v0.23.3)

Server accepting WHIP connections.

Accepts the following options:

  • handle_new_client - function that accepts the client token and returns either the signaling channel to negotiate the connection or error to reject it. The signaling channel can be passed to Membrane.WebRTC.Source.
  • serve_static - path to static assets that should be served along with WHIP, under a /static endpoint. Useful to serve HTML assets. If set to false (default), no static assets are served
  • Any of Bandit.options/0 - Bandit configuration

Summary

Types

option()

@type option() ::
  {:handle_new_client,
   (token :: String.t() ->
      {:ok, Membrane.WebRTC.SignalingChannel.t()} | {:error, reason :: term()})}
  | {:serve_static, String.t() | false}
  | {atom(), term()}

Functions

child_spec(opts)

@spec child_spec([option()]) :: Supervisor.child_spec()

start_link(opts)

@spec start_link([option()]) :: Supervisor.on_start()