omikit-plugin 3.2.67 → 3.2.69

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
- if !isSpeaker {
499
- try? AVAudioSession.sharedInstance().overrideOutputAudioPort(.speaker)
500
- } else {
501
- try? AVAudioSession.sharedInstance().overrideOutputAudioPort(.none)
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 =
504
502
  OmikitPlugin.instance.sendSpeakerStatus()
505
503
  }
506
504
 
@@ -31,7 +31,7 @@ Pod::Spec.new do |s|
31
31
 
32
32
  # Thêm dependency bắt buộc
33
33
  s.dependency "React-Core"
34
- s.dependency "OmiKit", "1.8.5"
34
+ s.dependency "OmiKit", "1.8.8"
35
35
 
36
36
  # Đảm bảo Swift bridging header được tự động tạo
37
37
  # s.requires_arc = true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "omikit-plugin",
3
- "version": "3.2.67",
3
+ "version": "3.2.69",
4
4
  "description": "Omikit Plugin by ViHAT",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",