[][src]Module mediasoup::direct_transport

A direct transport represents a direct connection between the mediasoup Rust process and a Router instance in a mediasoup-worker subprocess.

A direct transport can be used to directly send and receive data messages from/to Rust by means of DataProducers and DataConsumers 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

DirectTransport

A direct transport represents a direct connection between the mediasoup Rust process and a Router instance in a mediasoup-worker subprocess.

DirectTransportOptions

Direct transport options.

DirectTransportStat

RTC statistics of the direct transport.

WeakDirectTransport

WeakDirectTransport doesn't own direct transport instance on mediasoup-worker and will not prevent one from being destroyed once last instance of regular DirectTransport is dropped.