Skip to content

Commit 1fa5f23

Browse files
committed
Document direction behavior
1 parent 1edb4a7 commit 1fa5f23

File tree

1 file changed

+6
-2
lines changed
  • webrtc/src/api/media_engine

1 file changed

+6
-2
lines changed

webrtc/src/api/media_engine/mod.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,8 +334,12 @@ impl MediaEngine {
334334
}
335335
}
336336

337-
/// register_header_extension adds a header extension to the MediaEngine
338-
/// To determine the negotiated value use [`get_header_extension_id`] after signaling is complete
337+
/// Adds a header extension to the MediaEngine
338+
/// To determine the negotiated value use [`get_header_extension_id`] after signaling is complete.
339+
///
340+
/// The `allowed_direction` controls for which transceiver directions the extension matches. If
341+
/// set to `None` it matches all directions. The `SendRecv` direction would match all transceiver
342+
/// directions apart from `Inactive`. Inactive ony matches inactive.
339343
pub fn register_header_extension(
340344
&mut self,
341345
extension: RTCRtpHeaderExtensionCapability,

0 commit comments

Comments
 (0)