View Source Membrane.RTMP.MessageValidator protocol (Membrane RTMP plugin v0.12.1)

Protocol for implementing RTMP Message validators. Allows for verifying some of the RTMP messages.

Link to this section Summary

Link to this section Types

@type t() :: term()
@type validation_result_t() :: {:ok, term()} | {:error, reason :: any()}

Link to this section Functions

Link to this function

validate_publish(impl, message)

View Source
@spec validate_publish(t(), Membrane.RTMP.Messages.Publish.t()) ::
  validation_result_t()

Validates the Membrane.RTMP.Messages.Publish.t/0 message.

Link to this function

validate_release_stream(impl, message)

View Source
@spec validate_release_stream(t(), Membrane.RTMP.Messages.ReleaseStream.t()) ::
  validation_result_t()

Validates the Membrane.RTMP.Messages.ReleaseStream.t/0 message.

Link to this function

validate_set_data_frame(impl, message)

View Source
@spec validate_set_data_frame(t(), Membrane.RTMP.Messages.SetDataFrame.t()) ::
  validation_result_t()

Validates the Membrane.RTMP.Messages.SetDataFrame.t/0 message.