@@ -581,6 +581,7 @@ async fn fingerprint_test(
581581 let params = PopulateSdpParams {
582582 media_description_fingerprint : sdpmedia_description_fingerprints,
583583 is_icelite : false ,
584+ extmap_allow_mixed : false ,
584585 connection_role : ConnectionRole :: Active ,
585586 ice_gathering_state : RTCIceGatheringState :: New ,
586587 match_bundle_group : None ,
@@ -777,6 +778,7 @@ async fn test_populate_sdp() -> Result<()> {
777778 let params = PopulateSdpParams {
778779 media_description_fingerprint : se. sdp_media_level_fingerprints ,
779780 is_icelite : se. candidates . ice_lite ,
781+ extmap_allow_mixed : true ,
780782 connection_role : DEFAULT_DTLS_ROLE_OFFER . to_connection_role ( ) ,
781783 ice_gathering_state : RTCIceGatheringState :: Complete ,
782784 match_bundle_group : None ,
@@ -882,6 +884,7 @@ async fn test_populate_sdp() -> Result<()> {
882884 let params = PopulateSdpParams {
883885 media_description_fingerprint : se. sdp_media_level_fingerprints ,
884886 is_icelite : se. candidates . ice_lite ,
887+ extmap_allow_mixed : true ,
885888 connection_role : DEFAULT_DTLS_ROLE_OFFER . to_connection_role ( ) ,
886889 ice_gathering_state : RTCIceGatheringState :: Complete ,
887890 match_bundle_group : None ,
@@ -962,6 +965,7 @@ async fn test_populate_sdp() -> Result<()> {
962965 let params = PopulateSdpParams {
963966 media_description_fingerprint : se. sdp_media_level_fingerprints ,
964967 is_icelite : se. candidates . ice_lite ,
968+ extmap_allow_mixed : true ,
965969 connection_role : DEFAULT_DTLS_ROLE_OFFER . to_connection_role ( ) ,
966970 ice_gathering_state : RTCIceGatheringState :: Complete ,
967971 match_bundle_group : None ,
@@ -981,6 +985,8 @@ async fn test_populate_sdp() -> Result<()> {
981985 offer_sdp. attribute( ATTR_KEY_GROUP ) ,
982986 Some ( & "BUNDLE video" . to_owned( ) )
983987 ) ;
988+
989+ assert ! ( offer_sdp. has_attribute( ATTR_KEY_EXTMAP_ALLOW_MIXED ) ) ;
984990 }
985991
986992 //"Bundle matched"
@@ -1057,6 +1063,7 @@ async fn test_populate_sdp() -> Result<()> {
10571063 let params = PopulateSdpParams {
10581064 media_description_fingerprint : se. sdp_media_level_fingerprints ,
10591065 is_icelite : se. candidates . ice_lite ,
1066+ extmap_allow_mixed : true ,
10601067 connection_role : DEFAULT_DTLS_ROLE_OFFER . to_connection_role ( ) ,
10611068 ice_gathering_state : RTCIceGatheringState :: Complete ,
10621069 match_bundle_group : Some ( "audio" . to_owned ( ) ) ,
@@ -1122,6 +1129,7 @@ async fn test_populate_sdp() -> Result<()> {
11221129 let params = PopulateSdpParams {
11231130 media_description_fingerprint : se. sdp_media_level_fingerprints ,
11241131 is_icelite : se. candidates . ice_lite ,
1132+ extmap_allow_mixed : true ,
11251133 connection_role : DEFAULT_DTLS_ROLE_OFFER . to_connection_role ( ) ,
11261134 ice_gathering_state : RTCIceGatheringState :: Complete ,
11271135 match_bundle_group : Some ( "" . to_owned ( ) ) ,
@@ -1231,6 +1239,7 @@ async fn test_populate_sdp_reject() -> Result<()> {
12311239 let params = PopulateSdpParams {
12321240 media_description_fingerprint : se. sdp_media_level_fingerprints ,
12331241 is_icelite : se. candidates . ice_lite ,
1242+ extmap_allow_mixed : true ,
12341243 connection_role : DEFAULT_DTLS_ROLE_OFFER . to_connection_role ( ) ,
12351244 ice_gathering_state : RTCIceGatheringState :: Complete ,
12361245 match_bundle_group : None ,
0 commit comments