ZEGOCLOUD / zego_uikit_prebuilt_live_audio_room_flutter

MIT License
5 stars 7 forks source link

Urgent: Volume Control Issue - setVolume Not Affecting Broadcast Listeners #5

Open ifallah opened 1 month ago

ifallah commented 1 month ago

Environment

Technology Version
Flutter version 3.10.5
Plugin version 2.0.6
Android version 13
iOS version 16.5
macOS version 13.4
Xcode version 14.3.1
Google Chrome version 114.0.5735.199

Device information: Samsung Galaxy S22, iPhone 14 Pro, Huawei devices, iPad, both emulators and real devices

Description

The setVolume function is supposed to set the volume for both the local player and the publish volume. However, it currently only adjusts the volume for the local player. The listeners of the broadcast do not experience any change in the volume level. Additionally, the default volume setting of 30 seems excessively high and uncontrollable for the listeners.

Expected behavior: The volume level should be adjustable for both the person playing the audio and the listeners of the broadcast.

Current behavior: The volume level only changes for the person playing the audio file. The listeners hear the audio at a very high level, and they cannot control the volume.

Steps to reproduce

  1. Initialize the media player and start playing an audio file.
  2. Use the setVolume function to adjust the volume.
  3. Observe that the volume changes only for the local player, not for the listeners.

Images

Stacktrace/Logcat

yoer commented 1 month ago

new version will add isSyncToRemote in setVolume, you can set it to be true to sync remote volume.

wait for moments

yoer commented 1 month ago

https://pub.dev/documentation/zego_uikit_prebuilt_live_audio_room/latest/topics/APIs-topic.html#setvolume