voxeet / voxeet-sdk-ios

The Dolby.io Communications SDK for iOS.
https://docs.dolby.io/communications-apis/docs/ios-overview
Other
3 stars 0 forks source link

Error when trying to unmute local participants #71

Open vodemn opened 1 year ago

vodemn commented 1 year ago

Steps to Reproduce the Problem

  1. Join conference with disabled audio
  2. Call VoxeetSDK.shared.conference.mute(participant: VoxeetSDK.shared.session.participant!, isMuted: false)
  3. Call VoxeetSDK.shared.conference.mute(participant: VoxeetSDK.shared.session.participant!, isMuted: true)

Specifications

Logs

(MediaEngine.mm:545): Failed to set mute with error: /Users/dolbyio/builds/7xyVAap3/0/voxeet/ios/ios-sdk-rest/VoxeetSDK/Frameworks/MediaEngine/voxeet-media-engine-lib/dvc_wrapper/dvmc/dvc_conference_impl.cc:393: SetMute failed in direction == webrtc_integration::DvcDirection::OUTPUT || mute == true || listener_mode_ == false with status false
FabienLavocat commented 1 year ago

@vodemn you need to start the audio first.

if (!VoxeetSDK.shared.session.participant!.audioTransmitting) {
    VoxeetSDK.shared.audio.local.start { error in

    }
} else {
    VoxeetSDK.shared.conference.mute(participant: VoxeetSDK.shared.session.participant!, isMuted: false)
}