Expand description
SfuCore::admit_user returns one MediaSession per admitted room connection.
The session sequences offer/answer, publication, subscription, recording and cleanup without exposing room or transport internals.
SfuCore::admit_user -> MediaSession
establish -> offer -> answer
publish -> [offer -> answer]?
deactivate_publication -> cancel pending or suppress committed source
subscribe -> persist intent and reconcile eligible routes
close -> remove only the current connection&mut MediaSession serializes negotiation. MediaSession::publish queues
the first intent for each stream while an offer awaits its answer. A successful
MediaSession::answer may return the follow-up offer.
Re-exportsยง
pub use crate::engine::media_transport::SessionOffer as NegotiationOffer;pub use crate::engine::media_transport::SessionUploadEncoding as UploadEncoding;pub use crate::engine::media_transport::SessionUploadSlot as UploadSlot;
Structsยง
- InFlight
Offer ๐ - in-flight offer state plus mutations deferred until its answer is accepted
- Media
Session - One admitted user connection in one room.
- SfuCore
- A cloneable core handle that admits users into room-bound
MediaSessions.
Enumsยง
- Session
Error - error returned by
MediaSessionoperations - Session
Offer ๐Purpose - reason an offer is waiting for an answer
- Session
Phase ๐ - media-session negotiation phase
- SfuCore
Error