View Source Membrane.RTC.Engine.Message.MediaEvent (Membrane RTC Engine v0.6.0)

Message emitted when RTC Engine needs to send some Media Event to the Client Library.

Link to this section Summary

Types

t()

Describes MediaEvent Message structure.

Link to this section Types

@type t() :: %Membrane.RTC.Engine.Message.MediaEvent{
  data: binary(),
  rtc_engine: pid(),
  to: Membrane.RTC.Engine.Peer.id() | :broadcast
}

Describes MediaEvent Message structure.

  • rtc_engine - pid of RTC Engine instance which emitted this message
  • to - informs where this Media Event should be sent. If set to :broadcast, the Media Event should be sent to all peers. When set to t:Membrane.RTC.Engine.Peer.id(), the Media Event should be sent to that specified peer.
  • data - Media Event in serialized i.e. binary form