Skip to content

Commit dd5666c

Browse files
univeroserocrainliu
univeroseroc
authored andcommitted
1 parent f0a3362 commit dd5666c

File tree

11 files changed

+35
-35
lines changed

11 files changed

+35
-35
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use serde::{Deserialize, Serialize};
22

33
/// DTLSFingerprint specifies the hash function algorithm and certificate
4-
/// fingerprint as described in https://tools.ietf.org/html/rfc4572.
4+
/// fingerprint as described in <https://tools.ietf.org/html/rfc4572>.
55
#[derive(Default, Debug, Clone, Serialize, Deserialize)]
66
pub struct RTCDtlsFingerprint {
77
/// Algorithm specifies one of the the hash function algorithms defined in
@@ -10,6 +10,6 @@ pub struct RTCDtlsFingerprint {
1010

1111
/// Value specifies the value of the certificate fingerprint in lowercase
1212
/// hex string as expressed utilizing the syntax of 'fingerprint' in
13-
/// https://tools.ietf.org/html/rfc4572#section-5.
13+
/// <https://tools.ietf.org/html/rfc4572#section-5>.
1414
pub value: String,
1515
}

src/dtls_transport/dtls_role.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ pub enum DTLSRole {
2424
Server = 3,
2525
}
2626

27-
/// https://tools.ietf.org/html/rfc5763
27+
/// <https://tools.ietf.org/html/rfc5763>
2828
/// The answerer MUST use either a
2929
/// setup attribute value of setup:active or setup:passive. Note that
3030
/// if the answerer uses setup:passive, then the DTLS handshake will

src/ice_transport/ice_candidate.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ impl RTCIceCandidate {
142142
}
143143

144144
/// to_json returns an ICECandidateInit
145-
/// as indicated by the spec https://w3c.github.io/webrtc-pc/#dom-rtcicecandidate-tojson
145+
/// as indicated by the spec <https://w3c.github.io/webrtc-pc/#dom-rtcicecandidate-tojson>
146146
pub async fn to_json(&self) -> Result<RTCIceCandidateInit> {
147147
let candidate = self.to_ice().await?;
148148

src/ice_transport/ice_candidate_type.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ pub enum RTCIceCandidateType {
88
Unspecified,
99

1010
/// ICECandidateTypeHost indicates that the candidate is of Host type as
11-
/// described in https://tools.ietf.org/html/rfc8445#section-5.1.1.1. A
11+
/// described in <https://tools.ietf.org/html/rfc8445#section-5.1.1.1>. A
1212
/// candidate obtained by binding to a specific port from an IP address on
1313
/// the host. This includes IP addresses on physical interfaces and logical
1414
/// ones, such as ones obtained through VPNs.
@@ -17,7 +17,7 @@ pub enum RTCIceCandidateType {
1717

1818
/// ICECandidateTypeSrflx indicates the the candidate is of Server
1919
/// Reflexive type as described
20-
/// https://tools.ietf.org/html/rfc8445#section-5.1.1.2. A candidate type
20+
/// <https://tools.ietf.org/html/rfc8445#section-5.1.1.2>. A candidate type
2121
/// whose IP address and port are a binding allocated by a NAT for an ICE
2222
/// agent after it sends a packet through the NAT to a server, such as a
2323
/// STUN server.
@@ -32,7 +32,7 @@ pub enum RTCIceCandidateType {
3232
Prflx,
3333

3434
/// ICECandidateTypeRelay indicates the the candidate is of Relay type as
35-
/// described in https://tools.ietf.org/html/rfc8445#section-5.1.1.2. A
35+
/// described in <https://tools.ietf.org/html/rfc8445#section-5.1.1.2>. A
3636
/// candidate type obtained from a relay server, such as a TURN server.
3737
#[serde(rename = "relay")]
3838
Relay,

src/ice_transport/ice_credential_type.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ pub enum RTCIceCredentialType {
77
Unspecified,
88

99
/// ICECredential::Password describes username and password based
10-
/// credentials as described in https://tools.ietf.org/html/rfc5389.
10+
/// credentials as described in <https://tools.ietf.org/html/rfc5389>.
1111
Password,
1212

1313
/// ICECredential::Oauth describes token based credential as described
14-
/// in https://tools.ietf.org/html/rfc7635.
14+
/// in <https://tools.ietf.org/html/rfc7635>.
1515
/// Not supported in WebRTC 1.0 spec
1616
Oauth,
1717
}

src/mux/mux_func.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ pub fn match_range(lower: u8, upper: u8) -> MatchFunc {
1818
}
1919

2020
/// MatchFuncs as described in RFC7983
21-
/// https://tools.ietf.org/html/rfc7983
21+
/// <https://tools.ietf.org/html/rfc7983>
2222
/// +----------------+
2323
/// | [0..3] -+--> forward to STUN
2424
/// | |

src/peer_connection/mod.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ impl RTCPeerConnection {
209209
let internal_rtcp_writer = Arc::clone(&internal) as Arc<dyn RTCPWriter + Send + Sync>;
210210
let interceptor_rtcp_writer = interceptor.bind_rtcp_writer(internal_rtcp_writer).await;
211211

212-
// https://w3c.github.io/webrtc-pc/#constructor (Step #2)
212+
// <https://w3c.github.io/webrtc-pc/#constructor> (Step #2)
213213
// Some variables defined explicitly despite their implicit zero values to
214214
// allow better readability to understand what is happening.
215215
Ok(RTCPeerConnection {
@@ -241,7 +241,7 @@ impl RTCPeerConnection {
241241
}
242242
}
243243

244-
// https://www.w3.org/TR/webrtc/#constructor (step #3)
244+
// <https://www.w3.org/TR/webrtc/#constructor> (step #3)
245245
if !configuration.certificates.is_empty() {
246246
let now = SystemTime::now();
247247
for cert in &configuration.certificates {
@@ -655,7 +655,7 @@ impl RTCPeerConnection {
655655
/// configuration of this PeerConnection object. The returned object is a
656656
/// copy and direct mutation on it will not take affect until set_configuration
657657
/// has been called with Configuration passed as its only argument.
658-
/// https://www.w3.org/TR/webrtc/#dom-rtcpeerconnection-getconfiguration
658+
/// <https://www.w3.org/TR/webrtc/#dom-rtcpeerconnection-getconfiguration>
659659
pub fn get_configuration(&self) -> &RTCConfiguration {
660660
&self.configuration
661661
}
@@ -665,7 +665,7 @@ impl RTCPeerConnection {
665665
}
666666

667667
/// create_offer starts the PeerConnection and generates the localDescription
668-
/// https://w3c.github.io/webrtc-pc/#dom-rtcpeerconnection-createoffer
668+
/// <https://w3c.github.io/webrtc-pc/#dom-rtcpeerconnection-createoffer>
669669
pub async fn create_offer(
670670
&self,
671671
options: Option<RTCOfferOptions>,
@@ -806,7 +806,7 @@ impl RTCPeerConnection {
806806
}
807807

808808
/// Update the PeerConnectionState given the state of relevant transports
809-
/// https://www.w3.org/TR/webrtc/#rtcpeerconnectionstate-enum
809+
/// <https://www.w3.org/TR/webrtc/#rtcpeerconnectionstate-enum>
810810
async fn update_connection_state(
811811
on_peer_connection_state_change_handler: &Arc<
812812
Mutex<Option<OnPeerConnectionStateChangeHdlrFn>>,
@@ -1229,7 +1229,7 @@ impl RTCPeerConnection {
12291229
/// local_description returns PendingLocalDescription if it is not null and
12301230
/// otherwise it returns CurrentLocalDescription. This property is used to
12311231
/// determine if set_local_description has already been called.
1232-
/// https://www.w3.org/TR/webrtc/#dom-rtcpeerconnection-localdescription
1232+
/// <https://www.w3.org/TR/webrtc/#dom-rtcpeerconnection-localdescription>
12331233
pub async fn local_description(&self) -> Option<RTCSessionDescription> {
12341234
if let Some(pending_local_description) = self.pending_local_description().await {
12351235
return Some(pending_local_description);
@@ -1482,7 +1482,7 @@ impl RTCPeerConnection {
14821482
/// remote_description returns pending_remote_description if it is not null and
14831483
/// otherwise it returns current_remote_description. This property is used to
14841484
/// determine if setRemoteDescription has already been called.
1485-
/// https://www.w3.org/TR/webrtc/#dom-rtcpeerconnection-remotedescription
1485+
/// <https://www.w3.org/TR/webrtc/#dom-rtcpeerconnection-remotedescription>
14861486
pub async fn remote_description(&self) -> Option<RTCSessionDescription> {
14871487
self.internal.remote_description().await
14881488
}
@@ -2049,7 +2049,7 @@ impl RTCPeerConnection {
20492049
/// sctp returns the SCTPTransport for this PeerConnection
20502050
///
20512051
/// The SCTP transport over which SCTP data is sent and received. If SCTP has not been negotiated, the value is nil.
2052-
/// https://www.w3.org/TR/webrtc/#attributes-15
2052+
/// <https://www.w3.org/TR/webrtc/#attributes-15>
20532053
pub fn sctp(&self) -> Arc<RTCSctpTransport> {
20542054
Arc::clone(&self.internal.sctp_transport)
20552055
}

src/peer_connection/policy/sdp_semantics.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ pub enum RTCSdpSemantics {
99

1010
/// UnifiedPlan uses unified-plan offers and answers
1111
/// (the default in Chrome since M72)
12-
/// https://tools.ietf.org/html/draft-roach-mmusic-unified-plan-00
12+
/// <https://tools.ietf.org/html/draft-roach-mmusic-unified-plan-00>
1313
#[serde(rename = "unified-plan")]
1414
UnifiedPlan = 1,
1515

1616
/// PlanB uses plan-b offers and answers
1717
/// NB: This format should be considered deprecated
18-
/// https://tools.ietf.org/html/draft-uberti-rtcweb-plan-00
18+
/// <https://tools.ietf.org/html/draft-uberti-rtcweb-plan-00>
1919
#[serde(rename = "plan-b")]
2020
PlanB = 2,
2121

src/peer_connection/sdp/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -905,7 +905,7 @@ pub(crate) fn rtp_extensions_from_media_description(
905905
/// update_sdp_origin saves sdp.Origin in PeerConnection when creating 1st local SDP;
906906
/// for subsequent calling, it updates Origin for SessionDescription from saved one
907907
/// and increments session version by one.
908-
/// https://tools.ietf.org/html/draft-ietf-rtcweb-jsep-25#section-5.2.2
908+
/// <https://tools.ietf.org/html/draft-ietf-rtcweb-jsep-25#section-5.2.2>
909909
pub(crate) fn update_sdp_origin(origin: &mut Origin, d: &mut SessionDescription) {
910910
//TODO: if atomic.CompareAndSwapUint64(&origin.SessionVersion, 0, d.Origin.SessionVersion)
911911
if origin.session_version == 0 {

src/rtp_transceiver/mod.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@ pub(crate) mod srtp_writer_future;
3131
/// A synchronization source is a randomly chosen
3232
/// value meant to be globally unique within a particular
3333
/// RTP session. Used to identify a single stream of media.
34-
/// https://tools.ietf.org/html/rfc3550#section-3
34+
/// <https://tools.ietf.org/html/rfc3550#section-3>
3535
#[allow(clippy::upper_case_acronyms)]
3636
pub type SSRC = u32;
3737

3838
/// PayloadType identifies the format of the RTP payload and determines
3939
/// its interpretation by the application. Each codec in a RTP Session
4040
/// will have a different PayloadType
41-
/// https://tools.ietf.org/html/rfc3550#section-3
41+
/// <https://tools.ietf.org/html/rfc3550#section-3>
4242
pub type PayloadType = u8;
4343

4444
/// TYPE_RTCP_FBT_RANSPORT_CC ..
@@ -57,11 +57,11 @@ pub const TYPE_RTCP_FB_CCM: &str = "ccm";
5757
pub const TYPE_RTCP_FB_NACK: &str = "nack";
5858

5959
/// rtcpfeedback signals the connection to use additional RTCP packet types.
60-
/// https://draft.ortc.org/#dom-rtcrtcpfeedback
60+
/// <https://draft.ortc.org/#dom-rtcrtcpfeedback>
6161
#[derive(Default, Debug, Clone, PartialEq)]
6262
pub struct RTCPFeedback {
6363
/// Type is the type of feedback.
64-
/// see: https://draft.ortc.org/#dom-rtcrtcpfeedback
64+
/// see: <https://draft.ortc.org/#dom-rtcrtcpfeedback>
6565
/// valid: ack, ccm, nack, goog-remb, transport-cc
6666
pub typ: String,
6767

@@ -71,23 +71,23 @@ pub struct RTCPFeedback {
7171
}
7272

7373
/// RTPCapabilities represents the capabilities of a transceiver
74-
/// https://w3c.github.io/webrtc-pc/#rtcrtpcapabilities
74+
/// <https://w3c.github.io/webrtc-pc/#rtcrtpcapabilities>
7575
#[derive(Default, Debug, Clone)]
7676
pub struct RTCRtpCapabilities {
7777
pub codecs: Vec<RTCRtpCodecCapability>,
7878
pub header_extensions: Vec<RTCRtpHeaderExtensionCapability>,
7979
}
8080

8181
/// RTPRtxParameters dictionary contains information relating to retransmission (RTX) settings.
82-
/// https://draft.ortc.org/#dom-rtcrtprtxparameters
82+
/// <https://draft.ortc.org/#dom-rtcrtprtxparameters>
8383
#[derive(Default, Debug, Clone, Serialize, Deserialize)]
8484
pub struct RTCRtpRtxParameters {
8585
pub ssrc: SSRC,
8686
}
8787

8888
/// RTPCodingParameters provides information relating to both encoding and decoding.
8989
/// This is a subset of the RFC since Pion WebRTC doesn't implement encoding/decoding itself
90-
/// http://draft.ortc.org/#dom-rtcrtpcodingparameters
90+
/// <http://draft.ortc.org/#dom-rtcrtpcodingparameters>
9191
#[derive(Default, Debug, Clone, Serialize, Deserialize)]
9292
pub struct RTCRtpCodingParameters {
9393
pub rid: String,
@@ -98,12 +98,12 @@ pub struct RTCRtpCodingParameters {
9898

9999
/// RTPDecodingParameters provides information relating to both encoding and decoding.
100100
/// This is a subset of the RFC since Pion WebRTC doesn't implement decoding itself
101-
/// http://draft.ortc.org/#dom-rtcrtpdecodingparameters
101+
/// <http://draft.ortc.org/#dom-rtcrtpdecodingparameters>
102102
pub type RTCRtpDecodingParameters = RTCRtpCodingParameters;
103103

104104
/// RTPEncodingParameters provides information relating to both encoding and decoding.
105105
/// This is a subset of the RFC since Pion WebRTC doesn't implement encoding itself
106-
/// http://draft.ortc.org/#dom-rtcrtpencodingparameters
106+
/// <http://draft.ortc.org/#dom-rtcrtpencodingparameters>
107107
pub type RTCRtpEncodingParameters = RTCRtpCodingParameters;
108108

109109
/// RTPReceiveParameters contains the RTP stack settings used by receivers

src/rtp_transceiver/rtp_codec.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ impl fmt::Display for RTPCodecType {
5555
}
5656

5757
/// RTPCodecCapability provides information about codec capabilities.
58-
/// https://w3c.github.io/webrtc-pc/#dictionary-rtcrtpcodeccapability-members
58+
/// <https://w3c.github.io/webrtc-pc/#dictionary-rtcrtpcodeccapability-members>
5959
#[derive(Default, Debug, Clone, PartialEq)]
6060
pub struct RTCRtpCodecCapability {
6161
pub mime_type: String,
@@ -92,14 +92,14 @@ impl RTCRtpCodecCapability {
9292
}
9393

9494
/// RTPHeaderExtensionCapability is used to define a RFC5285 RTP header extension supported by the codec.
95-
/// https://w3c.github.io/webrtc-pc/#dom-rtcrtpcapabilities-headerextensions
95+
/// <https://w3c.github.io/webrtc-pc/#dom-rtcrtpcapabilities-headerextensions>
9696
#[derive(Default, Debug, Clone)]
9797
pub struct RTCRtpHeaderExtensionCapability {
9898
pub uri: String,
9999
}
100100

101101
/// RTPHeaderExtensionParameter represents a negotiated RFC5285 RTP header extension.
102-
/// https://w3c.github.io/webrtc-pc/#dictionary-rtcrtpheaderextensionparameters-members
102+
/// <https://w3c.github.io/webrtc-pc/#dictionary-rtcrtpheaderextensionparameters-members>
103103
#[derive(Default, Debug, Clone, PartialEq)]
104104
pub struct RTCRtpHeaderExtensionParameters {
105105
pub uri: String,
@@ -109,7 +109,7 @@ pub struct RTCRtpHeaderExtensionParameters {
109109
/// RTPCodecParameters is a sequence containing the media codecs that an RtpSender
110110
/// will choose from, as well as entries for RTX, RED and FEC mechanisms. This also
111111
/// includes the PayloadType that has been negotiated
112-
/// https://w3c.github.io/webrtc-pc/#rtcrtpcodecparameters
112+
/// <https://w3c.github.io/webrtc-pc/#rtcrtpcodecparameters>
113113
#[derive(Default, Debug, Clone, PartialEq)]
114114
pub struct RTCRtpCodecParameters {
115115
pub capability: RTCRtpCodecCapability,
@@ -118,7 +118,7 @@ pub struct RTCRtpCodecParameters {
118118
}
119119

120120
/// RTPParameters is a list of negotiated codecs and header extensions
121-
/// https://w3c.github.io/webrtc-pc/#dictionary-rtcrtpparameters-members
121+
/// <https://w3c.github.io/webrtc-pc/#dictionary-rtcrtpparameters-members>
122122
#[derive(Default, Debug, Clone)]
123123
pub struct RTCRtpParameters {
124124
pub header_extensions: Vec<RTCRtpHeaderExtensionParameters>,

0 commit comments

Comments
 (0)