enableSpeakerphone method

FutureOr<int> enableSpeakerphone(
  1. BOOL enable
)

@detail api @author luomingkang @brief Turns on/off the speaker after joining a game room. @param enable Whether to turn on the speaker:
- true: Turns on the speaker and subscribes to audio streams of all remote users. - false: Default setting. Turns off the speaker and unsubscribes audio streams from all remote users. @return - 0: Success. - -3: Failure. Not joined a room.

Implementation

FutureOr<int> enableSpeakerphone(BOOL enable) async {
  return await nativeCall('enableSpeakerphone:', [enable]);
}