Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] The trackPublication values are not clear. #588

Open
freerunningpanda opened this issue Sep 17, 2024 · 0 comments
Open

[bug] The trackPublication values are not clear. #588

freerunningpanda opened this issue Sep 17, 2024 · 0 comments

Comments

@freerunningpanda
Copy link

Describe the bug
Hello dear author
During the call, the stream that I received from the remote participant (audio and video) did not delete from the map when the opponent stopped the track publication. This getter was still showing data: participant.trackPublications.values().ToList(). Because of this, I had memory leaks. I needed to stop the stream when there were no more trackPublications, but trackPublications existed even though the remote participant had stopped the stream.

To Reproduce
Start the mutual call. Try to print participant.trackPublications.values().ToList() to the console when the remote participant publishes his track. You will see that the stream has been added to the map and then the opponent stops the stream. participant.trackPublications.values().ToList() is still showing data from the remote participant.

Expected behavior
After the remote participant stops the stream, the data in participant.trackPublications.values().ToList() should be empty.

Platform information

[✓] Flutter (Channel stable, 3.22.2, on macOS 13.6.1 22G313 darwin-arm64, locale ru-TH)
• Flutter version 3.22.2 on channel stable at /Users/aleksandrnagornyj/Developer/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 761747bfc5 (3 months ago), 2024-06-05 22:15:13 +0200
• Engine revision edd8546116
• Dart version 3.4.3
• DevTools version 2.34.3

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
• Android SDK at /Users/aleksandrnagornyj/Library/Android/sdk
• Platform android-34, build-tools 34.0.0
• Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 17.0.7+0-17.0.7b1000.6-10550314)
• All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.2)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 15C500b
• CocoaPods version 1.15.2

[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2023.1)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 17.0.7+0-17.0.7b1000.6-10550314)

[✓] VS Code (version 1.93.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.96.0

[✓] Connected device (3 available)
• macOS (desktop) • macos • darwin-arm64 • macOS 13.6.1 22G313 darwin-arm64
• Mac Designed for iPad (desktop) • mac-designed-for-ipad • darwin • macOS 13.6.1 22G313 darwin-arm64
• Chrome (web) • chrome • web-javascript • Google Chrome 128.0.6613.138

[✓] Network resources
• All expected network resources are available.

• No issues found!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant