iOS 端,呼叫过程中,想要控制呼叫铃声通过扬声器发出还是通过听筒发出

HarrySun 5天前 106

iOS 端,呼叫过程中,想要控制呼叫铃声通过扬声器发出还是通过听筒发出

比如 A 呼叫 B,A 这端控制呼叫铃声从听筒或者扬声器发出声音

最新回复 (6)
  • HeavyRain 5天前
    引用 2
    可以在呼叫发起之后调用callsession的enableSpeaker方法来切换扬声器
  • HeavyRain 5天前
    引用 3
    有可能会引起扬声器状态混乱,这块儿加上耳机/蓝牙等,逻辑很难捋清楚,所以建议这个问题还是保持现状,没有大问题就别改了
  • HarrySun 5天前
    引用 4
    你好,我调用这个方法切换扬声器了,但是呼叫的铃声还是从扬声器出来的


    AVEngine start multicall s0hqmws2k|163526662, 1
    AVEngine state change from 0 to 1
    AVEngine enter configure audio session, the call state is 1

    Line[560] -[WFCUVideoViewController speakerButtonDidTap:] ----------- self.currentSession.state: 1, speakerButtonDidTap : (1)
    Found no UIEvent for backing event of type: 14; contextId: 0x0
    Found no UIEvent for backing event of type: 14; contextId: 0x0
    Line[560] -[WFCUVideoViewController speakerButtonDidTap:] ----------- self.currentSession.state: 1, speakerButtonDidTap : (0)
    Found no UIEvent for backing event of type: 14; contextId: 0x0
    Found no UIEvent for backing event of type: 14; contextId: 0x0
    [I][mars::proto][MessageDB.cc, ClearUnreadStatus, 4179][clear one Message UnreadStatus:8
    AVEngine end call with reason 3
    AVEngine state change from 1 to 0
  • HarrySun 5天前
    引用 5
    另外,这个铃声是否可以跳过手机物理静音键,当手机调整为静音模式的时候不会响铃
  • HeavyRain 3天前
    引用 6
    没有办法突破系统的限制,微信通话应该也是这样的
  • HarrySun 2天前
    引用 7
    微信在拨打电话的时候,左侧物理静音键是静音模式,依然可以控制在扬声器还是听筒中传出
返回