Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/src/participant/local.dart
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,6 @@ class LocalParticipant extends Participant<LocalTrackPublication> {

track.lastPublishOptions = publishOptions;

await track.start();

final transceiverInit = rtc.RTCRtpTransceiverInit(
direction: rtc.TransceiverDirection.SendOnly,
sendEncodings: [
Expand Down Expand Up @@ -130,6 +128,8 @@ class LocalParticipant extends Participant<LocalTrackPublication> {
publication: pub,
));

await track.start();

return pub;
}

Expand Down
4 changes: 2 additions & 2 deletions lib/src/participant/remote.dart
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,6 @@ class RemoteParticipant extends Participant<RemoteTrackPublication> {
throw UnexpectedStateException('Unknown track type');
}

await track.start();

/// Apply audio output selection for the web.
if (pub.kind == TrackType.AUDIO && lkPlatformIs(PlatformType.web)) {
if (audioOutputOptions.deviceId != null) {
Expand All @@ -189,6 +187,8 @@ class RemoteParticipant extends Participant<RemoteTrackPublication> {
track: track,
publication: pub,
));

await track.start();
}

@override
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ dependencies:
device_info_plus: '>=8.0.0'
js: ^0.6.4
platform_detect: ^2.0.7
dart_webrtc: ^1.4.0
dart_webrtc: ^1.4.2
sdp_transform: ^0.3.2
web: ^0.5.1

Expand Down