File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments