omikit-plugin 3.2.69 → 3.2.70

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -495,10 +495,8 @@ class CallManager {
495
495
 
496
496
  /// Toogle speaker
497
497
  func toogleSpeaker() {
498
- OMIAudioController *audioController = [[OMISIPLib.sharedInstance callManager] audioController];
499
- OMIAudioControllerOutputs newOutput = (audioController.output == OMIAudioControllerOutputSpeaker) ? OMIAudioControllerOutputOther : OMIAudioControllerOutputSpeaker;
500
- [audioController setOutput:newOutput];
501
- self.isSpeaker =
498
+ let result = self.omiLib.callManager.audioController.toggleSpeaker();
499
+ self.isSpeaker = result
502
500
  OmikitPlugin.instance.sendSpeakerStatus()
503
501
  }
504
502
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "omikit-plugin",
3
- "version": "3.2.69",
3
+ "version": "3.2.70",
4
4
  "description": "Omikit Plugin by ViHAT",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",