@@ -581,6 +581,7 @@ async fn fingerprint_test(
581
581
let params = PopulateSdpParams {
582
582
media_description_fingerprint : sdpmedia_description_fingerprints,
583
583
is_icelite : false ,
584
+ extmap_allow_mixed : false ,
584
585
connection_role : ConnectionRole :: Active ,
585
586
ice_gathering_state : RTCIceGatheringState :: New ,
586
587
match_bundle_group : None ,
@@ -777,6 +778,7 @@ async fn test_populate_sdp() -> Result<()> {
777
778
let params = PopulateSdpParams {
778
779
media_description_fingerprint : se. sdp_media_level_fingerprints ,
779
780
is_icelite : se. candidates . ice_lite ,
781
+ extmap_allow_mixed : true ,
780
782
connection_role : DEFAULT_DTLS_ROLE_OFFER . to_connection_role ( ) ,
781
783
ice_gathering_state : RTCIceGatheringState :: Complete ,
782
784
match_bundle_group : None ,
@@ -882,6 +884,7 @@ async fn test_populate_sdp() -> Result<()> {
882
884
let params = PopulateSdpParams {
883
885
media_description_fingerprint : se. sdp_media_level_fingerprints ,
884
886
is_icelite : se. candidates . ice_lite ,
887
+ extmap_allow_mixed : true ,
885
888
connection_role : DEFAULT_DTLS_ROLE_OFFER . to_connection_role ( ) ,
886
889
ice_gathering_state : RTCIceGatheringState :: Complete ,
887
890
match_bundle_group : None ,
@@ -962,6 +965,7 @@ async fn test_populate_sdp() -> Result<()> {
962
965
let params = PopulateSdpParams {
963
966
media_description_fingerprint : se. sdp_media_level_fingerprints ,
964
967
is_icelite : se. candidates . ice_lite ,
968
+ extmap_allow_mixed : true ,
965
969
connection_role : DEFAULT_DTLS_ROLE_OFFER . to_connection_role ( ) ,
966
970
ice_gathering_state : RTCIceGatheringState :: Complete ,
967
971
match_bundle_group : None ,
@@ -981,6 +985,8 @@ async fn test_populate_sdp() -> Result<()> {
981
985
offer_sdp. attribute( ATTR_KEY_GROUP ) ,
982
986
Some ( & "BUNDLE video" . to_owned( ) )
983
987
) ;
988
+
989
+ assert ! ( offer_sdp. has_attribute( ATTR_KEY_EXTMAP_ALLOW_MIXED ) ) ;
984
990
}
985
991
986
992
//"Bundle matched"
@@ -1057,6 +1063,7 @@ async fn test_populate_sdp() -> Result<()> {
1057
1063
let params = PopulateSdpParams {
1058
1064
media_description_fingerprint : se. sdp_media_level_fingerprints ,
1059
1065
is_icelite : se. candidates . ice_lite ,
1066
+ extmap_allow_mixed : true ,
1060
1067
connection_role : DEFAULT_DTLS_ROLE_OFFER . to_connection_role ( ) ,
1061
1068
ice_gathering_state : RTCIceGatheringState :: Complete ,
1062
1069
match_bundle_group : Some ( "audio" . to_owned ( ) ) ,
@@ -1122,6 +1129,7 @@ async fn test_populate_sdp() -> Result<()> {
1122
1129
let params = PopulateSdpParams {
1123
1130
media_description_fingerprint : se. sdp_media_level_fingerprints ,
1124
1131
is_icelite : se. candidates . ice_lite ,
1132
+ extmap_allow_mixed : true ,
1125
1133
connection_role : DEFAULT_DTLS_ROLE_OFFER . to_connection_role ( ) ,
1126
1134
ice_gathering_state : RTCIceGatheringState :: Complete ,
1127
1135
match_bundle_group : Some ( "" . to_owned ( ) ) ,
@@ -1231,6 +1239,7 @@ async fn test_populate_sdp_reject() -> Result<()> {
1231
1239
let params = PopulateSdpParams {
1232
1240
media_description_fingerprint : se. sdp_media_level_fingerprints ,
1233
1241
is_icelite : se. candidates . ice_lite ,
1242
+ extmap_allow_mixed : true ,
1234
1243
connection_role : DEFAULT_DTLS_ROLE_OFFER . to_connection_role ( ) ,
1235
1244
ice_gathering_state : RTCIceGatheringState :: Complete ,
1236
1245
match_bundle_group : None ,
0 commit comments