View Source Membrane.RTC.Engine.Message.MediaEvent (Membrane RTC Engine v0.8.0)
Message emitted when RTC Engine needs to send some Media Event to the Client Library.
Link to this section Summary
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 messageto
- informs where this Media Event should be sent. If set to:broadcast
, the Media Event should be sent to all peers. When set tot:Membrane.RTC.Engine.Peer.id()
, the Media Event should be sent to that specified peer.data
- Media Event in serialized i.e. binary form