Skip to content

Commit 2a00a91

Browse files
committed
Make RTCRtpCodecCapability::payloader_for_codec public API
1 parent cbfd303 commit 2a00a91

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

webrtc/src/rtp_transceiver/rtp_codec.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,8 @@ pub struct RTCRtpCodecCapability {
6666
}
6767

6868
impl RTCRtpCodecCapability {
69-
pub(crate) fn payloader_for_codec(
70-
&self,
71-
) -> Result<Box<dyn rtp::packetizer::Payloader + Send + Sync>> {
69+
/// Turn codec capability into a `packetizer::Payloader`
70+
pub fn payloader_for_codec(&self) -> Result<Box<dyn rtp::packetizer::Payloader + Send + Sync>> {
7271
let mime_type = self.mime_type.to_lowercase();
7372
if mime_type == MIME_TYPE_H264.to_lowercase() {
7473
Ok(Box::new(rtp::codecs::h264::H264Payloader::default()))

0 commit comments

Comments
 (0)