Expand description
The whole session description, plus the well-known attribute keys. The session description — a whole SDP document.
A SessionDescription is the session-level fields (v=, o=, s=, t=, …) followed by
any number of MediaDescriptions. unmarshal parses one
from a string and marshal prints it back; the round trip is faithful, including attributes
this crate does not interpret.
The ATTR_KEY_* constants name the a= attributes WebRTC relies on — mid, msid,
setup, rtcp-mux, extmap and the direction flags — and the SEMANTIC_TOKEN_* constants
name the grouping semantics used with a=group and a=msid-semantic.
Structs§
- Origin
- Origin defines the structure for the “o=” field which provides the originator of the session plus a session identifier and version number.
- Repeat
Time - RepeatTime describes the “r=” fields of the session description which represents the intervals and durations for repeated scheduled sessions.
- Session
Description - SessionDescription is a a well-defined format for conveying sufficient information to discover and participate in a multimedia session.
- Time
Description - TimeDescription describes “t=”, “r=” fields of the session description which are used to specify the start and stop times for a session as well as repeat intervals and durations for the scheduled session.
- Time
Zone - TimeZone defines the structured object for “z=” line which describes repeated sessions scheduling.
- Timing
- Timing defines the “t=” field’s structured representation for the start and stop times.
Constants§
- ATTR_
KEY_ CANDIDATE - Constants for SDP attributes used in JSEP
- ATTR_
KEY_ CONNECTION_ SETUP a=setup: the DTLS role —active,passiveoractpass.- ATTR_
KEY_ END_ OF_ CANDIDATES a=end-of-candidates: ICE gathering for this section is complete.- ATTR_
KEY_ EXTMAP_ ALLOW_ MIXED a=extmap-allow-mixed: one- and two-byte header extensions may be mixed.- ATTR_
KEY_ EXT_ MAP a=extmap: maps an RTP header-extension URI to an id.- ATTR_
KEY_ GROUP a=group: groups m-lines, as BUNDLE does.- ATTR_
KEY_ ICELITE a=ice-lite: the endpoint is an ICE-lite implementation.- ATTR_
KEY_ IDENTITY a=identity: an identity assertion for the session.- ATTR_
KEY_ INACTIVE a=inactive: neither send nor receive.- ATTR_
KEY_ MAX_ MESSAGE_ SIZE a=max-message-size: the largest SCTP message this endpoint accepts.- ATTR_
KEY_ MID a=mid: the media identification tag that names this m-line.- ATTR_
KEY_ MSID a=msid: associates a track with a media stream.- ATTR_
KEY_ MSID_ SEMANTIC a=msid-semantic: declares the semantics used bya=msid.- ATTR_
KEY_ RECV_ ONLY a=recvonly: receive only.- ATTR_
KEY_ RTCPMUX a=rtcp-mux: RTP and RTCP share one port.- ATTR_
KEY_ RTCPRSIZE a=rtcp-rsize: reduced-size RTCP is supported.- ATTR_
KEY_ SEND_ ONLY a=sendonly: send only.- ATTR_
KEY_ SEND_ RECV a=sendrecv: send and receive.- ATTR_
KEY_ SSRC a=ssrc: declares an SSRC and its attributes.- ATTR_
KEY_ SSRC_ GROUP a=ssrc-group: relates SSRCs, such as an RTX stream to its primary.- SEMANTIC_
TOKEN_ FLOW_ IDENTIFICATION FID: flow identification — the SSRCs carry the same content, as RTX does.- SEMANTIC_
TOKEN_ FORWARD_ ERROR_ CORRECTION FEC: one SSRC carries error-correction data for another.- SEMANTIC_
TOKEN_ FORWARD_ ERROR_ CORRECTION_ FRAMEWORK FEC-FR: the FEC framework grouping semantic.- SEMANTIC_
TOKEN_ LIP_ SYNCHRONIZATION - Constants for semantic tokens used in JSEP
- SEMANTIC_
TOKEN_ WEBRTC_ MEDIA_ STREAMS WMS: WebRTC media streams, used witha=msid-semantic.
Type Aliases§
- Email
Address - EmailAddress describes a structured representations for the “e=” line which specifies email contact information for the person responsible for the conference.
- Phone
Number - PhoneNumber describes a structured representations for the “p=” line specify phone contact information for the person responsible for the conference.
- Session
Name - SessionName describes a structured representations for the “s=” field and is the textual session name.
- Version
- Version describes the value provided by the “v=” field which gives the version of the Session Description Protocol.