Skip to content

Commit e2f8031

Browse files
authored
feat: Set bundlePolicy for the peerconnection (#923)
1 parent 5eeabf7 commit e2f8031

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

packages/stream_video/lib/src/types/other.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ class RTCConfiguration {
3838
return <String, dynamic>{
3939
// only supports unified plan
4040
'sdpSemantics': 'unified-plan',
41+
'bundlePolicy':
42+
'max-bundle', // https://linear.app/stream/issue/FLU-91/peerconnection-rtp-bundle
4143
if (iceServersMap.isNotEmpty) 'iceServers': iceServersMap,
4244
if (iceCandidatePoolSize != null)
4345
'iceCandidatePoolSize': iceCandidatePoolSize,
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import 'package:flutter_test/flutter_test.dart';
2+
import 'package:stream_video/stream_video.dart' show RTCConfiguration;
3+
4+
void main() {
5+
test('Verify default configurations', () {
6+
const sut = RTCConfiguration();
7+
final map = sut.toMap();
8+
9+
expect(map['sdpSemantics'], 'unified-plan');
10+
expect(map['bundlePolicy'], 'max-bundle');
11+
});
12+
}

0 commit comments

Comments
 (0)