AgoraIO-Extensions / Agora-Flutter-SDK

Flutter plugin of Agora RTC SDK for Android/iOS/macOS/Windows
https://pub.dev/packages/agora_rtc_engine
MIT License
717 stars 372 forks source link

How can you determine a remote users video and audio state on join? #1725

Closed dannnnthemannnn closed 1 month ago

dannnnthemannnn commented 1 month ago

Version of the agora_rtc_engine

6.3.0

Platforms affected

Steps to reproduce

  1. User joins a channel with audio/video already enabled
  2. onUserJoin is called with no indication of their current audio/video setting
  3. No other callbacks seem to be fired to indicate that their audio or video was enabled on join.

Expected results

There is a method to call to get the current state of a remtoe user (or it is included in onJoin)

Actual results

There isnt a way I can see to tell if their audio/video was on. The reason we need this is to be able to show things like a mute indicator or if their video is off, show a screen with their profile photo instead.

Code sample

Code sample ```dart [Paste your code here] ```

Screenshots or Video

Screenshots / Video demonstration [Upload media here]

Logs

Logs ```console [Paste your logs here] ```

Flutter Doctor output

Doctor output ```console Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel stable, 3.19.3, on macOS 14.1.1 23B81 darwin-arm64, locale en-US) [!] Android toolchain - develop for Android devices (Android SDK version 31.0.0) ✗ cmdline-tools component is missing Run `path/to/sdkmanager --install "cmdline-tools;latest"` See https://developer.android.com/studio/command-line for more details. ✗ Android license status unknown. Run `flutter doctor --android-licenses` to accept the SDK licenses. See https://flutter.dev/docs/get-started/install/macos#android-setup for more details. [✗] Xcode - develop for iOS and macOS ✗ Xcode installation is incomplete; a full installation is necessary for iOS and macOS development. Download at: https://developer.apple.com/xcode/ Or install Xcode via the App Store. Once installed, run: sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer sudo xcodebuild -runFirstLaunch ✗ CocoaPods not installed. CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin usage on the Dart side. Without CocoaPods, plugins will not work on iOS or macOS. For more info, see https://flutter.dev/platform-plugins To install see https://guides.cocoapods.org/using/getting-started.html#installation for instructions. [✓] Chrome - develop for the web [✓] Android Studio (version 2023.2) [✓] VS Code (version 1.84.2) [✓] VS Code (version 1.86.0-insider) [✓] Connected device (2 available) [✓] Network resources ```
littleGnAl commented 1 month ago

I think you can check the onUserMuteAudio, onUserMuteVideo for reference.

github-actions[bot] commented 1 month ago

Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. If you find this problem please file a new issue with the same description, what happens, logs and the output. All system setups can be slightly different so it's always better to open new issues and reference the related ones. Thanks for your contribution.

github-actions[bot] commented 3 weeks ago

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please raise a new issue.