Skip to content

Commit

Permalink
tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
Brazol committed Dec 20, 2024
1 parent e004341 commit 78f9539
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 14 deletions.
1 change: 1 addition & 0 deletions dogfooding/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ dependencies:
stream_video_screen_sharing: ^0.6.0

dependency_overrides:
wakelock_plus: ^1.2.9
stream_video:
path: ../packages/stream_video
stream_video_flutter:
Expand Down
10 changes: 1 addition & 9 deletions packages/stream_video/lib/src/call/session/call_session.dart
Original file line number Diff line number Diff line change
Expand Up @@ -749,15 +749,7 @@ class CallSession extends Disposable {
return;
}

for (final track in tracksInfo) {
_logger.v(
() => '[negotiate] track.id: ${track.trackId}, '
'track.type: ${track.trackType}',
);
for (final layer in [...?track.layers]) {
_logger.v(() => '[negotiate] layer: $layer');
}
}
_logger.v(() => '[negotiate] announcing tracks: $tracksInfo');

final pubResult = await sfuClient.setPublisher(
sfu.SetPublisherRequest(
Expand Down
10 changes: 10 additions & 0 deletions packages/stream_video/lib/src/webrtc/rtc_manager.dart
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,11 @@ class RtcManager extends Disposable {
continue;
}

_logger.v(
() =>
'[onPublishOptionsChanged] adding transceiver for: ${publishOption.codec.name}',
);

// take the track from the existing transceiver for the same track type,
// and publish it with the new publish options
await _addTransceiver(item.track, publishOption);
Expand Down Expand Up @@ -716,6 +721,11 @@ extension PublisherRtcManager on RtcManager {
) async {
Result<rtc.RTCRtpTransceiver>? transceiverResult;

_logger.v(
() =>
'[addTransceiver] adding transceiver for: ${publishOptions.codec.name}',
);

// create a clone of the track as otherwise the same trackId will
// appear in the SDP in multiple transceivers
final mediaTrack = await track.originalMediaTrack.clone();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class TransceiverCache {

@override
String toString() {
return 'TransceiverCache{track: $track, publishOption $publishOption, sender.track.enabled: ${transceiver.sender.track?.enabled}}';
return 'TransceiverCache{mediaTrackId: ${track.mediaTrack.id}, publishOption: ${publishOption.id},${publishOption.codec}, sender.track.enabled: ${transceiver.sender.track?.enabled}}';
}
}

Expand Down
4 changes: 0 additions & 4 deletions packages/stream_video_flutter/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@ dependencies:
stream_webrtc_flutter: ^0.12.3+3
visibility_detector: ^0.4.0+2

dependency_overrides:
stream_video:
path: ../stream_video

dev_dependencies:
flutter_test:
sdk: flutter
Expand Down

0 comments on commit 78f9539

Please sign in to comment.