omikit-plugin 3.2.67 → 3.2.68
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,12 +495,10 @@ class CallManager {
|
|
|
495
495
|
|
|
496
496
|
/// Toogle speaker
|
|
497
497
|
func toogleSpeaker() {
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
}
|
|
503
|
-
isSpeaker = !isSpeaker
|
|
498
|
+
OMIAudioController *audioController = [[OMISIPLib.sharedInstance callManager] audioController];
|
|
499
|
+
OMIAudioControllerOutputs newOutput = (audioController.output == OMIAudioControllerOutputSpeaker) ? OMIAudioControllerOutputOther : OMIAudioControllerOutputSpeaker;
|
|
500
|
+
[audioController setOutput:newOutput];
|
|
501
|
+
self.isSpeaker = newOutput == OMIAudioControllerOutputSpeaker;
|
|
504
502
|
OmikitPlugin.instance.sendSpeakerStatus()
|
|
505
503
|
}
|
|
506
504
|
|
package/omikit-plugin.podspec
CHANGED