Merge branch 'voip/fix-group-call-issue-for-flutter-and-dart' into 'main'

fix: Fixed issue with group calls for web and flutter.

See merge request famedly/company/frontend/famedlysdk!1112
This commit is contained in:
Krille Fear 2022-08-25 06:36:44 +00:00
commit 2e912d1a4f
3 changed files with 6 additions and 9 deletions

View File

@ -82,7 +82,7 @@ class WrappedMediaStream {
Future<void> dispose() async {
renderer.srcObject = null;
if (isLocal() && stream != null) {
if (isLocal() && stream != null && isWeb) {
for (final element in stream!.getTracks()) {
await element.stop();
}

View File

@ -1092,13 +1092,10 @@ class GroupCall {
onStreamRemoved.add(stream);
if (voip.delegate.isWeb) {
stream.stream!.getTracks().forEach((element) {
element.stop();
});
}
stream.dispose();
stream.stream!.dispose();
onGroupCallEvent.add(GroupCallEvent.UserMediaStreamsChanged);

View File

@ -29,7 +29,7 @@ dependencies:
random_string: ^2.3.1
sdp_transform: ^0.3.2
slugify: ^2.0.0
webrtc_interface: ^1.0.1
webrtc_interface: ^1.0.7
dev_dependencies:
coverage: ">=0.15.0 <2.0.0"