Skip to content

Commit eb11920

Browse files
authored
e2ee: Fix createEncodedStreams failure. (#498)
1 parent 5872b53 commit eb11920

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

lib/src/participant/local.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,6 @@ class LocalParticipant extends Participant<LocalTrackPublication> {
9090

9191
track.lastPublishOptions = publishOptions;
9292

93-
await track.start();
94-
9593
final transceiverInit = rtc.RTCRtpTransceiverInit(
9694
direction: rtc.TransceiverDirection.SendOnly,
9795
sendEncodings: [
@@ -130,6 +128,8 @@ class LocalParticipant extends Participant<LocalTrackPublication> {
130128
publication: pub,
131129
));
132130

131+
await track.start();
132+
133133
return pub;
134134
}
135135

lib/src/participant/remote.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,6 @@ class RemoteParticipant extends Participant<RemoteTrackPublication> {
170170
throw UnexpectedStateException('Unknown track type');
171171
}
172172

173-
await track.start();
174-
175173
/// Apply audio output selection for the web.
176174
if (pub.kind == TrackType.AUDIO && lkPlatformIs(PlatformType.web)) {
177175
if (audioOutputOptions.deviceId != null) {
@@ -189,6 +187,8 @@ class RemoteParticipant extends Participant<RemoteTrackPublication> {
189187
track: track,
190188
publication: pub,
191189
));
190+
191+
await track.start();
192192
}
193193

194194
@override

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ dependencies:
4242
device_info_plus: '>=8.0.0'
4343
js: ^0.6.4
4444
platform_detect: ^2.0.7
45-
dart_webrtc: ^1.4.0
45+
dart_webrtc: ^1.4.2
4646
sdp_transform: ^0.3.2
4747
web: ^0.5.1
4848

0 commit comments

Comments
 (0)