File tree Expand file tree Collapse file tree 3 files changed +5
-0
lines changed Expand file tree Collapse file tree 3 files changed +5
-0
lines changed Original file line number Diff line number Diff line change 7
7
* Add IP filter to WebRTC ` SettingEngine ` [ #306 ] ( https://github.com/webrtc-rs/webrtc/pull/306 )
8
8
* Stop sequence numbers from increasing in ` TrackLocalStaticSample ` while the bound ` RTCRtpSender ` have
9
9
directions that should not send. [ #316 ] ( https://github.com/webrtc-rs/webrtc/pull/316 )
10
+ * Add support for a mime type "audio/telephone-event" (rfc4733) [ #322 ] ( https://github.com/webrtc-rs/webrtc/pull/322 )
10
11
11
12
#### Breaking changes
12
13
Original file line number Diff line number Diff line change @@ -48,6 +48,9 @@ pub const MIME_TYPE_PCMU: &str = "audio/PCMU";
48
48
/// MIME_TYPE_PCMA PCMA MIME type
49
49
/// Note: Matching should be case insensitive.
50
50
pub const MIME_TYPE_PCMA : & str = "audio/PCMA" ;
51
+ /// MIME_TYPE_TELEPHONE_EVENT telephone-event MIME type
52
+ /// Note: Matching should be case insensitive.
53
+ pub const MIME_TYPE_TELEPHONE_EVENT : & str = "audio/telephone-event" ;
51
54
52
55
const VALID_EXT_IDS : Range < isize > = 1 ..15 ;
53
56
Original file line number Diff line number Diff line change @@ -83,6 +83,7 @@ impl RTCRtpCodecCapability {
83
83
} else if mime_type == MIME_TYPE_G722 . to_lowercase ( )
84
84
|| mime_type == MIME_TYPE_PCMU . to_lowercase ( )
85
85
|| mime_type == MIME_TYPE_PCMA . to_lowercase ( )
86
+ || mime_type == MIME_TYPE_TELEPHONE_EVENT . to_lowercase ( )
86
87
{
87
88
Ok ( Box :: new ( rtp:: codecs:: g7xx:: G7xxPayloader :: default ( ) ) )
88
89
} else {
You can’t perform that action at this time.
0 commit comments