Expand description
A direct transport represents a direct connection between the mediasoup Rust process and a
Router
instance in a mediasoup-worker thread.
A direct transport can be used to directly send and receive data messages from/to Rust by
means of DataProducer
s and
DataConsumer
s of type Direct
created on a direct
transport.
Direct messages sent by a DataProducer
in a direct
transport can be consumed by endpoints connected through a SCTP capable transport
(WebRtcTransport
,
PlainTransport
,
PipeTransport
and also by the Rust application by means
of a DataConsumer
created on a DirectTransport
(and
vice-versa: messages sent over SCTP/DataChannel can be consumed by the Rust application by
means of a DataConsumer
created on a DirectTransport
).
A direct transport can also be used to inject and directly consume RTP and RTCP packets in
Rust by using the DirectProducer::send
and
Consumer::on_rtp
API (plus DirectTransport::send_rtcp
and DirectTransport::on_rtcp
API).
Structs§
- A direct transport represents a direct connection between the mediasoup Rust process and a
Router
instance in a mediasoup-worker thread. DirectTransport
options.- RTC statistics of the direct transport.
WeakDirectTransport
doesn’t own direct transport instance on mediasoup-worker and will not prevent one from being destroyed once last instance of regularDirectTransport
is dropped.